Comment PFIL_HOOKS since it should not be needed in GENERIC.
[dragonfly.git] / contrib / ntp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Be Bourne compatible
11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12   emulate sh
13   NULLCMD=:
14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15   set -o posix
16 fi
17
18 # Name of the executable.
19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
20
21 if expr a : '\(a\)' >/dev/null 2>&1; then
22   as_expr=expr
23 else
24   as_expr=false
25 fi
26
27 rm -f conf$$ conf$$.exe conf$$.file
28 echo >conf$$.file
29 if ln -s conf$$.file conf$$ 2>/dev/null; then
30   # We could just check for DJGPP; but this test a) works b) is more generic
31   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32   if test -f conf$$.exe; then
33     # Don't use ln at all; we don't have any links
34     as_ln_s='cp -p'
35   else
36     as_ln_s='ln -s'
37   fi
38 elif ln conf$$.file conf$$ 2>/dev/null; then
39   as_ln_s=ln
40 else
41   as_ln_s='cp -p'
42 fi
43 rm -f conf$$ conf$$.exe conf$$.file
44
45 as_executable_p="test -f"
46
47 # Support unset when possible.
48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
49   as_unset=unset
50 else
51   as_unset=false
52 fi
53
54 # NLS nuisances.
55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.
66 as_nl='
67 '
68 IFS="   $as_nl"
69
70 # CDPATH.
71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
72
73 # Name of the host.
74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
75 # so uname gets run too.
76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
77
78 exec 6>&1
79
80 #
81 # Initializations.
82 #
83 ac_default_prefix=/usr/local
84 cross_compiling=no
85 subdirs=
86 MFLAGS= MAKEFLAGS=
87 SHELL=${CONFIG_SHELL-/bin/sh}
88
89 # Maximum number of lines to put in a shell here document.
90 # This variable seems obsolete.  It should probably be removed, and
91 # only ac_max_sed_lines should be used.
92 : ${ac_max_here_lines=38}
93
94 # Avoid depending upon Character Ranges.
95 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
97 ac_cr_09='0123456789'
98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
99
100 # Sed expression to map a string onto a valid sh and CPP variable names.
101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
103
104 ac_unique_file="ntpd/ntp_refclock.c"
105 # Factoring default headers for most tests.
106 ac_includes_default="\
107 #include <stdio.h>
108 #include <sys/types.h>
109 #include <sys/stat.h>
110 #if STDC_HEADERS
111 # include <stdlib.h>
112 # include <stddef.h>
113 #else
114 # if HAVE_STDLIB_H
115 #  include <stdlib.h>
116 # endif
117 #endif
118 #if HAVE_STRING_H
119 # if !STDC_HEADERS && HAVE_MEMORY_H
120 #  include <memory.h>
121 # endif
122 # include <string.h>
123 #else
124 # if HAVE_STRINGS_H
125 #  include <strings.h>
126 # endif
127 #endif
128 #if HAVE_INTTYPES_H
129 # include <inttypes.h>
130 #endif
131 #if HAVE_UNISTD_H
132 # include <unistd.h>
133 #endif"
134
135 # Initialize some variables set by options.
136 ac_init_help=
137 ac_init_version=false
138 # The variables have the same names as the options, with
139 # dashes changed to underlines.
140 cache_file=/dev/null
141 exec_prefix=NONE
142 no_create=
143 no_recursion=
144 prefix=NONE
145 program_prefix=NONE
146 program_suffix=NONE
147 program_transform_name=s,x,x,
148 silent=
149 site=
150 srcdir=
151 verbose=
152 x_includes=NONE
153 x_libraries=NONE
154
155 # Installation directory options.
156 # These are left unexpanded so users can "make install exec_prefix=/foo"
157 # and all the variables that are supposed to be based on exec_prefix
158 # by default will actually change.
159 # Use braces instead of parens because sh, perl, etc. also accept them.
160 bindir='${exec_prefix}/bin'
161 sbindir='${exec_prefix}/sbin'
162 libexecdir='${exec_prefix}/libexec'
163 datadir='${prefix}/share'
164 sysconfdir='${prefix}/etc'
165 sharedstatedir='${prefix}/com'
166 localstatedir='${prefix}/var'
167 libdir='${exec_prefix}/lib'
168 includedir='${prefix}/include'
169 oldincludedir='/usr/include'
170 infodir='${prefix}/info'
171 mandir='${prefix}/man'
172
173 # Identity of this package.
174 PACKAGE_NAME=
175 PACKAGE_TARNAME=
176 PACKAGE_VERSION=
177 PACKAGE_STRING=
178 PACKAGE_BUGREPORT=
179
180 ac_prev=
181 for ac_option
182 do
183   # If the previous option needs an argument, assign it.
184   if test -n "$ac_prev"; then
185     eval "$ac_prev=\$ac_option"
186     ac_prev=
187     continue
188   fi
189
190   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
191
192   # Accept the important Cygnus configure options, so we can diagnose typos.
193
194   case $ac_option in
195
196   -bindir | --bindir | --bindi | --bind | --bin | --bi)
197     ac_prev=bindir ;;
198   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
199     bindir=$ac_optarg ;;
200
201   -build | --build | --buil | --bui | --bu)
202     ac_prev=build_alias ;;
203   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
204     build_alias=$ac_optarg ;;
205
206   -cache-file | --cache-file | --cache-fil | --cache-fi \
207   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
208     ac_prev=cache_file ;;
209   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
210   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
211     cache_file=$ac_optarg ;;
212
213   --config-cache | -C)
214     cache_file=config.cache ;;
215
216   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
217     ac_prev=datadir ;;
218   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
219   | --da=*)
220     datadir=$ac_optarg ;;
221
222   -disable-* | --disable-*)
223     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224     # Reject names that are not valid shell variable names.
225     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
226       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227    { (exit 1); exit 1; }; }
228     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
229     eval "enable_$ac_feature=no" ;;
230
231   -enable-* | --enable-*)
232     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233     # Reject names that are not valid shell variable names.
234     expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
235       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236    { (exit 1); exit 1; }; }
237     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
238     case $ac_option in
239       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
240       *) ac_optarg=yes ;;
241     esac
242     eval "enable_$ac_feature='$ac_optarg'" ;;
243
244   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
245   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
246   | --exec | --exe | --ex)
247     ac_prev=exec_prefix ;;
248   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
249   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
250   | --exec=* | --exe=* | --ex=*)
251     exec_prefix=$ac_optarg ;;
252
253   -gas | --gas | --ga | --g)
254     # Obsolete; use --with-gas.
255     with_gas=yes ;;
256
257   -help | --help | --hel | --he | -h)
258     ac_init_help=long ;;
259   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
260     ac_init_help=recursive ;;
261   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
262     ac_init_help=short ;;
263
264   -host | --host | --hos | --ho)
265     ac_prev=host_alias ;;
266   -host=* | --host=* | --hos=* | --ho=*)
267     host_alias=$ac_optarg ;;
268
269   -includedir | --includedir | --includedi | --included | --include \
270   | --includ | --inclu | --incl | --inc)
271     ac_prev=includedir ;;
272   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273   | --includ=* | --inclu=* | --incl=* | --inc=*)
274     includedir=$ac_optarg ;;
275
276   -infodir | --infodir | --infodi | --infod | --info | --inf)
277     ac_prev=infodir ;;
278   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279     infodir=$ac_optarg ;;
280
281   -libdir | --libdir | --libdi | --libd)
282     ac_prev=libdir ;;
283   -libdir=* | --libdir=* | --libdi=* | --libd=*)
284     libdir=$ac_optarg ;;
285
286   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287   | --libexe | --libex | --libe)
288     ac_prev=libexecdir ;;
289   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290   | --libexe=* | --libex=* | --libe=*)
291     libexecdir=$ac_optarg ;;
292
293   -localstatedir | --localstatedir | --localstatedi | --localstated \
294   | --localstate | --localstat | --localsta | --localst \
295   | --locals | --local | --loca | --loc | --lo)
296     ac_prev=localstatedir ;;
297   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300     localstatedir=$ac_optarg ;;
301
302   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303     ac_prev=mandir ;;
304   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305     mandir=$ac_optarg ;;
306
307   -nfp | --nfp | --nf)
308     # Obsolete; use --without-fp.
309     with_fp=no ;;
310
311   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312   | --no-cr | --no-c)
313     no_create=yes ;;
314
315   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317     no_recursion=yes ;;
318
319   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321   | --oldin | --oldi | --old | --ol | --o)
322     ac_prev=oldincludedir ;;
323   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326     oldincludedir=$ac_optarg ;;
327
328   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329     ac_prev=prefix ;;
330   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331     prefix=$ac_optarg ;;
332
333   -program-prefix | --program-prefix | --program-prefi | --program-pref \
334   | --program-pre | --program-pr | --program-p)
335     ac_prev=program_prefix ;;
336   -program-prefix=* | --program-prefix=* | --program-prefi=* \
337   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338     program_prefix=$ac_optarg ;;
339
340   -program-suffix | --program-suffix | --program-suffi | --program-suff \
341   | --program-suf | --program-su | --program-s)
342     ac_prev=program_suffix ;;
343   -program-suffix=* | --program-suffix=* | --program-suffi=* \
344   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345     program_suffix=$ac_optarg ;;
346
347   -program-transform-name | --program-transform-name \
348   | --program-transform-nam | --program-transform-na \
349   | --program-transform-n | --program-transform- \
350   | --program-transform | --program-transfor \
351   | --program-transfo | --program-transf \
352   | --program-trans | --program-tran \
353   | --progr-tra | --program-tr | --program-t)
354     ac_prev=program_transform_name ;;
355   -program-transform-name=* | --program-transform-name=* \
356   | --program-transform-nam=* | --program-transform-na=* \
357   | --program-transform-n=* | --program-transform-=* \
358   | --program-transform=* | --program-transfor=* \
359   | --program-transfo=* | --program-transf=* \
360   | --program-trans=* | --program-tran=* \
361   | --progr-tra=* | --program-tr=* | --program-t=*)
362     program_transform_name=$ac_optarg ;;
363
364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365   | -silent | --silent | --silen | --sile | --sil)
366     silent=yes ;;
367
368   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369     ac_prev=sbindir ;;
370   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371   | --sbi=* | --sb=*)
372     sbindir=$ac_optarg ;;
373
374   -sharedstatedir | --sharedstatedir | --sharedstatedi \
375   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376   | --sharedst | --shareds | --shared | --share | --shar \
377   | --sha | --sh)
378     ac_prev=sharedstatedir ;;
379   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382   | --sha=* | --sh=*)
383     sharedstatedir=$ac_optarg ;;
384
385   -site | --site | --sit)
386     ac_prev=site ;;
387   -site=* | --site=* | --sit=*)
388     site=$ac_optarg ;;
389
390   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391     ac_prev=srcdir ;;
392   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393     srcdir=$ac_optarg ;;
394
395   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396   | --syscon | --sysco | --sysc | --sys | --sy)
397     ac_prev=sysconfdir ;;
398   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400     sysconfdir=$ac_optarg ;;
401
402   -target | --target | --targe | --targ | --tar | --ta | --t)
403     ac_prev=target_alias ;;
404   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405     target_alias=$ac_optarg ;;
406
407   -v | -verbose | --verbose | --verbos | --verbo | --verb)
408     verbose=yes ;;
409
410   -version | --version | --versio | --versi | --vers | -V)
411     ac_init_version=: ;;
412
413   -with-* | --with-*)
414     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415     # Reject names that are not valid shell variable names.
416     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
417       { echo "$as_me: error: invalid package name: $ac_package" >&2
418    { (exit 1); exit 1; }; }
419     ac_package=`echo $ac_package| sed 's/-/_/g'`
420     case $ac_option in
421       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
422       *) ac_optarg=yes ;;
423     esac
424     eval "with_$ac_package='$ac_optarg'" ;;
425
426   -without-* | --without-*)
427     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428     # Reject names that are not valid shell variable names.
429     expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
430       { echo "$as_me: error: invalid package name: $ac_package" >&2
431    { (exit 1); exit 1; }; }
432     ac_package=`echo $ac_package | sed 's/-/_/g'`
433     eval "with_$ac_package=no" ;;
434
435   --x)
436     # Obsolete; use --with-x.
437     with_x=yes ;;
438
439   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440   | --x-incl | --x-inc | --x-in | --x-i)
441     ac_prev=x_includes ;;
442   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444     x_includes=$ac_optarg ;;
445
446   -x-libraries | --x-libraries | --x-librarie | --x-librari \
447   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448     ac_prev=x_libraries ;;
449   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451     x_libraries=$ac_optarg ;;
452
453   -*) { echo "$as_me: error: unrecognized option: $ac_option
454 Try \`$0 --help' for more information." >&2
455    { (exit 1); exit 1; }; }
456     ;;
457
458   *=*)
459     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
460     # Reject names that are not valid shell variable names.
461     expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
462       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463    { (exit 1); exit 1; }; }
464     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
465     eval "$ac_envvar='$ac_optarg'"
466     export $ac_envvar ;;
467
468   *)
469     # FIXME: should be removed in autoconf 3.0.
470     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471     expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
472       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
474     ;;
475
476   esac
477 done
478
479 if test -n "$ac_prev"; then
480   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
481   { echo "$as_me: error: missing argument to $ac_option" >&2
482    { (exit 1); exit 1; }; }
483 fi
484
485 # Be sure to have absolute paths.
486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487               localstatedir libdir includedir oldincludedir infodir mandir \
488               exec_prefix prefix
489 do
490   eval ac_val=$`echo $ac_var`
491   case $ac_val in
492     [\\/$]* | ?:[\\/]* ) ;;
493     NONE ) ;;
494     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495    { (exit 1); exit 1; }; };;
496   esac
497 done
498
499 # There might be people who depend on the old broken behavior: `$host'
500 # used to hold the argument of --host etc.
501 build=$build_alias
502 host=$host_alias
503 target=$target_alias
504
505 # FIXME: should be removed in autoconf 3.0.
506 if test "x$host_alias" != x; then
507   if test "x$build_alias" = x; then
508     cross_compiling=maybe
509     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
510     If a cross compiler is detected then cross compile mode will be used." >&2
511   elif test "x$build_alias" != "x$host_alias"; then
512     cross_compiling=yes
513   fi
514 fi
515
516 ac_tool_prefix=
517 test -n "$host_alias" && ac_tool_prefix=$host_alias-
518
519 test "$silent" = yes && exec 6>/dev/null
520
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523   ac_srcdir_defaulted=yes
524   # Try the directory containing this script, then its parent.
525   ac_prog=$0
526   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528   srcdir=$ac_confdir
529   if test ! -r $srcdir/$ac_unique_file; then
530     srcdir=..
531   fi
532 else
533   ac_srcdir_defaulted=no
534 fi
535 if test ! -r $srcdir/$ac_unique_file; then
536   if test "$ac_srcdir_defaulted" = yes; then
537     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
538    { (exit 1); exit 1; }; }
539   else
540     { echo "$as_me: error: cannot find sources in $srcdir" >&2
541    { (exit 1); exit 1; }; }
542   fi
543 fi
544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545 ac_env_build_alias_set=${build_alias+set}
546 ac_env_build_alias_value=$build_alias
547 ac_cv_env_build_alias_set=${build_alias+set}
548 ac_cv_env_build_alias_value=$build_alias
549 ac_env_host_alias_set=${host_alias+set}
550 ac_env_host_alias_value=$host_alias
551 ac_cv_env_host_alias_set=${host_alias+set}
552 ac_cv_env_host_alias_value=$host_alias
553 ac_env_target_alias_set=${target_alias+set}
554 ac_env_target_alias_value=$target_alias
555 ac_cv_env_target_alias_set=${target_alias+set}
556 ac_cv_env_target_alias_value=$target_alias
557 ac_env_CC_set=${CC+set}
558 ac_env_CC_value=$CC
559 ac_cv_env_CC_set=${CC+set}
560 ac_cv_env_CC_value=$CC
561 ac_env_CFLAGS_set=${CFLAGS+set}
562 ac_env_CFLAGS_value=$CFLAGS
563 ac_cv_env_CFLAGS_set=${CFLAGS+set}
564 ac_cv_env_CFLAGS_value=$CFLAGS
565 ac_env_LDFLAGS_set=${LDFLAGS+set}
566 ac_env_LDFLAGS_value=$LDFLAGS
567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
568 ac_cv_env_LDFLAGS_value=$LDFLAGS
569 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
570 ac_env_CPPFLAGS_value=$CPPFLAGS
571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
573 ac_env_CPP_set=${CPP+set}
574 ac_env_CPP_value=$CPP
575 ac_cv_env_CPP_set=${CPP+set}
576 ac_cv_env_CPP_value=$CPP
577
578 #
579 # Report the --help message.
580 #
581 if test "$ac_init_help" = "long"; then
582   # Omit some internal or obsolete options to make the list less imposing.
583   # This message is too long to be a string in the A/UX 3.1 sh.
584   cat <<EOF
585 \`configure' configures this package to adapt to many kinds of systems.
586
587 Usage: $0 [OPTION]... [VAR=VALUE]...
588
589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
590 VAR=VALUE.  See below for descriptions of some of the useful variables.
591
592 Defaults for the options are specified in brackets.
593
594 Configuration:
595   -h, --help              display this help and exit
596       --help=short        display options specific to this package
597       --help=recursive    display the short help of all the included packages
598   -V, --version           display version information and exit
599   -q, --quiet, --silent   do not print \`checking...' messages
600       --cache-file=FILE   cache test results in FILE [disabled]
601   -C, --config-cache      alias for \`--cache-file=config.cache'
602   -n, --no-create         do not create output files
603       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
604
605 EOF
606
607   cat <<EOF
608 Installation directories:
609   --prefix=PREFIX         install architecture-independent files in PREFIX
610                           [$ac_default_prefix]
611   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
612                           [PREFIX]
613
614 By default, \`make install' will install all the files in
615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
616 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
617 for instance \`--prefix=\$HOME'.
618
619 For better control, use the options below.
620
621 Fine tuning of the installation directories:
622   --bindir=DIR           user executables [EPREFIX/bin]
623   --sbindir=DIR          system admin executables [EPREFIX/sbin]
624   --libexecdir=DIR       program executables [EPREFIX/libexec]
625   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
626   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
627   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
628   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
629   --libdir=DIR           object code libraries [EPREFIX/lib]
630   --includedir=DIR       C header files [PREFIX/include]
631   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
632   --infodir=DIR          info documentation [PREFIX/info]
633   --mandir=DIR           man documentation [PREFIX/man]
634 EOF
635
636   cat <<\EOF
637
638 Program names:
639   --program-prefix=PREFIX            prepend PREFIX to installed program names
640   --program-suffix=SUFFIX            append SUFFIX to installed program names
641   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
642
643 System types:
644   --build=BUILD     configure for building on BUILD [guessed]
645   --host=HOST       build programs to run on HOST [BUILD]
646   --target=TARGET   configure for building compilers for TARGET [HOST]
647 EOF
648 fi
649
650 if test -n "$ac_init_help"; then
651
652   cat <<\EOF
653
654 Optional Features:
655   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
656   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
657   --disable-dependency-tracking Speeds up one-time builds
658   --enable-dependency-tracking  Do not reject slow dependency extractors
659   --enable-debugging      + include debugging code
660   --enable-dst-minutes=60 + minutes per DST adjustment
661   --enable-HOPFSERIAL     + hopf serial clock device
662   --enable-HOPFPCI        + hopf 6039 PCI board
663   --enable-BANCOMM        - Datum/Bancomm bc635/VME interface
664   --enable-GPSVME         - TrueTime GPS receiver/VME interface
665   --enable-SHM            - SHM clock attached thru shared memory
666   --enable-all-clocks     + include all suitable non-PARSE clocks:
667   --enable-ACTS           + ACTS modem service
668   --enable-ARBITER        + Arbiter 1088A/B GPS receiver
669   --enable-ARCRON-MSF     + Arcron MSF receiver
670   --enable-ATOM           s ATOM PPS interface
671   --enable-AS2201         + Austron 2200A/2201A GPS receiver
672   --enable-CHU            - CHU modem/decoder
673   --enable-AUDIO-CHU      s CHU audio/decoder
674   --enable-DATUM          s Datum Programmable Time System
675   --enable-FG             + Forum Graphic GPS
676   --enable-HEATH          s Heath GC-1000 WWV/WWVH receiver
677   --enable-HPGPS          + HP 58503A GPS receiver
678   --enable-IRIG           s Sun IRIG audio decoder
679   --enable-LEITCH         + Leitch CSD 5300 Master Clock System Driver
680   --enable-LOCAL-CLOCK    + local clock reference
681   --enable-MSFEES         + EES M201 MSF receiver
682   --enable-MX4200         s Magnavox MX4200 GPS receiver
683   --enable-NMEA           + NMEA GPS receiver
684   --enable-ONCORE         s Motorola VP/UT Oncore GPS receiver
685   --enable-PALISADE       + Palisade clock
686   --enable-PST            + PST/Traconex 1020 WWV/WWVH receiver
687   --enable-JUPITER        s Rockwell Jupiter GPS receiver
688   --enable-PTBACTS        s PTB modem service
689   --enable-TPRO           s KSI/Odetics TPRO/S GPS receiver/IRIG interface
690   --enable-TRAK           + TRAK 8810 GPS receiver
691   --enable-CHRONOLOG      + Chrono-log K-series WWVB receiver
692   --enable-DUMBCLOCK      + Dumb generic hh:mm:ss local clock
693   --enable-PCF            + Conrad parallel port radio clock
694   --enable-SPECTRACOM     + Spectracom 8170/Netclock/2 WWVB receiver
695   --enable-TRUETIME       s Kinemetrics/TrueTime receivers
696   --enable-ULINK          + Ultralink WWVB receiver
697   --enable-WWV            + WWV Audio receiver
698   --enable-USNO           s USNO modem service
699   --enable-parse-clocks   - include all suitable PARSE clocks:
700   --enable-COMPUTIME      s Diem Computime Radio Clock
701   --enable-DCF7000        s ELV/DCF7000 clock
702   --enable-HOPF6021       s HOPF 6021 clock
703   --enable-MEINBERG       s Meinberg clocks
704   --enable-RAWDCF         s DCF77 raw time code
705   --enable-RCC8000        s RCC 8000 clock
706   --enable-SCHMID         s Schmid DCF77 clock
707   --enable-TRIMTAIP       s Trimble GPS receiver/TAIP protocol
708   --enable-TRIMTSIP       s Trimble GPS receiver/TSIP protocol
709   --enable-WHARTON        s WHARTON 400A Series clock
710   --enable-VARITEXT       s VARITEXT clock
711   --enable-kmem           s read /dev/kmem for tick and/or tickadj
712   --enable-accurate-adjtime
713                           s the adjtime() call is accurate
714   --enable-tick=VALUE     s force a value for 'tick'
715   --enable-tickadj=VALUE  s force a value for 'tickadj'
716   --enable-udp-wildcard   s use UDP wildcard delivery
717   --enable-slew-always    s always slew the time
718   --enable-step-slew      s step and slew the time
719   --enable-ntpdate-step   s if ntpdate should step the time
720   --enable-hourly-todr-sync
721                           s if we should sync TODR hourly
722   --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
723
724 Optional Packages:
725   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
726   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
727   --with-openssl-libdir   + =/something/reasonable
728   --with-openssl-incdir   + =/something/reasonable
729   --with-crypto           + ={autokey,rsaref}
730   --with-electricfence    - compile with ElectricFence malloc debugger
731
732 Some influential environment variables:
733   CC          C compiler command
734   CFLAGS      C compiler flags
735   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
736               nonstandard directory <lib dir>
737   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
738               headers in a nonstandard directory <include dir>
739   CPP         C preprocessor
740
741 Use these variables to override the choices made by `configure' or to help
742 it to find libraries and programs with nonstandard names/locations.
743
744 EOF
745 fi
746
747 if test "$ac_init_help" = "recursive"; then
748   # If there are subdirs, report their specific --help.
749   ac_popdir=`pwd`
750   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
751     cd $ac_subdir
752     # A "../" for each directory in /$ac_subdir.
753     ac_dots=`echo $ac_subdir |
754              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
755
756     case $srcdir in
757     .) # No --srcdir option.  We are building in place.
758       ac_sub_srcdir=$srcdir ;;
759     [\\/]* | ?:[\\/]* ) # Absolute path.
760       ac_sub_srcdir=$srcdir/$ac_subdir ;;
761     *) # Relative path.
762       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
763     esac
764
765     # Check for guested configure; otherwise get Cygnus style configure.
766     if test -f $ac_sub_srcdir/configure.gnu; then
767       echo
768       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
769     elif test -f $ac_sub_srcdir/configure; then
770       echo
771       $SHELL $ac_sub_srcdir/configure  --help=recursive
772     elif test -f $ac_sub_srcdir/configure.ac ||
773            test -f $ac_sub_srcdir/configure.in; then
774       echo
775       $ac_configure --help
776     else
777       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
778     fi
779     cd $ac_popdir
780   done
781 fi
782
783 test -n "$ac_init_help" && exit 0
784 if $ac_init_version; then
785   cat <<\EOF
786
787 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
788 Free Software Foundation, Inc.
789 This configure script is free software; the Free Software Foundation
790 gives unlimited permission to copy, distribute and modify it.
791 EOF
792   exit 0
793 fi
794 exec 5>config.log
795 cat >&5 <<EOF
796 This file contains any messages produced by compilers while
797 running configure, to aid debugging if configure makes a mistake.
798
799 It was created by $as_me, which was
800 generated by GNU Autoconf 2.50.  Invocation command line was
801
802   $ $0 $@
803
804 EOF
805 {
806 cat <<_ASUNAME
807 ## ---------- ##
808 ## Platform.  ##
809 ## ---------- ##
810
811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
816
817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
818 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
819
820 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
821 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
823 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
824 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
825 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
826 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
827
828 PATH = $PATH
829
830 _ASUNAME
831 } >&5
832
833 cat >&5 <<EOF
834 ## ------------ ##
835 ## Core tests.  ##
836 ## ------------ ##
837
838 EOF
839
840 # Keep a trace of the command line.
841 # Strip out --no-create and --no-recursion so they do not pile up.
842 # Also quote any args containing shell meta-characters.
843 ac_configure_args=
844 ac_sep=
845 for ac_arg
846 do
847   case $ac_arg in
848   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
849   | --no-cr | --no-c) ;;
850   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
851   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
852   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
853     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
854     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
855     ac_sep=" " ;;
856   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
857      ac_sep=" " ;;
858   esac
859   # Get rid of the leading space.
860 done
861
862 # When interrupted or exit'd, cleanup temporary files, and complete
863 # config.log.  We remove comments because anyway the quotes in there
864 # would cause problems or look ugly.
865 trap 'exit_status=$?
866   # Save into config.log some information that might help in debugging.
867   echo >&5
868   echo "## ----------------- ##" >&5
869   echo "## Cache variables.  ##" >&5
870   echo "## ----------------- ##" >&5
871   echo >&5
872   # The following way of writing the cache mishandles newlines in values,
873 {
874   (set) 2>&1 |
875     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
876     *ac_space=\ *)
877       sed -n \
878         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
879           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
880       ;;
881     *)
882       sed -n \
883         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
884       ;;
885     esac;
886 } >&5
887   sed "/^$/d" confdefs.h >conftest.log
888   if test -s conftest.log; then
889     echo >&5
890     echo "## ------------ ##" >&5
891     echo "## confdefs.h.  ##" >&5
892     echo "## ------------ ##" >&5
893     echo >&5
894     cat conftest.log >&5
895   fi
896   (echo; echo) >&5
897   test "$ac_signal" != 0 &&
898     echo "$as_me: caught signal $ac_signal" >&5
899   echo "$as_me: exit $exit_status" >&5
900   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
901     exit $exit_status
902      ' 0
903 for ac_signal in 1 2 13 15; do
904   trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
905 done
906 ac_signal=0
907
908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
909 rm -rf conftest* confdefs.h
910 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
911 echo >confdefs.h
912
913 # Let the site file select an alternate cache file if it wants to.
914 # Prefer explicitly selected file to automatically selected ones.
915 if test -z "$CONFIG_SITE"; then
916   if test "x$prefix" != xNONE; then
917     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
918   else
919     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
920   fi
921 fi
922 for ac_site_file in $CONFIG_SITE; do
923   if test -r "$ac_site_file"; then
924     { echo "$as_me:924: loading site script $ac_site_file" >&5
925 echo "$as_me: loading site script $ac_site_file" >&6;}
926     cat "$ac_site_file" >&5
927     . "$ac_site_file"
928   fi
929 done
930
931 if test -r "$cache_file"; then
932   # Some versions of bash will fail to source /dev/null (special
933   # files actually), so we avoid doing that.
934   if test -f "$cache_file"; then
935     { echo "$as_me:935: loading cache $cache_file" >&5
936 echo "$as_me: loading cache $cache_file" >&6;}
937     case $cache_file in
938       [\\/]* | ?:[\\/]* ) . $cache_file;;
939       *)                      . ./$cache_file;;
940     esac
941   fi
942 else
943   { echo "$as_me:943: creating cache $cache_file" >&5
944 echo "$as_me: creating cache $cache_file" >&6;}
945   >$cache_file
946 fi
947
948 # Check that the precious variables saved in the cache have kept the same
949 # value.
950 ac_suggest_removing_cache=false
951 for ac_var in `(set) 2>&1 |
952                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
953   eval ac_old_set=\$ac_cv_env_${ac_var}_set
954   eval ac_new_set=\$ac_env_${ac_var}_set
955   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
956   eval ac_new_val="\$ac_env_${ac_var}_value"
957   case $ac_old_set,$ac_new_set in
958     set,)
959       { echo "$as_me:959: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
960 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
961       ac_suggest_removing_cache=: ;;
962     ,set)
963       { echo "$as_me:963: WARNING: \`$ac_var' was not set in the previous run" >&5
964 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
965       ac_suggest_removing_cache=: ;;
966     ,);;
967     *)
968       if test "x$ac_old_val" != "x$ac_new_val"; then
969         { echo "$as_me:969: WARNING: \`$ac_var' has changed since the previous run:" >&5
970 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
971         { echo "$as_me:971: WARNING:   former value:  $ac_old_val" >&5
972 echo "$as_me: WARNING:   former value:  $ac_old_val" >&2;}
973         { echo "$as_me:973: WARNING:   current value: $ac_new_val" >&5
974 echo "$as_me: WARNING:   current value: $ac_new_val" >&2;}
975         ac_suggest_removing_cache=:
976       fi;;
977   esac
978 done
979 if $ac_suggest_removing_cache; then
980   { echo "$as_me:980: WARNING: changes in the environment can compromise the build" >&5
981 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
982   { echo "$as_me:982: WARNING: consider removing $cache_file and starting over" >&5
983 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
984 fi
985
986 ac_ext=c
987 ac_cpp='$CPP $CPPFLAGS'
988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
991
992 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
993   *c*,-n*) ECHO_N= ECHO_C='
994 ' ECHO_T='      ' ;;
995   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
996   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
997 esac
998 echo "#! $SHELL" >conftest.sh
999 echo  "exit 0"   >>conftest.sh
1000 chmod +x conftest.sh
1001 if { (echo "$as_me:1001: PATH=\".;.\"; conftest.sh") >&5
1002   (PATH=".;."; conftest.sh) 2>&5
1003   ac_status=$?
1004   echo "$as_me:1004: \$? = $ac_status" >&5
1005   (exit $ac_status); }; then
1006   ac_path_separator=';'
1007 else
1008   ac_path_separator=:
1009 fi
1010 PATH_SEPARATOR="$ac_path_separator"
1011 rm -f conftest.sh
1012
1013 ac_aux_dir=
1014 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1015   if test -f $ac_dir/install-sh; then
1016     ac_aux_dir=$ac_dir
1017     ac_install_sh="$ac_aux_dir/install-sh -c"
1018     break
1019   elif test -f $ac_dir/install.sh; then
1020     ac_aux_dir=$ac_dir
1021     ac_install_sh="$ac_aux_dir/install.sh -c"
1022     break
1023   elif test -f $ac_dir/shtool; then
1024     ac_aux_dir=$ac_dir
1025     ac_install_sh="$ac_aux_dir/shtool install -c"
1026     break
1027   fi
1028 done
1029 if test -z "$ac_aux_dir"; then
1030   { { echo "$as_me:1030: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1031 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1032    { (exit 1); exit 1; }; }
1033 fi
1034 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1035 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1036 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1037
1038 # Make sure we can run config.sub.
1039 $ac_config_sub sun4 >/dev/null 2>&1 ||
1040   { { echo "$as_me:1040: error: cannot run $ac_config_sub" >&5
1041 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1042    { (exit 1); exit 1; }; }
1043
1044 echo "$as_me:1044: checking build system type" >&5
1045 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1046 if test "${ac_cv_build+set}" = set; then
1047   echo $ECHO_N "(cached) $ECHO_C" >&6
1048 else
1049   ac_cv_build_alias=$build_alias
1050 test -z "$ac_cv_build_alias" &&
1051   ac_cv_build_alias=`$ac_config_guess`
1052 test -z "$ac_cv_build_alias" &&
1053   { { echo "$as_me:1053: error: cannot guess build type; you must specify one" >&5
1054 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1055    { (exit 1); exit 1; }; }
1056 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1057   { { echo "$as_me:1057: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1058 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1059    { (exit 1); exit 1; }; }
1060
1061 fi
1062 echo "$as_me:1062: result: $ac_cv_build" >&5
1063 echo "${ECHO_T}$ac_cv_build" >&6
1064 build=$ac_cv_build
1065 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1066 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1067 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1068
1069 echo "$as_me:1069: checking host system type" >&5
1070 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1071 if test "${ac_cv_host+set}" = set; then
1072   echo $ECHO_N "(cached) $ECHO_C" >&6
1073 else
1074   ac_cv_host_alias=$host_alias
1075 test -z "$ac_cv_host_alias" &&
1076   ac_cv_host_alias=$ac_cv_build_alias
1077 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1078   { { echo "$as_me:1078: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1079 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1080    { (exit 1); exit 1; }; }
1081
1082 fi
1083 echo "$as_me:1083: result: $ac_cv_host" >&5
1084 echo "${ECHO_T}$ac_cv_host" >&6
1085 host=$ac_cv_host
1086 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1087 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1088 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1089
1090 echo "$as_me:1090: checking target system type" >&5
1091 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1092 if test "${ac_cv_target+set}" = set; then
1093   echo $ECHO_N "(cached) $ECHO_C" >&6
1094 else
1095   ac_cv_target_alias=$target_alias
1096 test "x$ac_cv_target_alias" = "x" &&
1097   ac_cv_target_alias=$ac_cv_host_alias
1098 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1099   { { echo "$as_me:1099: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1100 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1101    { (exit 1); exit 1; }; }
1102
1103 fi
1104 echo "$as_me:1104: result: $ac_cv_target" >&5
1105 echo "${ECHO_T}$ac_cv_target" >&6
1106 target=$ac_cv_target
1107 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1108 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1109 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1110
1111 # The aliases save the names the user supplied, while $host etc.
1112 # will get canonicalized.
1113 test -n "$target_alias" &&
1114   test "$program_prefix$program_suffix$program_transform_name" = \
1115     NONENONEs,x,x, &&
1116   program_prefix=${target_alias}-
1117 cat >>confdefs.h <<EOF
1118 #define STR_SYSTEM "$target"
1119 EOF
1120
1121 ac_config_headers="$ac_config_headers config.h"
1122
1123   ac_config_commands="$ac_config_commands default-1"
1124
1125 if test "$program_transform_name" = s,x,x,; then
1126   program_transform_name=
1127 else
1128   # Double any \ or $.  echo might interpret backslashes.
1129   cat <<\EOF >conftest.sed
1130 s,\\,\\\\,g; s,\$,$$,g
1131 EOF
1132   program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1133   rm -f conftest.sed
1134 fi
1135 test "$program_prefix" != NONE &&
1136   program_transform_name="s,^,${program_prefix},;$program_transform_name"
1137 # Use a double $ so make ignores it.
1138 test "$program_suffix" != NONE &&
1139   program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1140
1141 # sed with no file args requires a program.
1142 test -z "$program_transform_name" && program_transform_name="s,x,x,"
1143
1144 # Find a good install program.  We prefer a C program (faster),
1145 # so one script is as good as another.  But avoid the broken or
1146 # incompatible versions:
1147 # SysV /etc/install, /usr/sbin/install
1148 # SunOS /usr/etc/install
1149 # IRIX /sbin/install
1150 # AIX /bin/install
1151 # AmigaOS /C/install, which installs bootblocks on floppy discs
1152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1155 # ./install, which can be erroneously created by make from ./install.sh.
1156 echo "$as_me:1156: checking for a BSD compatible install" >&5
1157 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1158 if test -z "$INSTALL"; then
1159 if test "${ac_cv_path_install+set}" = set; then
1160   echo $ECHO_N "(cached) $ECHO_C" >&6
1161 else
1162     ac_save_IFS=$IFS; IFS=$ac_path_separator
1163   for ac_dir in $PATH; do
1164     IFS=$ac_save_IFS
1165     # Account for people who put trailing slashes in PATH elements.
1166     case $ac_dir/ in
1167     / | ./ | .// | /cC/* \
1168     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1169     | /usr/ucb/* ) ;;
1170     *)
1171       # OSF1 and SCO ODT 3.0 have their own names for install.
1172       # Don't use installbsd from OSF since it installs stuff as root
1173       # by default.
1174       for ac_prog in ginstall scoinst install; do
1175         if $as_executable_p "$ac_dir/$ac_prog"; then
1176           if test $ac_prog = install &&
1177             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1178             # AIX install.  It has an incompatible calling convention.
1179             :
1180           elif test $ac_prog = install &&
1181             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1182             # program-specific install script used by HP pwplus--don't use.
1183             :
1184           else
1185             ac_cv_path_install="$ac_dir/$ac_prog -c"
1186             break 2
1187           fi
1188         fi
1189       done
1190       ;;
1191     esac
1192   done
1193
1194 fi
1195   if test "${ac_cv_path_install+set}" = set; then
1196     INSTALL=$ac_cv_path_install
1197   else
1198     # As a last resort, use the slow shell script.  We don't cache a
1199     # path for INSTALL within a source directory, because that will
1200     # break other packages using the cache if that directory is
1201     # removed, or if the path is relative.
1202     INSTALL=$ac_install_sh
1203   fi
1204 fi
1205 echo "$as_me:1205: result: $INSTALL" >&5
1206 echo "${ECHO_T}$INSTALL" >&6
1207
1208 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1209 # It thinks the first close brace ends the variable substitution.
1210 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1211
1212 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1213
1214 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1215
1216 echo "$as_me:1216: checking whether build environment is sane" >&5
1217 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1218 # Just in case
1219 sleep 1
1220 echo timestamp > conftest.file
1221 # Do `set' in a subshell so we don't clobber the current shell's
1222 # arguments.  Must try -L first in case configure is actually a
1223 # symlink; some systems play weird games with the mod time of symlinks
1224 # (eg FreeBSD returns the mod time of the symlink's containing
1225 # directory).
1226 if (
1227    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1228    if test "$*" = "X"; then
1229       # -L didn't work.
1230       set X `ls -t $srcdir/configure conftest.file`
1231    fi
1232    if test "$*" != "X $srcdir/configure conftest.file" \
1233       && test "$*" != "X conftest.file $srcdir/configure"; then
1234
1235       # If neither matched, then we have a broken ls.  This can happen
1236       # if, for instance, CONFIG_SHELL is bash and it inherits a
1237       # broken ls alias from the environment.  This has actually
1238       # happened.  Such a system could not be considered "sane".
1239       { { echo "$as_me:1239: error: ls -t appears to fail.  Make sure there is not a broken
1240 alias in your environment" >&5
1241 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1242 alias in your environment" >&2;}
1243    { (exit 1); exit 1; }; }
1244    fi
1245
1246    test "$2" = conftest.file
1247    )
1248 then
1249    # Ok.
1250    :
1251 else
1252    { { echo "$as_me:1252: error: newly created file is older than distributed files!
1253 Check your system clock" >&5
1254 echo "$as_me: error: newly created file is older than distributed files!
1255 Check your system clock" >&2;}
1256    { (exit 1); exit 1; }; }
1257 fi
1258 rm -f conftest*
1259 echo "$as_me:1259: result: yes" >&5
1260 echo "${ECHO_T}yes" >&6
1261 test x"${MISSING+set}" = xset ||
1262   MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1263 # Use eval to expand $SHELL
1264 if eval "$MISSING --run :"; then
1265   am_missing_run="$MISSING --run "
1266 else
1267   am_missing_run=
1268   am_backtick='`'
1269   { echo "$as_me:1269: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1270 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1271 fi
1272
1273 for ac_prog in mawk gawk nawk awk
1274 do
1275   # Extract the first word of "$ac_prog", so it can be a program name with args.
1276 set dummy $ac_prog; ac_word=$2
1277 echo "$as_me:1277: checking for $ac_word" >&5
1278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1279 if test "${ac_cv_prog_AWK+set}" = set; then
1280   echo $ECHO_N "(cached) $ECHO_C" >&6
1281 else
1282   if test -n "$AWK"; then
1283   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1284 else
1285   ac_save_IFS=$IFS; IFS=$ac_path_separator
1286 ac_dummy="$PATH"
1287 for ac_dir in $ac_dummy; do
1288   IFS=$ac_save_IFS
1289   test -z "$ac_dir" && ac_dir=.
1290   $as_executable_p "$ac_dir/$ac_word" || continue
1291 ac_cv_prog_AWK="$ac_prog"
1292 echo "$as_me:1292: found $ac_dir/$ac_word" >&5
1293 break
1294 done
1295
1296 fi
1297 fi
1298 AWK=$ac_cv_prog_AWK
1299 if test -n "$AWK"; then
1300   echo "$as_me:1300: result: $AWK" >&5
1301 echo "${ECHO_T}$AWK" >&6
1302 else
1303   echo "$as_me:1303: result: no" >&5
1304 echo "${ECHO_T}no" >&6
1305 fi
1306
1307   test -n "$AWK" && break
1308 done
1309
1310 echo "$as_me:1310: checking whether ${MAKE-make} sets \${MAKE}" >&5
1311 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1312 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1313 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1314   echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316   cat >conftest.make <<\EOF
1317 all:
1318         @echo 'ac_maketemp="${MAKE}"'
1319 EOF
1320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1321 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1322 if test -n "$ac_maketemp"; then
1323   eval ac_cv_prog_make_${ac_make}_set=yes
1324 else
1325   eval ac_cv_prog_make_${ac_make}_set=no
1326 fi
1327 rm -f conftest.make
1328 fi
1329 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1330   echo "$as_me:1330: result: yes" >&5
1331 echo "${ECHO_T}yes" >&6
1332   SET_MAKE=
1333 else
1334   echo "$as_me:1334: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1336   SET_MAKE="MAKE=${MAKE-make}"
1337 fi
1338
1339 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1340 if test "${enable_dependency_tracking+set}" = set; then
1341   enableval="$enable_dependency_tracking"
1342
1343 fi;
1344 if test "x$enable_dependency_tracking" = xno; then
1345   AMDEP="#"
1346 else
1347   am_depcomp="$ac_aux_dir/depcomp"
1348   if test ! -f "$am_depcomp"; then
1349     AMDEP="#"
1350   else
1351     AMDEP=
1352   fi
1353 fi
1354
1355 if test -z "$AMDEP"; then
1356   AMDEPBACKSLASH='\'
1357 else
1358   AMDEPBACKSLASH=
1359 fi
1360
1361 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1362   DEPDIR=.deps
1363   # We redirect because .deps might already exist and be populated.
1364   # In this situation we don't want to see an error.
1365   rmdir .deps > /dev/null 2>&1
1366 else
1367   DEPDIR=_deps
1368 fi
1369
1370 # test to see if srcdir already configured
1371 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1372    test -f $srcdir/config.status; then
1373   { { echo "$as_me:1373: error: source directory already configured; run \"make distclean\" there first" >&5
1374 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1375    { (exit 1); exit 1; }; }
1376 fi
1377
1378 # Define the identity of the package.
1379 PACKAGE=ntp
1380 VERSION=4.1.0
1381
1382 cat >>confdefs.h <<EOF
1383 #define PACKAGE "$PACKAGE"
1384 EOF
1385
1386 cat >>confdefs.h <<EOF
1387 #define VERSION "$VERSION"
1388 EOF
1389
1390 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
1391 # the ones we care about.
1392
1393 # Some tools Automake needs.
1394
1395 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1396
1397 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1398
1399 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1400
1401 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1402
1403 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1404
1405 AMTAR=${AMTAR-"${am_missing_run}tar"}
1406
1407 if test -z "$install_sh"; then
1408    for install_sh in "$ac_aux_dir/install-sh" \
1409                      "$ac_aux_dir/install.sh" \
1410                      "${am_missing_run}${ac_auxdir}/install-sh";
1411    do
1412      test -f "$install_sh" && break
1413    done
1414    # FIXME: an evil hack: we remove the SHELL invocation from
1415    # install_sh because automake adds it back in.  Sigh.
1416    install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
1417 fi
1418
1419 # We'd like to do this but we can't because it will unconditionally
1420 # require config.guess.  One way would be if autoconf had the capability
1421 # to let us compile in this code only when config.guess was already
1422 # a possibility.
1423 #if test "$cross_compiling" != no; then
1424 #  # since we are cross-compiling, we need to check for a suitable `strip'
1425 #  AM_PROG_STRIP
1426 #  if test -z "$STRIP"; then
1427 #    AC_MSG_WARN([strip missing, install-strip will not strip binaries])
1428 #  fi
1429 #fi
1430
1431 # If $STRIP is defined (either by the user, or by AM_PROG_STRIP),
1432 # instruct install-strip to use install-sh and the given $STRIP program.
1433 # Otherwise, just use ${INSTALL}: the idea is to use the vendor install
1434 # as much as possible, because it's faster.
1435 if test -z "$STRIP"; then
1436   # The top level make will set INSTALL_PROGRAM=$(INSTALL_STRIP_PROGRAM)
1437   # and the double dolard below is there to make sure that ${INSTALL}
1438   # is substitued in the sub-makes, not at the top-level; this is
1439   # needed if ${INSTALL} is a relative path (ajusted in each subdirectory
1440   # by config.status).
1441   INSTALL_STRIP_PROGRAM='$${INSTALL} -s'
1442   INSTALL_STRIP_PROGRAM_ENV=''
1443 else
1444   _am_dirpart="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
1445   INSTALL_STRIP_PROGRAM="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
1446   INSTALL_STRIP_PROGRAM_ENV="STRIPPROG='\$(STRIP)'"
1447 fi
1448
1449 # We need awk for the "check" target.  The system "awk" is bad on
1450 # some platforms.
1451
1452 ac_cv_var_oncore_ok=no
1453 ac_cv_var_atom_ok=no
1454
1455 iCFLAGS="$CFLAGS"
1456
1457 ac_ext=c
1458 ac_cpp='$CPP $CPPFLAGS'
1459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462 if test -n "$ac_tool_prefix"; then
1463   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1465 echo "$as_me:1465: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   if test -n "$CC"; then
1471   ac_cv_prog_CC="$CC" # Let the user override the test.
1472 else
1473   ac_save_IFS=$IFS; IFS=$ac_path_separator
1474 ac_dummy="$PATH"
1475 for ac_dir in $ac_dummy; do
1476   IFS=$ac_save_IFS
1477   test -z "$ac_dir" && ac_dir=.
1478   $as_executable_p "$ac_dir/$ac_word" || continue
1479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1480 echo "$as_me:1480: found $ac_dir/$ac_word" >&5
1481 break
1482 done
1483
1484 fi
1485 fi
1486 CC=$ac_cv_prog_CC
1487 if test -n "$CC"; then
1488   echo "$as_me:1488: result: $CC" >&5
1489 echo "${ECHO_T}$CC" >&6
1490 else
1491   echo "$as_me:1491: result: no" >&5
1492 echo "${ECHO_T}no" >&6
1493 fi
1494
1495 fi
1496 if test -z "$ac_cv_prog_CC"; then
1497   ac_ct_CC=$CC
1498   # Extract the first word of "gcc", so it can be a program name with args.
1499 set dummy gcc; ac_word=$2
1500 echo "$as_me:1500: checking for $ac_word" >&5
1501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   if test -n "$ac_ct_CC"; then
1506   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1507 else
1508   ac_save_IFS=$IFS; IFS=$ac_path_separator
1509 ac_dummy="$PATH"
1510 for ac_dir in $ac_dummy; do
1511   IFS=$ac_save_IFS
1512   test -z "$ac_dir" && ac_dir=.
1513   $as_executable_p "$ac_dir/$ac_word" || continue
1514 ac_cv_prog_ac_ct_CC="gcc"
1515 echo "$as_me:1515: found $ac_dir/$ac_word" >&5
1516 break
1517 done
1518
1519 fi
1520 fi
1521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1522 if test -n "$ac_ct_CC"; then
1523   echo "$as_me:1523: result: $ac_ct_CC" >&5
1524 echo "${ECHO_T}$ac_ct_CC" >&6
1525 else
1526   echo "$as_me:1526: result: no" >&5
1527 echo "${ECHO_T}no" >&6
1528 fi
1529
1530   CC=$ac_ct_CC
1531 else
1532   CC="$ac_cv_prog_CC"
1533 fi
1534
1535 if test -z "$CC"; then
1536   if test -n "$ac_tool_prefix"; then
1537   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1538 set dummy ${ac_tool_prefix}cc; ac_word=$2
1539 echo "$as_me:1539: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_CC+set}" = set; then
1542   echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544   if test -n "$CC"; then
1545   ac_cv_prog_CC="$CC" # Let the user override the test.
1546 else
1547   ac_save_IFS=$IFS; IFS=$ac_path_separator
1548 ac_dummy="$PATH"
1549 for ac_dir in $ac_dummy; do
1550   IFS=$ac_save_IFS
1551   test -z "$ac_dir" && ac_dir=.
1552   $as_executable_p "$ac_dir/$ac_word" || continue
1553 ac_cv_prog_CC="${ac_tool_prefix}cc"
1554 echo "$as_me:1554: found $ac_dir/$ac_word" >&5
1555 break
1556 done
1557
1558 fi
1559 fi
1560 CC=$ac_cv_prog_CC
1561 if test -n "$CC"; then
1562   echo "$as_me:1562: result: $CC" >&5
1563 echo "${ECHO_T}$CC" >&6
1564 else
1565   echo "$as_me:1565: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1567 fi
1568
1569 fi
1570 if test -z "$ac_cv_prog_CC"; then
1571   ac_ct_CC=$CC
1572   # Extract the first word of "cc", so it can be a program name with args.
1573 set dummy cc; ac_word=$2
1574 echo "$as_me:1574: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577   echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579   if test -n "$ac_ct_CC"; then
1580   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1581 else
1582   ac_save_IFS=$IFS; IFS=$ac_path_separator
1583 ac_dummy="$PATH"
1584 for ac_dir in $ac_dummy; do
1585   IFS=$ac_save_IFS
1586   test -z "$ac_dir" && ac_dir=.
1587   $as_executable_p "$ac_dir/$ac_word" || continue
1588 ac_cv_prog_ac_ct_CC="cc"
1589 echo "$as_me:1589: found $ac_dir/$ac_word" >&5
1590 break
1591 done
1592
1593 fi
1594 fi
1595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1596 if test -n "$ac_ct_CC"; then
1597   echo "$as_me:1597: result: $ac_ct_CC" >&5
1598 echo "${ECHO_T}$ac_ct_CC" >&6
1599 else
1600   echo "$as_me:1600: result: no" >&5
1601 echo "${ECHO_T}no" >&6
1602 fi
1603
1604   CC=$ac_ct_CC
1605 else
1606   CC="$ac_cv_prog_CC"
1607 fi
1608
1609 fi
1610 if test -z "$CC"; then
1611   # Extract the first word of "cc", so it can be a program name with args.
1612 set dummy cc; ac_word=$2
1613 echo "$as_me:1613: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_CC+set}" = set; then
1616   echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618   if test -n "$CC"; then
1619   ac_cv_prog_CC="$CC" # Let the user override the test.
1620 else
1621   ac_prog_rejected=no
1622   ac_save_IFS=$IFS; IFS=$ac_path_separator
1623 ac_dummy="$PATH"
1624 for ac_dir in $ac_dummy; do
1625   IFS=$ac_save_IFS
1626   test -z "$ac_dir" && ac_dir=.
1627   $as_executable_p "$ac_dir/$ac_word" || continue
1628 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1629   ac_prog_rejected=yes
1630   continue
1631 fi
1632 ac_cv_prog_CC="cc"
1633 echo "$as_me:1633: found $ac_dir/$ac_word" >&5
1634 break
1635 done
1636
1637 if test $ac_prog_rejected = yes; then
1638   # We found a bogon in the path, so make sure we never use it.
1639   set dummy $ac_cv_prog_CC
1640   shift
1641   if test $# != 0; then
1642     # We chose a different compiler from the bogus one.
1643     # However, it has the same basename, so the bogon will be chosen
1644     # first if we set CC to just the basename; use the full file name.
1645     shift
1646     set dummy "$ac_dir/$ac_word" ${1+"$@"}
1647     shift
1648     ac_cv_prog_CC="$@"
1649   fi
1650 fi
1651 fi
1652 fi
1653 CC=$ac_cv_prog_CC
1654 if test -n "$CC"; then
1655   echo "$as_me:1655: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1657 else
1658   echo "$as_me:1658: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 fi
1663 if test -z "$CC"; then
1664   if test -n "$ac_tool_prefix"; then
1665   for ac_prog in cl
1666   do
1667     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1669 echo "$as_me:1669: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_CC+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$CC"; then
1675   ac_cv_prog_CC="$CC" # Let the user override the test.
1676 else
1677   ac_save_IFS=$IFS; IFS=$ac_path_separator
1678 ac_dummy="$PATH"
1679 for ac_dir in $ac_dummy; do
1680   IFS=$ac_save_IFS
1681   test -z "$ac_dir" && ac_dir=.
1682   $as_executable_p "$ac_dir/$ac_word" || continue
1683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1684 echo "$as_me:1684: found $ac_dir/$ac_word" >&5
1685 break
1686 done
1687
1688 fi
1689 fi
1690 CC=$ac_cv_prog_CC
1691 if test -n "$CC"; then
1692   echo "$as_me:1692: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1694 else
1695   echo "$as_me:1695: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699     test -n "$CC" && break
1700   done
1701 fi
1702 if test -z "$CC"; then
1703   ac_ct_CC=$CC
1704   for ac_prog in cl
1705 do
1706   # Extract the first word of "$ac_prog", so it can be a program name with args.
1707 set dummy $ac_prog; ac_word=$2
1708 echo "$as_me:1708: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$ac_ct_CC"; then
1714   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1715 else
1716   ac_save_IFS=$IFS; IFS=$ac_path_separator
1717 ac_dummy="$PATH"
1718 for ac_dir in $ac_dummy; do
1719   IFS=$ac_save_IFS
1720   test -z "$ac_dir" && ac_dir=.
1721   $as_executable_p "$ac_dir/$ac_word" || continue
1722 ac_cv_prog_ac_ct_CC="$ac_prog"
1723 echo "$as_me:1723: found $ac_dir/$ac_word" >&5
1724 break
1725 done
1726
1727 fi
1728 fi
1729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1730 if test -n "$ac_ct_CC"; then
1731   echo "$as_me:1731: result: $ac_ct_CC" >&5
1732 echo "${ECHO_T}$ac_ct_CC" >&6
1733 else
1734   echo "$as_me:1734: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738   test -n "$ac_ct_CC" && break
1739 done
1740
1741   CC=$ac_ct_CC
1742 fi
1743
1744 fi
1745
1746 test -z "$CC" && { { echo "$as_me:1746: error: no acceptable cc found in \$PATH" >&5
1747 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1748    { (exit 1); exit 1; }; }
1749
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1753
1754 int
1755 main ()
1756 {
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 ac_clean_files_save=$ac_clean_files
1763 ac_clean_files="$ac_clean_files a.out a.exe"
1764 # Try to create an executable without -o first, disregard a.out.
1765 # It will help us diagnose broken compiler, and finding out an intuition
1766 # of exeext.
1767 echo "$as_me:1767: checking for C compiler default output" >&5
1768 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1769 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1770 if { (eval echo "$as_me:1770: \"$ac_link_default\"") >&5
1771   (eval $ac_link_default) 2>&5
1772   ac_status=$?
1773   echo "$as_me:1773: \$? = $ac_status" >&5
1774   (exit $ac_status); }; then
1775   for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1776   case $ac_file in
1777     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1778     a.out ) # We found the default executable, but exeext='' is most
1779             # certainly right.
1780             break;;
1781     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782           export ac_cv_exeext
1783           break;;
1784     * ) break;;
1785   esac
1786 done
1787 else
1788   echo "$as_me: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1790 { { echo "$as_me:1790: error: C compiler cannot create executables" >&5
1791 echo "$as_me: error: C compiler cannot create executables" >&2;}
1792    { (exit 77); exit 77; }; }
1793 fi
1794
1795 ac_exeext=$ac_cv_exeext
1796 echo "$as_me:1796: result: $ac_file" >&5
1797 echo "${ECHO_T}$ac_file" >&6
1798
1799 # Check the compiler produces executables we can run.  If not, either
1800 # the compiler is broken, or we cross compile.
1801 echo "$as_me:1801: checking whether the C compiler works" >&5
1802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1804 # If not cross compiling, check that we can run a simple program.
1805 if test "$cross_compiling" != yes; then
1806   if { ac_try='./$ac_file'
1807   { (eval echo "$as_me:1807: \"$ac_try\"") >&5
1808   (eval $ac_try) 2>&5
1809   ac_status=$?
1810   echo "$as_me:1810: \$? = $ac_status" >&5
1811   (exit $ac_status); }; }; then
1812     cross_compiling=no
1813   else
1814     if test "$cross_compiling" = maybe; then
1815         cross_compiling=yes
1816     else
1817         { { echo "$as_me:1817: error: cannot run C compiled programs.
1818 If you meant to cross compile, use \`--host'." >&5
1819 echo "$as_me: error: cannot run C compiled programs.
1820 If you meant to cross compile, use \`--host'." >&2;}
1821    { (exit 1); exit 1; }; }
1822     fi
1823   fi
1824 fi
1825 echo "$as_me:1825: result: yes" >&5
1826 echo "${ECHO_T}yes" >&6
1827
1828 rm -f a.out a.exe conftest$ac_cv_exeext
1829 ac_clean_files=$ac_clean_files_save
1830 # Check the compiler produces executables we can run.  If not, either
1831 # the compiler is broken, or we cross compile.
1832 echo "$as_me:1832: checking whether we are cross compiling" >&5
1833 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1834 echo "$as_me:1834: result: $cross_compiling" >&5
1835 echo "${ECHO_T}$cross_compiling" >&6
1836
1837 echo "$as_me:1837: checking for executable suffix" >&5
1838 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1839 if { (eval echo "$as_me:1839: \"$ac_link\"") >&5
1840   (eval $ac_link) 2>&5
1841   ac_status=$?
1842   echo "$as_me:1842: \$? = $ac_status" >&5
1843   (exit $ac_status); }; then
1844   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1845 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1846 # work properly (i.e., refer to `conftest.exe'), while it won't with
1847 # `rm'.
1848 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1849   case $ac_file in
1850     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1851     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1852           export ac_cv_exeext
1853           break;;
1854     * ) break;;
1855   esac
1856 done
1857 else
1858   { { echo "$as_me:1858: error: cannot compute EXEEXT: cannot compile and link" >&5
1859 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1860    { (exit 1); exit 1; }; }
1861 fi
1862
1863 rm -f conftest$ac_cv_exeext
1864 echo "$as_me:1864: result: $ac_cv_exeext" >&5
1865 echo "${ECHO_T}$ac_cv_exeext" >&6
1866
1867 rm -f conftest.$ac_ext
1868 EXEEXT=$ac_cv_exeext
1869 ac_exeext=$EXEEXT
1870 echo "$as_me:1870: checking for object suffix" >&5
1871 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1872 if test "${ac_cv_objext+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   cat >conftest.$ac_ext <<_ACEOF
1876 #line 1876 "configure"
1877 #include "confdefs.h"
1878
1879 int
1880 main ()
1881 {
1882
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 rm -f conftest.o conftest.obj
1888 if { (eval echo "$as_me:1888: \"$ac_compile\"") >&5
1889   (eval $ac_compile) 2>&5
1890   ac_status=$?
1891   echo "$as_me:1891: \$? = $ac_status" >&5
1892   (exit $ac_status); }; then
1893   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1894   case $ac_file in
1895     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1896     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1897        break;;
1898   esac
1899 done
1900 else
1901   echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 { { echo "$as_me:1903: error: cannot compute OBJEXT: cannot compile" >&5
1904 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1909 fi
1910 echo "$as_me:1910: result: $ac_cv_objext" >&5
1911 echo "${ECHO_T}$ac_cv_objext" >&6
1912 OBJEXT=$ac_cv_objext
1913 ac_objext=$OBJEXT
1914 echo "$as_me:1914: checking whether we are using the GNU C compiler" >&5
1915 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1916 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   cat >conftest.$ac_ext <<_ACEOF
1920 #line 1920 "configure"
1921 #include "confdefs.h"
1922
1923 int
1924 main ()
1925 {
1926 #ifndef __GNUC__
1927        choke me
1928 #endif
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 rm -f conftest.$ac_objext
1935 if { (eval echo "$as_me:1935: \"$ac_compile\"") >&5
1936   (eval $ac_compile) 2>&5
1937   ac_status=$?
1938   echo "$as_me:1938: \$? = $ac_status" >&5
1939   (exit $ac_status); } &&
1940          { ac_try='test -s conftest.$ac_objext'
1941   { (eval echo "$as_me:1941: \"$ac_try\"") >&5
1942   (eval $ac_try) 2>&5
1943   ac_status=$?
1944   echo "$as_me:1944: \$? = $ac_status" >&5
1945   (exit $ac_status); }; }; then
1946   ac_compiler_gnu=yes
1947 else
1948   echo "$as_me: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1950 ac_compiler_gnu=no
1951 fi
1952 rm -f conftest.$ac_objext conftest.$ac_ext
1953 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1954
1955 fi
1956 echo "$as_me:1956: result: $ac_cv_c_compiler_gnu" >&5
1957 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1958 GCC=`test $ac_compiler_gnu = yes && echo yes`
1959 ac_test_CFLAGS=${CFLAGS+set}
1960 ac_save_CFLAGS=$CFLAGS
1961 CFLAGS="-g"
1962 echo "$as_me:1962: checking whether $CC accepts -g" >&5
1963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1964 if test "${ac_cv_prog_cc_g+set}" = set; then
1965   echo $ECHO_N "(cached) $ECHO_C" >&6
1966 else
1967   cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 rm -f conftest.$ac_objext
1980 if { (eval echo "$as_me:1980: \"$ac_compile\"") >&5
1981   (eval $ac_compile) 2>&5
1982   ac_status=$?
1983   echo "$as_me:1983: \$? = $ac_status" >&5
1984   (exit $ac_status); } &&
1985          { ac_try='test -s conftest.$ac_objext'
1986   { (eval echo "$as_me:1986: \"$ac_try\"") >&5
1987   (eval $ac_try) 2>&5
1988   ac_status=$?
1989   echo "$as_me:1989: \$? = $ac_status" >&5
1990   (exit $ac_status); }; }; then
1991   ac_cv_prog_cc_g=yes
1992 else
1993   echo "$as_me: failed program was:" >&5
1994 cat conftest.$ac_ext >&5
1995 ac_cv_prog_cc_g=no
1996 fi
1997 rm -f conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 echo "$as_me:1999: result: $ac_cv_prog_cc_g" >&5
2000 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2001 if test "$ac_test_CFLAGS" = set; then
2002   CFLAGS=$ac_save_CFLAGS
2003 elif test $ac_cv_prog_cc_g = yes; then
2004   if test "$GCC" = yes; then
2005     CFLAGS="-g -O2"
2006   else
2007     CFLAGS="-g"
2008   fi
2009 else
2010   if test "$GCC" = yes; then
2011     CFLAGS="-O2"
2012   else
2013     CFLAGS=
2014   fi
2015 fi
2016 # Some people use a C++ compiler to compile C.  Since we use `exit',
2017 # in C++ we need to declare it.  In case someone uses the same compiler
2018 # for both compiling C and C++ we need to have the C++ compiler decide
2019 # the declaration of exit, since it's the most demanding environment.
2020 cat >conftest.$ac_ext <<_ACEOF
2021 #ifndef __cplusplus
2022   choke me
2023 #endif
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:2026: \"$ac_compile\"") >&5
2027   (eval $ac_compile) 2>&5
2028   ac_status=$?
2029   echo "$as_me:2029: \$? = $ac_status" >&5
2030   (exit $ac_status); } &&
2031          { ac_try='test -s conftest.$ac_objext'
2032   { (eval echo "$as_me:2032: \"$ac_try\"") >&5
2033   (eval $ac_try) 2>&5
2034   ac_status=$?
2035   echo "$as_me:2035: \$? = $ac_status" >&5
2036   (exit $ac_status); }; }; then
2037   for ac_declaration in \
2038    ''\
2039    '#include <stdlib.h>' \
2040    'extern "C" void std::exit (int) throw (); using std::exit;' \
2041    'extern "C" void std::exit (int); using std::exit;' \
2042    'extern "C" void exit (int) throw ();' \
2043    'extern "C" void exit (int);' \
2044    'void exit (int);'
2045 do
2046   cat >conftest.$ac_ext <<_ACEOF
2047 #line 2047 "configure"
2048 #include "confdefs.h"
2049 #include <stdlib.h>
2050 $ac_declaration
2051 int
2052 main ()
2053 {
2054 exit (42);
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 rm -f conftest.$ac_objext
2060 if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5
2061   (eval $ac_compile) 2>&5
2062   ac_status=$?
2063   echo "$as_me:2063: \$? = $ac_status" >&5
2064   (exit $ac_status); } &&
2065          { ac_try='test -s conftest.$ac_objext'
2066   { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2067   (eval $ac_try) 2>&5
2068   ac_status=$?
2069   echo "$as_me:2069: \$? = $ac_status" >&5
2070   (exit $ac_status); }; }; then
2071   :
2072 else
2073   echo "$as_me: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 continue
2076 fi
2077 rm -f conftest.$ac_objext conftest.$ac_ext
2078   cat >conftest.$ac_ext <<_ACEOF
2079 #line 2079 "configure"
2080 #include "confdefs.h"
2081 $ac_declaration
2082 int
2083 main ()
2084 {
2085 exit (42);
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:2091: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>&5
2093   ac_status=$?
2094   echo "$as_me:2094: \$? = $ac_status" >&5
2095   (exit $ac_status); } &&
2096          { ac_try='test -s conftest.$ac_objext'
2097   { (eval echo "$as_me:2097: \"$ac_try\"") >&5
2098   (eval $ac_try) 2>&5
2099   ac_status=$?
2100   echo "$as_me:2100: \$? = $ac_status" >&5
2101   (exit $ac_status); }; }; then
2102   break
2103 else
2104   echo "$as_me: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 fi
2107 rm -f conftest.$ac_objext conftest.$ac_ext
2108 done
2109 echo '#ifdef __cplusplus' >>confdefs.h
2110 echo $ac_declaration      >>confdefs.h
2111 echo '#endif'             >>confdefs.h
2112
2113 else
2114   echo "$as_me: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2116 fi
2117 rm -f conftest.$ac_objext conftest.$ac_ext
2118 ac_ext=c
2119 ac_cpp='$CPP $CPPFLAGS'
2120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
2124 ac_config_commands="$ac_config_commands default-2"
2125
2126 ac_ext=c
2127 ac_cpp='$CPP $CPPFLAGS'
2128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2131 echo "$as_me:2131: checking how to run the C preprocessor" >&5
2132 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2133 # On Suns, sometimes $CPP names a directory.
2134 if test -n "$CPP" && test -d "$CPP"; then
2135   CPP=
2136 fi
2137 if test -z "$CPP"; then
2138   if test "${ac_cv_prog_CPP+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141       # Double quotes because CPP needs to be expanded
2142     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2143     do
2144       # break 2 since there is a loop in there.
2145       ac_preproc_ok=false
2146 for ac_c_preproc_warn_flag in '' yes
2147 do
2148   # Use a header file that comes with gcc, so configuring glibc
2149   # with a fresh cross-compiler works.
2150   # On the NeXT, cc -E runs the code through the compiler's parser,
2151   # not just through cpp. "Syntax error" is here to catch this case.
2152   cat >conftest.$ac_ext <<_ACEOF
2153 #line 2153 "configure"
2154 #include "confdefs.h"
2155 #include <assert.h>
2156                      Syntax error
2157 _ACEOF
2158 if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
2159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2160   ac_status=$?
2161   egrep -v '^ *\+' conftest.er1 >conftest.err
2162   rm -f conftest.er1
2163   cat conftest.err >&5
2164   echo "$as_me:2164: \$? = $ac_status" >&5
2165   (exit $ac_status); } >/dev/null; then
2166   if test -s conftest.err; then
2167     ac_cpp_err=$ac_c_preproc_warn_flag
2168   else
2169     ac_cpp_err=
2170   fi
2171 else
2172   ac_cpp_err=yes
2173 fi
2174 if test -z "$ac_cpp_err"; then
2175   :
2176 else
2177   echo "$as_me: failed program was:" >&5
2178   cat conftest.$ac_ext >&5
2179   # Broken: fails on valid input.
2180 continue
2181 fi
2182 rm -f conftest.err conftest.$ac_ext
2183
2184   # OK, works on sane cases.  Now check whether non-existent headers
2185   # can be detected and how.
2186   cat >conftest.$ac_ext <<_ACEOF
2187 #line 2187 "configure"
2188 #include "confdefs.h"
2189 #include <ac_nonexistent.h>
2190 _ACEOF
2191 if { (eval echo "$as_me:2191: \"$ac_cpp conftest.$ac_ext\"") >&5
2192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2193   ac_status=$?
2194   egrep -v '^ *\+' conftest.er1 >conftest.err
2195   rm -f conftest.er1
2196   cat conftest.err >&5
2197   echo "$as_me:2197: \$? = $ac_status" >&5
2198   (exit $ac_status); } >/dev/null; then
2199   if test -s conftest.err; then
2200     ac_cpp_err=$ac_c_preproc_warn_flag
2201   else
2202     ac_cpp_err=
2203   fi
2204 else
2205   ac_cpp_err=yes
2206 fi
2207 if test -z "$ac_cpp_err"; then
2208   # Broken: success on invalid input.
2209 continue
2210 else
2211   echo "$as_me: failed program was:" >&5
2212   cat conftest.$ac_ext >&5
2213   # Passes both tests.
2214 ac_preproc_ok=:
2215 break
2216 fi
2217 rm -f conftest.err conftest.$ac_ext
2218
2219 done
2220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2221 rm -f conftest.err conftest.$ac_ext
2222 if $ac_preproc_ok; then
2223   break 2
2224 fi
2225
2226     done
2227     ac_cv_prog_CPP=$CPP
2228
2229 fi
2230   CPP=$ac_cv_prog_CPP
2231 else
2232   ac_cv_prog_CPP=$CPP
2233 fi
2234 echo "$as_me:2234: result: $CPP" >&5
2235 echo "${ECHO_T}$CPP" >&6
2236 ac_preproc_ok=false
2237 for ac_c_preproc_warn_flag in '' yes
2238 do
2239   # Use a header file that comes with gcc, so configuring glibc
2240   # with a fresh cross-compiler works.
2241   # On the NeXT, cc -E runs the code through the compiler's parser,
2242   # not just through cpp. "Syntax error" is here to catch this case.
2243   cat >conftest.$ac_ext <<_ACEOF
2244 #line 2244 "configure"
2245 #include "confdefs.h"
2246 #include <assert.h>
2247                      Syntax error
2248 _ACEOF
2249 if { (eval echo "$as_me:2249: \"$ac_cpp conftest.$ac_ext\"") >&5
2250   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2251   ac_status=$?
2252   egrep -v '^ *\+' conftest.er1 >conftest.err
2253   rm -f conftest.er1
2254   cat conftest.err >&5
2255   echo "$as_me:2255: \$? = $ac_status" >&5
2256   (exit $ac_status); } >/dev/null; then
2257   if test -s conftest.err; then
2258     ac_cpp_err=$ac_c_preproc_warn_flag
2259   else
2260     ac_cpp_err=
2261   fi
2262 else
2263   ac_cpp_err=yes
2264 fi
2265 if test -z "$ac_cpp_err"; then
2266   :
2267 else
2268   echo "$as_me: failed program was:" >&5
2269   cat conftest.$ac_ext >&5
2270   # Broken: fails on valid input.
2271 continue
2272 fi
2273 rm -f conftest.err conftest.$ac_ext
2274
2275   # OK, works on sane cases.  Now check whether non-existent headers
2276   # can be detected and how.
2277   cat >conftest.$ac_ext <<_ACEOF
2278 #line 2278 "configure"
2279 #include "confdefs.h"
2280 #include <ac_nonexistent.h>
2281 _ACEOF
2282 if { (eval echo "$as_me:2282: \"$ac_cpp conftest.$ac_ext\"") >&5
2283   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2284   ac_status=$?
2285   egrep -v '^ *\+' conftest.er1 >conftest.err
2286   rm -f conftest.er1
2287   cat conftest.err >&5
2288   echo "$as_me:2288: \$? = $ac_status" >&5
2289   (exit $ac_status); } >/dev/null; then
2290   if test -s conftest.err; then
2291     ac_cpp_err=$ac_c_preproc_warn_flag
2292   else
2293     ac_cpp_err=
2294   fi
2295 else
2296   ac_cpp_err=yes
2297 fi
2298 if test -z "$ac_cpp_err"; then
2299   # Broken: success on invalid input.
2300 continue
2301 else
2302   echo "$as_me: failed program was:" >&5
2303   cat conftest.$ac_ext >&5
2304   # Passes both tests.
2305 ac_preproc_ok=:
2306 break
2307 fi
2308 rm -f conftest.err conftest.$ac_ext
2309
2310 done
2311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2312 rm -f conftest.err conftest.$ac_ext
2313 if $ac_preproc_ok; then
2314   :
2315 else
2316   { { echo "$as_me:2316: error: C preprocessor \"$CPP\" fails sanity check" >&5
2317 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2318    { (exit 1); exit 1; }; }
2319 fi
2320
2321 ac_ext=c
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2326
2327 am_make=${MAKE-make}
2328 # BSD make uses .include
2329 cat > confinc << 'END'
2330 doit:
2331         @echo done
2332 END
2333 # If we don't find an include directive, just comment out the code.
2334 echo "$as_me:2334: checking for style of include used by $am_make" >&5
2335 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2336 _am_include='#'
2337 for am_inc in include .include; do
2338    echo "$am_inc confinc" > confmf
2339    if test "`$am_make -f confmf 2> /dev/null`" = "done"; then
2340       _am_include=$am_inc
2341       break
2342    fi
2343 done
2344
2345 echo "$as_me:2345: result: $_am_include" >&5
2346 echo "${ECHO_T}$_am_include" >&6
2347 rm -f confinc confmf
2348
2349 depcc="$CC"
2350 depcpp="$CPP"
2351
2352 echo "$as_me:2352: checking dependency style of $depcc" >&5
2353 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2354 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2355   echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357   if test -z "$AMDEP"; then
2358   # We make a subdir and do the tests there.  Otherwise we can end up
2359   # making bogus files that we don't know about and never remove.  For
2360   # instance it was reported that on HP-UX the gcc test will end up
2361   # making a dummy file named `D' -- because `-MD' means `put the output
2362   # in D'.
2363   mkdir confdir
2364   # Copy depcomp to subdir because otherwise we won't find it if we're
2365   # using a relative directory.
2366   cp "$am_depcomp" confdir
2367   cd confdir
2368
2369   am_cv_CC_dependencies_compiler_type=none
2370   for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "./depcomp"`; do
2371     # We need to recreate these files for each test, as the compiler may
2372     # overwrite some of them when testing with obscure command lines.
2373     # This happens at least with the AIX C compiler.
2374     echo '#include "conftest.h"' > conftest.c
2375     echo 'int i;' > conftest.h
2376
2377     case "$depmode" in
2378     nosideeffect)
2379       # after this tag, mechanisms are not by side-effect, so they'll
2380       # only be used when explicitly requested
2381       if test "x$enable_dependency_tracking" = xyes; then
2382         continue
2383       else
2384         break
2385       fi
2386       ;;
2387     none) break ;;
2388     esac
2389     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2390     # mode.  It turns out that the SunPro C++ compiler does not properly
2391     # handle `-M -o', and we need to detect this.
2392     if depmode="$depmode" \
2393        source=conftest.c object=conftest.o \
2394        depfile=conftest.Po tmpdepfile=conftest.TPo \
2395        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2396        grep conftest.h conftest.Po > /dev/null 2>&1; then
2397       am_cv_CC_dependencies_compiler_type="$depmode"
2398       break
2399     fi
2400   done
2401
2402   cd ..
2403   rm -rf confdir
2404 else
2405   am_cv_CC_dependencies_compiler_type=none
2406 fi
2407
2408 fi
2409 echo "$as_me:2409: result: $am_cv_CC_dependencies_compiler_type" >&5
2410 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2411 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2412
2413 echo "$as_me:2413: checking for $CC option to accept ANSI C" >&5
2414 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2415 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2416   echo $ECHO_N "(cached) $ECHO_C" >&6
2417 else
2418   ac_cv_prog_cc_stdc=no
2419 ac_save_CC=$CC
2420 cat >conftest.$ac_ext <<_ACEOF
2421 #line 2421 "configure"
2422 #include "confdefs.h"
2423 #include <stdarg.h>
2424 #include <stdio.h>
2425 #include <sys/types.h>
2426 #include <sys/stat.h>
2427 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2428 struct buf { int x; };
2429 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2430 static char *e (p, i)
2431      char **p;
2432      int i;
2433 {
2434   return p[i];
2435 }
2436 static char *f (char * (*g) (char **, int), char **p, ...)
2437 {
2438   char *s;
2439   va_list v;
2440   va_start (v,p);
2441   s = g (p, va_arg (v,int));
2442   va_end (v);
2443   return s;
2444 }
2445 int test (int i, double x);
2446 struct s1 {int (*f) (int a);};
2447 struct s2 {int (*f) (double a);};
2448 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2449 int argc;
2450 char **argv;
2451 int
2452 main ()
2453 {
2454 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 # Don't try gcc -ansi; that turns off useful extensions and
2460 # breaks some systems' header files.
2461 # AIX                   -qlanglvl=ansi
2462 # Ultrix and OSF/1      -std1
2463 # HP-UX 10.20 and later -Ae
2464 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2465 # SVR4                  -Xc -D__EXTENSIONS__
2466 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2467 do
2468   CC="$ac_save_CC $ac_arg"
2469   rm -f conftest.$ac_objext
2470 if { (eval echo "$as_me:2470: \"$ac_compile\"") >&5
2471   (eval $ac_compile) 2>&5
2472   ac_status=$?
2473   echo "$as_me:2473: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -s conftest.$ac_objext'
2476   { (eval echo "$as_me:2476: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:2479: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   ac_cv_prog_cc_stdc=$ac_arg
2482 break
2483 else
2484   echo "$as_me: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 fi
2487 rm -f conftest.$ac_objext
2488 done
2489 rm -f conftest.$ac_ext conftest.$ac_objext
2490 CC=$ac_save_CC
2491
2492 fi
2493
2494 case "x$ac_cv_prog_cc_stdc" in
2495   x|xno)
2496     echo "$as_me:2496: result: none needed" >&5
2497 echo "${ECHO_T}none needed" >&6 ;;
2498   *)
2499     echo "$as_me:2499: result: $ac_cv_prog_cc_stdc" >&5
2500 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2501     CC="$CC $ac_cv_prog_cc_stdc" ;;
2502 esac
2503
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 echo "$as_me:2509: checking how to run the C preprocessor" >&5
2510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2513   CPP=
2514 fi
2515 if test -z "$CPP"; then
2516   if test "${ac_cv_prog_CPP+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519       # Double quotes because CPP needs to be expanded
2520     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2521     do
2522       # break 2 since there is a loop in there.
2523       ac_preproc_ok=false
2524 for ac_c_preproc_warn_flag in '' yes
2525 do
2526   # Use a header file that comes with gcc, so configuring glibc
2527   # with a fresh cross-compiler works.
2528   # On the NeXT, cc -E runs the code through the compiler's parser,
2529   # not just through cpp. "Syntax error" is here to catch this case.
2530   cat >conftest.$ac_ext <<_ACEOF
2531 #line 2531 "configure"
2532 #include "confdefs.h"
2533 #include <assert.h>
2534                      Syntax error
2535 _ACEOF
2536 if { (eval echo "$as_me:2536: \"$ac_cpp conftest.$ac_ext\"") >&5
2537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2538   ac_status=$?
2539   egrep -v '^ *\+' conftest.er1 >conftest.err
2540   rm -f conftest.er1
2541   cat conftest.err >&5
2542   echo "$as_me:2542: \$? = $ac_status" >&5
2543   (exit $ac_status); } >/dev/null; then
2544   if test -s conftest.err; then
2545     ac_cpp_err=$ac_c_preproc_warn_flag
2546   else
2547     ac_cpp_err=
2548   fi
2549 else
2550   ac_cpp_err=yes
2551 fi
2552 if test -z "$ac_cpp_err"; then
2553   :
2554 else
2555   echo "$as_me: failed program was:" >&5
2556   cat conftest.$ac_ext >&5
2557   # Broken: fails on valid input.
2558 continue
2559 fi
2560 rm -f conftest.err conftest.$ac_ext
2561
2562   # OK, works on sane cases.  Now check whether non-existent headers
2563   # can be detected and how.
2564   cat >conftest.$ac_ext <<_ACEOF
2565 #line 2565 "configure"
2566 #include "confdefs.h"
2567 #include <ac_nonexistent.h>
2568 _ACEOF
2569 if { (eval echo "$as_me:2569: \"$ac_cpp conftest.$ac_ext\"") >&5
2570   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2571   ac_status=$?
2572   egrep -v '^ *\+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
2574   cat conftest.err >&5
2575   echo "$as_me:2575: \$? = $ac_status" >&5
2576   (exit $ac_status); } >/dev/null; then
2577   if test -s conftest.err; then
2578     ac_cpp_err=$ac_c_preproc_warn_flag
2579   else
2580     ac_cpp_err=
2581   fi
2582 else
2583   ac_cpp_err=yes
2584 fi
2585 if test -z "$ac_cpp_err"; then
2586   # Broken: success on invalid input.
2587 continue
2588 else
2589   echo "$as_me: failed program was:" >&5
2590   cat conftest.$ac_ext >&5
2591   # Passes both tests.
2592 ac_preproc_ok=:
2593 break
2594 fi
2595 rm -f conftest.err conftest.$ac_ext
2596
2597 done
2598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2599 rm -f conftest.err conftest.$ac_ext
2600 if $ac_preproc_ok; then
2601   break 2
2602 fi
2603
2604     done
2605     ac_cv_prog_CPP=$CPP
2606
2607 fi
2608   CPP=$ac_cv_prog_CPP
2609 else
2610   ac_cv_prog_CPP=$CPP
2611 fi
2612 echo "$as_me:2612: result: $CPP" >&5
2613 echo "${ECHO_T}$CPP" >&6
2614 ac_preproc_ok=false
2615 for ac_c_preproc_warn_flag in '' yes
2616 do
2617   # Use a header file that comes with gcc, so configuring glibc
2618   # with a fresh cross-compiler works.
2619   # On the NeXT, cc -E runs the code through the compiler's parser,
2620   # not just through cpp. "Syntax error" is here to catch this case.
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line 2622 "configure"
2623 #include "confdefs.h"
2624 #include <assert.h>
2625                      Syntax error
2626 _ACEOF
2627 if { (eval echo "$as_me:2627: \"$ac_cpp conftest.$ac_ext\"") >&5
2628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2629   ac_status=$?
2630   egrep -v '^ *\+' conftest.er1 >conftest.err
2631   rm -f conftest.er1
2632   cat conftest.err >&5
2633   echo "$as_me:2633: \$? = $ac_status" >&5
2634   (exit $ac_status); } >/dev/null; then
2635   if test -s conftest.err; then
2636     ac_cpp_err=$ac_c_preproc_warn_flag
2637   else
2638     ac_cpp_err=
2639   fi
2640 else
2641   ac_cpp_err=yes
2642 fi
2643 if test -z "$ac_cpp_err"; then
2644   :
2645 else
2646   echo "$as_me: failed program was:" >&5
2647   cat conftest.$ac_ext >&5
2648   # Broken: fails on valid input.
2649 continue
2650 fi
2651 rm -f conftest.err conftest.$ac_ext
2652
2653   # OK, works on sane cases.  Now check whether non-existent headers
2654   # can be detected and how.
2655   cat >conftest.$ac_ext <<_ACEOF
2656 #line 2656 "configure"
2657 #include "confdefs.h"
2658 #include <ac_nonexistent.h>
2659 _ACEOF
2660 if { (eval echo "$as_me:2660: \"$ac_cpp conftest.$ac_ext\"") >&5
2661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2662   ac_status=$?
2663   egrep -v '^ *\+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:2666: \$? = $ac_status" >&5
2667   (exit $ac_status); } >/dev/null; then
2668   if test -s conftest.err; then
2669     ac_cpp_err=$ac_c_preproc_warn_flag
2670   else
2671     ac_cpp_err=
2672   fi
2673 else
2674   ac_cpp_err=yes
2675 fi
2676 if test -z "$ac_cpp_err"; then
2677   # Broken: success on invalid input.
2678 continue
2679 else
2680   echo "$as_me: failed program was:" >&5
2681   cat conftest.$ac_ext >&5
2682   # Passes both tests.
2683 ac_preproc_ok=:
2684 break
2685 fi
2686 rm -f conftest.err conftest.$ac_ext
2687
2688 done
2689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2690 rm -f conftest.err conftest.$ac_ext
2691 if $ac_preproc_ok; then
2692   :
2693 else
2694   { { echo "$as_me:2694: error: C preprocessor \"$CPP\" fails sanity check" >&5
2695 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2696    { (exit 1); exit 1; }; }
2697 fi
2698
2699 ac_ext=c
2700 ac_cpp='$CPP $CPPFLAGS'
2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705 case "$target" in
2706  *-pc-cygwin*)
2707     CFLAGS="$CFLAGS -DSYS_CYGWIN32"
2708     ;;
2709  i386-sequent-sysv4)
2710     case "$CC" in
2711      cc)
2712         CFLAGS="$CFLAGS -Wc,+Abi-socket"
2713         ;;
2714     esac
2715     ;;
2716  alpha*-dec-osf*)
2717     case "$CC" in
2718      cc)
2719         CFLAGS="$CFLAGS -std1"
2720         ;;
2721     esac
2722     ;;
2723 esac
2724
2725 case "$host" in
2726  $target)
2727     ;;
2728  *) case "$target" in
2729      *-*-vxworks*)
2730         # Quick and dirty sanity check
2731         case "$VX_KERNEL" in
2732          '') { { echo "$as_me:2732: error: Please follow the directions in html/vxworks.html!" >&5
2733 echo "$as_me: error: Please follow the directions in html/vxworks.html!" >&2;}
2734    { (exit 1); exit 1; }; }
2735             ;;
2736         esac
2737         CFLAGS="$CFLAGS -DSYS_VXWORKS"
2738         ;;
2739     esac
2740     ;;
2741 esac
2742
2743 for ac_prog in mawk gawk nawk awk
2744 do
2745   # Extract the first word of "$ac_prog", so it can be a program name with args.
2746 set dummy $ac_prog; ac_word=$2
2747 echo "$as_me:2747: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_prog_AWK+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   if test -n "$AWK"; then
2753   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2754 else
2755   ac_save_IFS=$IFS; IFS=$ac_path_separator
2756 ac_dummy="$PATH"
2757 for ac_dir in $ac_dummy; do
2758   IFS=$ac_save_IFS
2759   test -z "$ac_dir" && ac_dir=.
2760   $as_executable_p "$ac_dir/$ac_word" || continue
2761 ac_cv_prog_AWK="$ac_prog"
2762 echo "$as_me:2762: found $ac_dir/$ac_word" >&5
2763 break
2764 done
2765
2766 fi
2767 fi
2768 AWK=$ac_cv_prog_AWK
2769 if test -n "$AWK"; then
2770   echo "$as_me:2770: result: $AWK" >&5
2771 echo "${ECHO_T}$AWK" >&6
2772 else
2773   echo "$as_me:2773: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2775 fi
2776
2777   test -n "$AWK" && break
2778 done
2779
2780 echo "$as_me:2780: checking whether ${MAKE-make} sets \${MAKE}" >&5
2781 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2783 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   cat >conftest.make <<\EOF
2787 all:
2788         @echo 'ac_maketemp="${MAKE}"'
2789 EOF
2790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2791 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2792 if test -n "$ac_maketemp"; then
2793   eval ac_cv_prog_make_${ac_make}_set=yes
2794 else
2795   eval ac_cv_prog_make_${ac_make}_set=no
2796 fi
2797 rm -f conftest.make
2798 fi
2799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2800   echo "$as_me:2800: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802   SET_MAKE=
2803 else
2804   echo "$as_me:2804: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806   SET_MAKE="MAKE=${MAKE-make}"
2807 fi
2808
2809 rm -f conftest*
2810
2811 case "$GCC" in
2812  yes)
2813     CFLAGS="$CFLAGS -Wall"
2814     # CFLAGS="$CFLAGS -Wcast-align"
2815     CFLAGS="$CFLAGS -Wcast-qual"
2816     # CFLAGS="$CFLAGS -Wconversion"
2817     # CFLAGS="$CFLAGS -Werror"
2818     CFLAGS="$CFLAGS -Wmissing-prototypes"
2819     CFLAGS="$CFLAGS -Wpointer-arith"
2820     CFLAGS="$CFLAGS -Wshadow"
2821     CFLAGS="$CFLAGS -Wstrict-prototypes"
2822     # CFLAGS="$CFLAGS -Wtraditional"
2823     # CFLAGS="$CFLAGS -Wwrite-strings"
2824
2825     echo "$as_me:2825: checking whether ${CC-cc} -pipe works" >&5
2826 echo $ECHO_N "checking whether ${CC-cc} -pipe works... $ECHO_C" >&6
2827 if test "${ac_cv_prog_cc_pipe+set}" = set; then
2828   echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830   echo 'void f(){}' > conftest.c
2831     if test -z "`${CC-cc} -pipe -c conftest.c 2>&1`" -a -s conftest.o; then
2832       ac_cv_prog_cc_pipe=yes
2833     else
2834       ac_cv_prog_cc_pipe=no
2835     fi
2836     rm -f conftest*
2837
2838 fi
2839 echo "$as_me:2839: result: $ac_cv_prog_cc_pipe" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cc_pipe" >&6
2841
2842     case "$ac_cv_prog_cc_pipe" in
2843      yes)
2844         CFLAGS="$CFLAGS -pipe"
2845         ;;
2846     esac
2847     ;;
2848 esac
2849
2850 ac_busted_vpath_in_make=no
2851
2852 case "$target" in
2853  *-next-nextstep3)
2854     CFLAGS="$CFLAGS -posix"
2855     ;;
2856  *-*-irix6.1*)  # 64 bit only
2857     # busted vpath?
2858     ;;
2859  *-*-irix6*)    # 6.2 (and later?)
2860     ac_busted_vpath_in_make=yes
2861     # don't pass -n32 to gcc, it cannot handle and doesn't need it
2862     if test "$GCC" != yes; then
2863       case "$CFLAGS" in
2864        *-n32*) ;;
2865        *-n64*) ;;
2866        *) case "$iCFLAGS" in
2867            '') CFLAGS="-O2 -g3 -n32" ;;
2868            *)  CFLAGS="$CFLAGS -n32" ;;
2869           esac
2870           ;;
2871       esac
2872       case "$LDFLAGS" in
2873        *-n32*) ;;
2874        *-n64*) ;;
2875        *) LDFLAGS="$LDFLAGS -n32" ;;
2876       esac
2877     fi
2878     ;;
2879  *-*-solaris2.5.1)
2880     ac_busted_vpath_in_make=yes
2881     ;;
2882 esac
2883
2884 case "$ac_busted_vpath_in_make$srcdir" in
2885  no*) ;;
2886  yes.) ;;
2887  *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
2888      '')
2889         { { echo "$as_me:2889: error: building outside of the main directory requires GNU make" >&5
2890 echo "$as_me: error: building outside of the main directory requires GNU make" >&2;}
2891    { (exit 1); exit 1; }; }
2892         ;;
2893      *) ;;
2894     esac
2895     ;;
2896 esac
2897
2898 echo "$as_me:2898: checking whether ln -s works" >&5
2899 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2900 LN_S=$as_ln_s
2901 if test "$LN_S" = "ln -s"; then
2902   echo "$as_me:2902: result: yes" >&5
2903 echo "${ECHO_T}yes" >&6
2904 else
2905   echo "$as_me:2905: result: no, using $LN_S" >&5
2906 echo "${ECHO_T}no, using $LN_S" >&6
2907 fi
2908
2909 if test $ac_cv_c_compiler_gnu = yes; then
2910     echo "$as_me:2910: checking whether $CC needs -traditional" >&5
2911 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2912 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2913   echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915     ac_pattern="Autoconf.*'x'"
2916   cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2919 #include <sgtty.h>
2920 Autoconf TIOCGETP
2921 _ACEOF
2922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2923   egrep "$ac_pattern" >/dev/null 2>&1; then
2924   ac_cv_prog_gcc_traditional=yes
2925 else
2926   ac_cv_prog_gcc_traditional=no
2927 fi
2928 rm -f conftest*
2929
2930   if test $ac_cv_prog_gcc_traditional = no; then
2931     cat >conftest.$ac_ext <<_ACEOF
2932 #line 2932 "configure"
2933 #include "confdefs.h"
2934 #include <termio.h>
2935 Autoconf TCGETA
2936 _ACEOF
2937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938   egrep "$ac_pattern" >/dev/null 2>&1; then
2939   ac_cv_prog_gcc_traditional=yes
2940 fi
2941 rm -f conftest*
2942
2943   fi
2944 fi
2945 echo "$as_me:2945: result: $ac_cv_prog_gcc_traditional" >&5
2946 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2947   if test $ac_cv_prog_gcc_traditional = yes; then
2948     CC="$CC -traditional"
2949   fi
2950 fi
2951
2952 echo "$as_me:2952: checking for AIX" >&5
2953 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2954 cat >conftest.$ac_ext <<_ACEOF
2955 #line 2955 "configure"
2956 #include "confdefs.h"
2957 #ifdef _AIX
2958   yes
2959 #endif
2960
2961 _ACEOF
2962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2963   egrep "yes" >/dev/null 2>&1; then
2964   echo "$as_me:2964: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6
2966 cat >>confdefs.h <<\EOF
2967 #define _ALL_SOURCE 1
2968 EOF
2969
2970 else
2971   echo "$as_me:2971: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2973 fi
2974 rm -f conftest*
2975
2976 echo "$as_me:2976: checking for minix/config.h" >&5
2977 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2978 if test "${ac_cv_header_minix_config_h+set}" = set; then
2979   echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981   cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2984 #include <minix/config.h>
2985 _ACEOF
2986 if { (eval echo "$as_me:2986: \"$ac_cpp conftest.$ac_ext\"") >&5
2987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988   ac_status=$?
2989   egrep -v '^ *\+' conftest.er1 >conftest.err
2990   rm -f conftest.er1
2991   cat conftest.err >&5
2992   echo "$as_me:2992: \$? = $ac_status" >&5
2993   (exit $ac_status); } >/dev/null; then
2994   if test -s conftest.err; then
2995     ac_cpp_err=$ac_c_preproc_warn_flag
2996   else
2997     ac_cpp_err=
2998   fi
2999 else
3000   ac_cpp_err=yes
3001 fi
3002 if test -z "$ac_cpp_err"; then
3003   ac_cv_header_minix_config_h=yes
3004 else
3005   echo "$as_me: failed program was:" >&5
3006   cat conftest.$ac_ext >&5
3007   ac_cv_header_minix_config_h=no
3008 fi
3009 rm -f conftest.err conftest.$ac_ext
3010 fi
3011 echo "$as_me:3011: result: $ac_cv_header_minix_config_h" >&5
3012 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3013 if test $ac_cv_header_minix_config_h = yes; then
3014   MINIX=yes
3015 else
3016   MINIX=
3017 fi
3018
3019 if test "$MINIX" = yes; then
3020
3021 cat >>confdefs.h <<\EOF
3022 #define _POSIX_SOURCE 1
3023 EOF
3024
3025 cat >>confdefs.h <<\EOF
3026 #define _POSIX_1_SOURCE 2
3027 EOF
3028
3029 cat >>confdefs.h <<\EOF
3030 #define _MINIX 1
3031 EOF
3032
3033 fi
3034
3035 echo "$as_me:3035: checking for POSIXized ISC" >&5
3036 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
3037 if test -d /etc/conf/kconfig.d &&
3038    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3039 then
3040   echo "$as_me:3040: result: yes" >&5
3041 echo "${ECHO_T}yes" >&6
3042   ISC=yes # If later tests want to check for ISC.
3043
3044 cat >>confdefs.h <<\EOF
3045 #define _POSIX_SOURCE 1
3046 EOF
3047
3048   if test "$GCC" = yes; then
3049     CC="$CC -posix"
3050   else
3051     CC="$CC -Xp"
3052   fi
3053 else
3054   echo "$as_me:3054: result: no" >&5
3055 echo "${ECHO_T}no" >&6
3056   ISC=
3057 fi
3058
3059 if test -n "$ac_tool_prefix"; then
3060   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3062 echo "$as_me:3062: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3064 if test "${ac_cv_prog_RANLIB+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -n "$RANLIB"; then
3068   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3069 else
3070   ac_save_IFS=$IFS; IFS=$ac_path_separator
3071 ac_dummy="$PATH"
3072 for ac_dir in $ac_dummy; do
3073   IFS=$ac_save_IFS
3074   test -z "$ac_dir" && ac_dir=.
3075   $as_executable_p "$ac_dir/$ac_word" || continue
3076 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3077 echo "$as_me:3077: found $ac_dir/$ac_word" >&5
3078 break
3079 done
3080
3081 fi
3082 fi
3083 RANLIB=$ac_cv_prog_RANLIB
3084 if test -n "$RANLIB"; then
3085   echo "$as_me:3085: result: $RANLIB" >&5
3086 echo "${ECHO_T}$RANLIB" >&6
3087 else
3088   echo "$as_me:3088: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3090 fi
3091
3092 fi
3093 if test -z "$ac_cv_prog_RANLIB"; then
3094   ac_ct_RANLIB=$RANLIB
3095   # Extract the first word of "ranlib", so it can be a program name with args.
3096 set dummy ranlib; ac_word=$2
3097 echo "$as_me:3097: checking for $ac_word" >&5
3098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3100   echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102   if test -n "$ac_ct_RANLIB"; then
3103   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3104 else
3105   ac_save_IFS=$IFS; IFS=$ac_path_separator
3106 ac_dummy="$PATH"
3107 for ac_dir in $ac_dummy; do
3108   IFS=$ac_save_IFS
3109   test -z "$ac_dir" && ac_dir=.
3110   $as_executable_p "$ac_dir/$ac_word" || continue
3111 ac_cv_prog_ac_ct_RANLIB="ranlib"
3112 echo "$as_me:3112: found $ac_dir/$ac_word" >&5
3113 break
3114 done
3115
3116   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3117 fi
3118 fi
3119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3120 if test -n "$ac_ct_RANLIB"; then
3121   echo "$as_me:3121: result: $ac_ct_RANLIB" >&5
3122 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3123 else
3124   echo "$as_me:3124: result: no" >&5
3125 echo "${ECHO_T}no" >&6
3126 fi
3127
3128   RANLIB=$ac_ct_RANLIB
3129 else
3130   RANLIB="$ac_cv_prog_RANLIB"
3131 fi
3132
3133 # Extract the first word of "sh", so it can be a program name with args.
3134 set dummy sh; ac_word=$2
3135 echo "$as_me:3135: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137 if test "${ac_cv_path_PATH_SH+set}" = set; then
3138   echo $ECHO_N "(cached) $ECHO_C" >&6
3139 else
3140   case $PATH_SH in
3141   [\\/]* | ?:[\\/]*)
3142   ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
3143   ;;
3144   *)
3145   ac_save_IFS=$IFS; IFS=$ac_path_separator
3146 ac_dummy="$PATH"
3147 for ac_dir in $ac_dummy; do
3148   IFS=$ac_save_IFS
3149   test -z "$ac_dir" && ac_dir=.
3150   if $as_executable_p "$ac_dir/$ac_word"; then
3151    ac_cv_path_PATH_SH="$ac_dir/$ac_word"
3152    echo "$as_me:3152: found $ac_dir/$ac_word" >&5
3153    break
3154 fi
3155 done
3156
3157   ;;
3158 esac
3159 fi
3160 PATH_SH=$ac_cv_path_PATH_SH
3161
3162 if test -n "$PATH_SH"; then
3163   echo "$as_me:3163: result: $PATH_SH" >&5
3164 echo "${ECHO_T}$PATH_SH" >&6
3165 else
3166   echo "$as_me:3166: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 # Extract the first word of "perl", so it can be a program name with args.
3171 set dummy perl; ac_word=$2
3172 echo "$as_me:3172: checking for $ac_word" >&5
3173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174 if test "${ac_cv_path_PATH_PERL+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   case $PATH_PERL in
3178   [\\/]* | ?:[\\/]*)
3179   ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
3180   ;;
3181   *)
3182   ac_save_IFS=$IFS; IFS=$ac_path_separator
3183 ac_dummy="$PATH"
3184 for ac_dir in $ac_dummy; do
3185   IFS=$ac_save_IFS
3186   test -z "$ac_dir" && ac_dir=.
3187   if $as_executable_p "$ac_dir/$ac_word"; then
3188    ac_cv_path_PATH_PERL="$ac_dir/$ac_word"
3189    echo "$as_me:3189: found $ac_dir/$ac_word" >&5
3190    break
3191 fi
3192 done
3193
3194   ;;
3195 esac
3196 fi
3197 PATH_PERL=$ac_cv_path_PATH_PERL
3198
3199 if test -n "$PATH_PERL"; then
3200   echo "$as_me:3200: result: $PATH_PERL" >&5
3201 echo "${ECHO_T}$PATH_PERL" >&6
3202 else
3203   echo "$as_me:3203: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206
3207  cat >conftest.$ac_ext <<_ACEOF
3208 #line 3208 "configure"
3209 #include "confdefs.h"
3210 #define ACAT(a,b)a ## b
3211 ACAT(Cir,cus)
3212
3213 _ACEOF
3214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3215   egrep "Circus" >/dev/null 2>&1; then
3216   cat >>confdefs.h <<\EOF
3217 #define ULONG_CONST(a) a ## UL
3218 EOF
3219
3220 else
3221   cat >conftest.$ac_ext <<_ACEOF
3222 #line 3222 "configure"
3223 #include "confdefs.h"
3224 #define RCAT(a,b)a/**/b
3225 RCAT(Rei,ser)
3226
3227 _ACEOF
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229   egrep "Reiser" >/dev/null 2>&1; then
3230   cat >>confdefs.h <<\EOF
3231 #define ULONG_CONST(a) a/**/L
3232 EOF
3233
3234 else
3235   { { echo "$as_me:3235: error: How do we create an unsigned long constant?" >&5
3236 echo "$as_me: error: How do we create an unsigned long constant?" >&2;}
3237    { (exit 1); exit 1; }; }
3238 fi
3239 rm -f conftest*
3240
3241 fi
3242 rm -f conftest*
3243
3244 case "$target" in
3245  *-*-vxworks*)
3246     ac_link="$ac_link $VX_KERNEL"
3247     ;;
3248 esac
3249
3250 # Find a good install program.  We prefer a C program (faster),
3251 # so one script is as good as another.  But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3256 # AIX /bin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # ./install, which can be erroneously created by make from ./install.sh.
3262 echo "$as_me:3262: checking for a BSD compatible install" >&5
3263 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3264 if test -z "$INSTALL"; then
3265 if test "${ac_cv_path_install+set}" = set; then
3266   echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268     ac_save_IFS=$IFS; IFS=$ac_path_separator
3269   for ac_dir in $PATH; do
3270     IFS=$ac_save_IFS
3271     # Account for people who put trailing slashes in PATH elements.
3272     case $ac_dir/ in
3273     / | ./ | .// | /cC/* \
3274     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3275     | /usr/ucb/* ) ;;
3276     *)
3277       # OSF1 and SCO ODT 3.0 have their own names for install.
3278       # Don't use installbsd from OSF since it installs stuff as root
3279       # by default.
3280       for ac_prog in ginstall scoinst install; do
3281         if $as_executable_p "$ac_dir/$ac_prog"; then
3282           if test $ac_prog = install &&
3283             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3284             # AIX install.  It has an incompatible calling convention.
3285             :
3286           elif test $ac_prog = install &&
3287             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3288             # program-specific install script used by HP pwplus--don't use.
3289             :
3290           else
3291             ac_cv_path_install="$ac_dir/$ac_prog -c"
3292             break 2
3293           fi
3294         fi
3295       done
3296       ;;
3297     esac
3298   done
3299
3300 fi
3301   if test "${ac_cv_path_install+set}" = set; then
3302     INSTALL=$ac_cv_path_install
3303   else
3304     # As a last resort, use the slow shell script.  We don't cache a
3305     # path for INSTALL within a source directory, because that will
3306     # break other packages using the cache if that directory is
3307     # removed, or if the path is relative.
3308     INSTALL=$ac_install_sh
3309   fi
3310 fi
3311 echo "$as_me:3311: result: $INSTALL" >&5
3312 echo "${ECHO_T}$INSTALL" >&6
3313
3314 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3315 # It thinks the first close brace ends the variable substitution.
3316 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3317
3318 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3319
3320 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3321
3322 case "$target" in
3323  *-pc-cygwin*)
3324
3325 echo "$as_me:3325: checking for main in -ladvapi32" >&5
3326 echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
3327 if test "${ac_cv_lib_advapi32_main+set}" = set; then
3328   echo $ECHO_N "(cached) $ECHO_C" >&6
3329 else
3330   ac_check_lib_save_LIBS=$LIBS
3331 LIBS="-ladvapi32  $LIBS"
3332 cat >conftest.$ac_ext <<_ACEOF
3333 #line 3333 "configure"
3334 #include "confdefs.h"
3335
3336 int
3337 main ()
3338 {
3339 main ();
3340   ;
3341   return 0;
3342 }
3343 _ACEOF
3344 rm -f conftest.$ac_objext conftest$ac_exeext
3345 if { (eval echo "$as_me:3345: \"$ac_link\"") >&5
3346   (eval $ac_link) 2>&5
3347   ac_status=$?
3348   echo "$as_me:3348: \$? = $ac_status" >&5
3349   (exit $ac_status); } &&
3350          { ac_try='test -s conftest$ac_exeext'
3351   { (eval echo "$as_me:3351: \"$ac_try\"") >&5
3352   (eval $ac_try) 2>&5
3353   ac_status=$?
3354   echo "$as_me:3354: \$? = $ac_status" >&5
3355   (exit $ac_status); }; }; then
3356   ac_cv_lib_advapi32_main=yes
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3360 ac_cv_lib_advapi32_main=no
3361 fi
3362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3363 LIBS=$ac_check_lib_save_LIBS
3364 fi
3365 echo "$as_me:3365: result: $ac_cv_lib_advapi32_main" >&5
3366 echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
3367 if test $ac_cv_lib_advapi32_main = yes; then
3368   cat >>confdefs.h <<EOF
3369 #define HAVE_LIBADVAPI32 1
3370 EOF
3371
3372   LIBS="-ladvapi32 $LIBS"
3373
3374 fi
3375
3376     ;;
3377 esac
3378
3379 echo "$as_me:3379: checking for nlist in -lelf" >&5
3380 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
3381 if test "${ac_cv_lib_elf_nlist+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   ac_check_lib_save_LIBS=$LIBS
3385 LIBS="-lelf  $LIBS"
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line 3387 "configure"
3388 #include "confdefs.h"
3389
3390 /* Override any gcc2 internal prototype to avoid an error.  */
3391 #ifdef __cplusplus
3392 extern "C"
3393 #endif
3394 /* We use char because int might match the return type of a gcc2
3395    builtin and then its argument prototype would still apply.  */
3396 char nlist ();
3397 int
3398 main ()
3399 {
3400 nlist ();
3401   ;
3402   return 0;
3403 }
3404 _ACEOF
3405 rm -f conftest.$ac_objext conftest$ac_exeext
3406 if { (eval echo "$as_me:3406: \"$ac_link\"") >&5
3407   (eval $ac_link) 2>&5
3408   ac_status=$?
3409   echo "$as_me:3409: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -s conftest$ac_exeext'
3412   { (eval echo "$as_me:3412: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:3415: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   ac_cv_lib_elf_nlist=yes
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3421 ac_cv_lib_elf_nlist=no
3422 fi
3423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3424 LIBS=$ac_check_lib_save_LIBS
3425 fi
3426 echo "$as_me:3426: result: $ac_cv_lib_elf_nlist" >&5
3427 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
3428 if test $ac_cv_lib_elf_nlist = yes; then
3429   cat >>confdefs.h <<EOF
3430 #define HAVE_LIBELF 1
3431 EOF
3432
3433   LIBS="-lelf $LIBS"
3434
3435 fi
3436
3437 echo "$as_me:3437: checking for main in -lkvm" >&5
3438 echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
3439 if test "${ac_cv_lib_kvm_main+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   ac_check_lib_save_LIBS=$LIBS
3443 LIBS="-lkvm  $LIBS"
3444 cat >conftest.$ac_ext <<_ACEOF
3445 #line 3445 "configure"
3446 #include "confdefs.h"
3447
3448 int
3449 main ()
3450 {
3451 main ();
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext conftest$ac_exeext
3457 if { (eval echo "$as_me:3457: \"$ac_link\"") >&5
3458   (eval $ac_link) 2>&5
3459   ac_status=$?
3460   echo "$as_me:3460: \$? = $ac_status" >&5
3461   (exit $ac_status); } &&
3462          { ac_try='test -s conftest$ac_exeext'
3463   { (eval echo "$as_me:3463: \"$ac_try\"") >&5
3464   (eval $ac_try) 2>&5
3465   ac_status=$?
3466   echo "$as_me:3466: \$? = $ac_status" >&5
3467   (exit $ac_status); }; }; then
3468   ac_cv_lib_kvm_main=yes
3469 else
3470   echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 ac_cv_lib_kvm_main=no
3473 fi
3474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3475 LIBS=$ac_check_lib_save_LIBS
3476 fi
3477 echo "$as_me:3477: result: $ac_cv_lib_kvm_main" >&5
3478 echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
3479 if test $ac_cv_lib_kvm_main = yes; then
3480   cat >>confdefs.h <<EOF
3481 #define HAVE_LIBKVM 1
3482 EOF
3483
3484   LIBS="-lkvm $LIBS"
3485
3486 fi
3487
3488 echo "$as_me:3488: checking for nlist in -lld" >&5
3489 echo $ECHO_N "checking for nlist in -lld... $ECHO_C" >&6
3490 if test "${ac_cv_lib_ld_nlist+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   ac_check_lib_save_LIBS=$LIBS
3494 LIBS="-lld  $LIBS"
3495 cat >conftest.$ac_ext <<_ACEOF
3496 #line 3496 "configure"
3497 #include "confdefs.h"
3498
3499 /* Override any gcc2 internal prototype to avoid an error.  */
3500 #ifdef __cplusplus
3501 extern "C"
3502 #endif
3503 /* We use char because int might match the return type of a gcc2
3504    builtin and then its argument prototype would still apply.  */
3505 char nlist ();
3506 int
3507 main ()
3508 {
3509 nlist ();
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 rm -f conftest.$ac_objext conftest$ac_exeext
3515 if { (eval echo "$as_me:3515: \"$ac_link\"") >&5
3516   (eval $ac_link) 2>&5
3517   ac_status=$?
3518   echo "$as_me:3518: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -s conftest$ac_exeext'
3521   { (eval echo "$as_me:3521: \"$ac_try\"") >&5
3522   (eval $ac_try) 2>&5
3523   ac_status=$?
3524   echo "$as_me:3524: \$? = $ac_status" >&5
3525   (exit $ac_status); }; }; then
3526   ac_cv_lib_ld_nlist=yes
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3530 ac_cv_lib_ld_nlist=no
3531 fi
3532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3533 LIBS=$ac_check_lib_save_LIBS
3534 fi
3535 echo "$as_me:3535: result: $ac_cv_lib_ld_nlist" >&5
3536 echo "${ECHO_T}$ac_cv_lib_ld_nlist" >&6
3537 if test $ac_cv_lib_ld_nlist = yes; then
3538   cat >>confdefs.h <<EOF
3539 #define HAVE_LIBLD 1
3540 EOF
3541
3542   LIBS="-lld $LIBS"
3543
3544 fi
3545
3546 echo "$as_me:3546: checking for nlist in -lmld" >&5
3547 echo $ECHO_N "checking for nlist in -lmld... $ECHO_C" >&6
3548 if test "${ac_cv_lib_mld_nlist+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   ac_check_lib_save_LIBS=$LIBS
3552 LIBS="-lmld  $LIBS"
3553 cat >conftest.$ac_ext <<_ACEOF
3554 #line 3554 "configure"
3555 #include "confdefs.h"
3556
3557 /* Override any gcc2 internal prototype to avoid an error.  */
3558 #ifdef __cplusplus
3559 extern "C"
3560 #endif
3561 /* We use char because int might match the return type of a gcc2
3562    builtin and then its argument prototype would still apply.  */
3563 char nlist ();
3564 int
3565 main ()
3566 {
3567 nlist ();
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 rm -f conftest.$ac_objext conftest$ac_exeext
3573 if { (eval echo "$as_me:3573: \"$ac_link\"") >&5
3574   (eval $ac_link) 2>&5
3575   ac_status=$?
3576   echo "$as_me:3576: \$? = $ac_status" >&5
3577   (exit $ac_status); } &&
3578          { ac_try='test -s conftest$ac_exeext'
3579   { (eval echo "$as_me:3579: \"$ac_try\"") >&5
3580   (eval $ac_try) 2>&5
3581   ac_status=$?
3582   echo "$as_me:3582: \$? = $ac_status" >&5
3583   (exit $ac_status); }; }; then
3584   ac_cv_lib_mld_nlist=yes
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 cat conftest.$ac_ext >&5
3588 ac_cv_lib_mld_nlist=no
3589 fi
3590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3591 LIBS=$ac_check_lib_save_LIBS
3592 fi
3593 echo "$as_me:3593: result: $ac_cv_lib_mld_nlist" >&5
3594 echo "${ECHO_T}$ac_cv_lib_mld_nlist" >&6
3595 if test $ac_cv_lib_mld_nlist = yes; then
3596   cat >>confdefs.h <<EOF
3597 #define HAVE_LIBMLD 1
3598 EOF
3599
3600   LIBS="-lmld $LIBS"
3601
3602 fi
3603
3604 echo "$as_me:3604: checking for gethostent" >&5
3605 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
3606 if test "${ac_cv_func_gethostent+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   cat >conftest.$ac_ext <<_ACEOF
3610 #line 3610 "configure"
3611 #include "confdefs.h"
3612 /* System header to define __stub macros and hopefully few prototypes,
3613     which can conflict with char gethostent (); below.  */
3614 #include <assert.h>
3615 /* Override any gcc2 internal prototype to avoid an error.  */
3616 #ifdef __cplusplus
3617 extern "C"
3618 #endif
3619 /* We use char because int might match the return type of a gcc2
3620    builtin and then its argument prototype would still apply.  */
3621 char gethostent ();
3622 char (*f) ();
3623
3624 int
3625 main ()
3626 {
3627 /* The GNU C library defines this for functions which it implements
3628     to always fail with ENOSYS.  Some functions are actually named
3629     something starting with __ and the normal name is an alias.  */
3630 #if defined (__stub_gethostent) || defined (__stub___gethostent)
3631 choke me
3632 #else
3633 f = gethostent;
3634 #endif
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 rm -f conftest.$ac_objext conftest$ac_exeext
3641 if { (eval echo "$as_me:3641: \"$ac_link\"") >&5
3642   (eval $ac_link) 2>&5
3643   ac_status=$?
3644   echo "$as_me:3644: \$? = $ac_status" >&5
3645   (exit $ac_status); } &&
3646          { ac_try='test -s conftest$ac_exeext'
3647   { (eval echo "$as_me:3647: \"$ac_try\"") >&5
3648   (eval $ac_try) 2>&5
3649   ac_status=$?
3650   echo "$as_me:3650: \$? = $ac_status" >&5
3651   (exit $ac_status); }; }; then
3652   ac_cv_func_gethostent=yes
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3656 ac_cv_func_gethostent=no
3657 fi
3658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3659 fi
3660 echo "$as_me:3660: result: $ac_cv_func_gethostent" >&5
3661 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
3662 if test $ac_cv_func_gethostent = yes; then
3663   :
3664 else
3665
3666 echo "$as_me:3666: checking for gethostent in -lnsl" >&5
3667 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
3668 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   ac_check_lib_save_LIBS=$LIBS
3672 LIBS="-lnsl -lsocket $LIBS"
3673 cat >conftest.$ac_ext <<_ACEOF
3674 #line 3674 "configure"
3675 #include "confdefs.h"
3676
3677 /* Override any gcc2 internal prototype to avoid an error.  */
3678 #ifdef __cplusplus
3679 extern "C"
3680 #endif
3681 /* We use char because int might match the return type of a gcc2
3682    builtin and then its argument prototype would still apply.  */
3683 char gethostent ();
3684 int
3685 main ()
3686 {
3687 gethostent ();
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext conftest$ac_exeext
3693 if { (eval echo "$as_me:3693: \"$ac_link\"") >&5
3694   (eval $ac_link) 2>&5
3695   ac_status=$?
3696   echo "$as_me:3696: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -s conftest$ac_exeext'
3699   { (eval echo "$as_me:3699: \"$ac_try\"") >&5
3700   (eval $ac_try) 2>&5
3701   ac_status=$?
3702   echo "$as_me:3702: \$? = $ac_status" >&5
3703   (exit $ac_status); }; }; then
3704   ac_cv_lib_nsl_gethostent=yes
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 ac_cv_lib_nsl_gethostent=no
3709 fi
3710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3711 LIBS=$ac_check_lib_save_LIBS
3712 fi
3713 echo "$as_me:3713: result: $ac_cv_lib_nsl_gethostent" >&5
3714 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
3715 if test $ac_cv_lib_nsl_gethostent = yes; then
3716   cat >>confdefs.h <<EOF
3717 #define HAVE_LIBNSL 1
3718 EOF
3719
3720   LIBS="-lnsl $LIBS"
3721
3722 fi
3723
3724 fi
3725
3726 echo "$as_me:3726: checking for openlog" >&5
3727 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
3728 if test "${ac_cv_func_openlog+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   cat >conftest.$ac_ext <<_ACEOF
3732 #line 3732 "configure"
3733 #include "confdefs.h"
3734 /* System header to define __stub macros and hopefully few prototypes,
3735     which can conflict with char openlog (); below.  */
3736 #include <assert.h>
3737 /* Override any gcc2 internal prototype to avoid an error.  */
3738 #ifdef __cplusplus
3739 extern "C"
3740 #endif
3741 /* We use char because int might match the return type of a gcc2
3742    builtin and then its argument prototype would still apply.  */
3743 char openlog ();
3744 char (*f) ();
3745
3746 int
3747 main ()
3748 {
3749 /* The GNU C library defines this for functions which it implements
3750     to always fail with ENOSYS.  Some functions are actually named
3751     something starting with __ and the normal name is an alias.  */
3752 #if defined (__stub_openlog) || defined (__stub___openlog)
3753 choke me
3754 #else
3755 f = openlog;
3756 #endif
3757
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (eval echo "$as_me:3763: \"$ac_link\"") >&5
3764   (eval $ac_link) 2>&5
3765   ac_status=$?
3766   echo "$as_me:3766: \$? = $ac_status" >&5
3767   (exit $ac_status); } &&
3768          { ac_try='test -s conftest$ac_exeext'
3769   { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3770   (eval $ac_try) 2>&5
3771   ac_status=$?
3772   echo "$as_me:3772: \$? = $ac_status" >&5
3773   (exit $ac_status); }; }; then
3774   ac_cv_func_openlog=yes
3775 else
3776   echo "$as_me: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 ac_cv_func_openlog=no
3779 fi
3780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3781 fi
3782 echo "$as_me:3782: result: $ac_cv_func_openlog" >&5
3783 echo "${ECHO_T}$ac_cv_func_openlog" >&6
3784 if test $ac_cv_func_openlog = yes; then
3785   :
3786 else
3787
3788 echo "$as_me:3788: checking for openlog in -lgen" >&5
3789 echo $ECHO_N "checking for openlog in -lgen... $ECHO_C" >&6
3790 if test "${ac_cv_lib_gen_openlog+set}" = set; then
3791   echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793   ac_check_lib_save_LIBS=$LIBS
3794 LIBS="-lgen  $LIBS"
3795 cat >conftest.$ac_ext <<_ACEOF
3796 #line 3796 "configure"
3797 #include "confdefs.h"
3798
3799 /* Override any gcc2 internal prototype to avoid an error.  */
3800 #ifdef __cplusplus
3801 extern "C"
3802 #endif
3803 /* We use char because int might match the return type of a gcc2
3804    builtin and then its argument prototype would still apply.  */
3805 char openlog ();
3806 int
3807 main ()
3808 {
3809 openlog ();
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 rm -f conftest.$ac_objext conftest$ac_exeext
3815 if { (eval echo "$as_me:3815: \"$ac_link\"") >&5
3816   (eval $ac_link) 2>&5
3817   ac_status=$?
3818   echo "$as_me:3818: \$? = $ac_status" >&5
3819   (exit $ac_status); } &&
3820          { ac_try='test -s conftest$ac_exeext'
3821   { (eval echo "$as_me:3821: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:3824: \$? = $ac_status" >&5
3825   (exit $ac_status); }; }; then
3826   ac_cv_lib_gen_openlog=yes
3827 else
3828   echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_cv_lib_gen_openlog=no
3831 fi
3832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3833 LIBS=$ac_check_lib_save_LIBS
3834 fi
3835 echo "$as_me:3835: result: $ac_cv_lib_gen_openlog" >&5
3836 echo "${ECHO_T}$ac_cv_lib_gen_openlog" >&6
3837 if test $ac_cv_lib_gen_openlog = yes; then
3838   cat >>confdefs.h <<EOF
3839 #define HAVE_LIBGEN 1
3840 EOF
3841
3842   LIBS="-lgen $LIBS"
3843
3844 fi
3845
3846 fi
3847
3848 echo "$as_me:3848: checking for readline in -lreadline" >&5
3849 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
3850 if test "${ac_cv_lib_readline_readline+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   ac_check_lib_save_LIBS=$LIBS
3854 LIBS="-lreadline  $LIBS"
3855 cat >conftest.$ac_ext <<_ACEOF
3856 #line 3856 "configure"
3857 #include "confdefs.h"
3858
3859 /* Override any gcc2 internal prototype to avoid an error.  */
3860 #ifdef __cplusplus
3861 extern "C"
3862 #endif
3863 /* We use char because int might match the return type of a gcc2
3864    builtin and then its argument prototype would still apply.  */
3865 char readline ();
3866 int
3867 main ()
3868 {
3869 readline ();
3870   ;
3871   return 0;
3872 }
3873 _ACEOF
3874 rm -f conftest.$ac_objext conftest$ac_exeext
3875 if { (eval echo "$as_me:3875: \"$ac_link\"") >&5
3876   (eval $ac_link) 2>&5
3877   ac_status=$?
3878   echo "$as_me:3878: \$? = $ac_status" >&5
3879   (exit $ac_status); } &&
3880          { ac_try='test -s conftest$ac_exeext'
3881   { (eval echo "$as_me:3881: \"$ac_try\"") >&5
3882   (eval $ac_try) 2>&5
3883   ac_status=$?
3884   echo "$as_me:3884: \$? = $ac_status" >&5
3885   (exit $ac_status); }; }; then
3886   ac_cv_lib_readline_readline=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3890 ac_cv_lib_readline_readline=no
3891 fi
3892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3893 LIBS=$ac_check_lib_save_LIBS
3894 fi
3895 echo "$as_me:3895: result: $ac_cv_lib_readline_readline" >&5
3896 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
3897 if test $ac_cv_lib_readline_readline = yes; then
3898   cat >>confdefs.h <<EOF
3899 #define HAVE_LIBREADLINE 1
3900 EOF
3901
3902   LIBS="-lreadline $LIBS"
3903
3904 fi
3905
3906 case "$target" in
3907  *-*-linux*) ;;
3908  *)
3909
3910 echo "$as_me:3910: checking for sched_setscheduler in -lrt" >&5
3911 echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6
3912 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   ac_check_lib_save_LIBS=$LIBS
3916 LIBS="-lrt  $LIBS"
3917 cat >conftest.$ac_ext <<_ACEOF
3918 #line 3918 "configure"
3919 #include "confdefs.h"
3920
3921 /* Override any gcc2 internal prototype to avoid an error.  */
3922 #ifdef __cplusplus
3923 extern "C"
3924 #endif
3925 /* We use char because int might match the return type of a gcc2
3926    builtin and then its argument prototype would still apply.  */
3927 char sched_setscheduler ();
3928 int
3929 main ()
3930 {
3931 sched_setscheduler ();
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.$ac_objext conftest$ac_exeext
3937 if { (eval echo "$as_me:3937: \"$ac_link\"") >&5
3938   (eval $ac_link) 2>&5
3939   ac_status=$?
3940   echo "$as_me:3940: \$? = $ac_status" >&5
3941   (exit $ac_status); } &&
3942          { ac_try='test -s conftest$ac_exeext'
3943   { (eval echo "$as_me:3943: \"$ac_try\"") >&5
3944   (eval $ac_try) 2>&5
3945   ac_status=$?
3946   echo "$as_me:3946: \$? = $ac_status" >&5
3947   (exit $ac_status); }; }; then
3948   ac_cv_lib_rt_sched_setscheduler=yes
3949 else
3950   echo "$as_me: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3952 ac_cv_lib_rt_sched_setscheduler=no
3953 fi
3954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3955 LIBS=$ac_check_lib_save_LIBS
3956 fi
3957 echo "$as_me:3957: result: $ac_cv_lib_rt_sched_setscheduler" >&5
3958 echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6
3959 if test $ac_cv_lib_rt_sched_setscheduler = yes; then
3960   cat >>confdefs.h <<EOF
3961 #define HAVE_LIBRT 1
3962 EOF
3963
3964   LIBS="-lrt $LIBS"
3965
3966 else
3967
3968 echo "$as_me:3968: checking for sched_setscheduler in -lposix4" >&5
3969 echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6
3970 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   ac_check_lib_save_LIBS=$LIBS
3974 LIBS="-lposix4  $LIBS"
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3978
3979 /* Override any gcc2 internal prototype to avoid an error.  */
3980 #ifdef __cplusplus
3981 extern "C"
3982 #endif
3983 /* We use char because int might match the return type of a gcc2
3984    builtin and then its argument prototype would still apply.  */
3985 char sched_setscheduler ();
3986 int
3987 main ()
3988 {
3989 sched_setscheduler ();
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (eval echo "$as_me:3995: \"$ac_link\"") >&5
3996   (eval $ac_link) 2>&5
3997   ac_status=$?
3998   echo "$as_me:3998: \$? = $ac_status" >&5
3999   (exit $ac_status); } &&
4000          { ac_try='test -s conftest$ac_exeext'
4001   { (eval echo "$as_me:4001: \"$ac_try\"") >&5
4002   (eval $ac_try) 2>&5
4003   ac_status=$?
4004   echo "$as_me:4004: \$? = $ac_status" >&5
4005   (exit $ac_status); }; }; then
4006   ac_cv_lib_posix4_sched_setscheduler=yes
4007 else
4008   echo "$as_me: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4010 ac_cv_lib_posix4_sched_setscheduler=no
4011 fi
4012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4013 LIBS=$ac_check_lib_save_LIBS
4014 fi
4015 echo "$as_me:4015: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
4016 echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6
4017 if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
4018   cat >>confdefs.h <<EOF
4019 #define HAVE_LIBPOSIX4 1
4020 EOF
4021
4022   LIBS="-lposix4 $LIBS"
4023
4024 fi
4025
4026 fi
4027
4028     ;;
4029 esac
4030
4031 echo "$as_me:4031: checking for setsockopt" >&5
4032 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
4033 if test "${ac_cv_func_setsockopt+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   cat >conftest.$ac_ext <<_ACEOF
4037 #line 4037 "configure"
4038 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes,
4040     which can conflict with char setsockopt (); below.  */
4041 #include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error.  */
4043 #ifdef __cplusplus
4044 extern "C"
4045 #endif
4046 /* We use char because int might match the return type of a gcc2
4047    builtin and then its argument prototype would still apply.  */
4048 char setsockopt ();
4049 char (*f) ();
4050
4051 int
4052 main ()
4053 {
4054 /* The GNU C library defines this for functions which it implements
4055     to always fail with ENOSYS.  Some functions are actually named
4056     something starting with __ and the normal name is an alias.  */
4057 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4058 choke me
4059 #else
4060 f = setsockopt;
4061 #endif
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:4068: \"$ac_link\"") >&5
4069   (eval $ac_link) 2>&5
4070   ac_status=$?
4071   echo "$as_me:4071: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -s conftest$ac_exeext'
4074   { (eval echo "$as_me:4074: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:4077: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   ac_cv_func_setsockopt=yes
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 ac_cv_func_setsockopt=no
4084 fi
4085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4086 fi
4087 echo "$as_me:4087: result: $ac_cv_func_setsockopt" >&5
4088 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
4089 if test $ac_cv_func_setsockopt = yes; then
4090   :
4091 else
4092
4093 echo "$as_me:4093: checking for setsockopt in -lsocket" >&5
4094 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
4095 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_check_lib_save_LIBS=$LIBS
4099 LIBS="-lsocket  $LIBS"
4100 cat >conftest.$ac_ext <<_ACEOF
4101 #line 4101 "configure"
4102 #include "confdefs.h"
4103
4104 /* Override any gcc2 internal prototype to avoid an error.  */
4105 #ifdef __cplusplus
4106 extern "C"
4107 #endif
4108 /* We use char because int might match the return type of a gcc2
4109    builtin and then its argument prototype would still apply.  */
4110 char setsockopt ();
4111 int
4112 main ()
4113 {
4114 setsockopt ();
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 rm -f conftest.$ac_objext conftest$ac_exeext
4120 if { (eval echo "$as_me:4120: \"$ac_link\"") >&5
4121   (eval $ac_link) 2>&5
4122   ac_status=$?
4123   echo "$as_me:4123: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -s conftest$ac_exeext'
4126   { (eval echo "$as_me:4126: \"$ac_try\"") >&5
4127   (eval $ac_try) 2>&5
4128   ac_status=$?
4129   echo "$as_me:4129: \$? = $ac_status" >&5
4130   (exit $ac_status); }; }; then
4131   ac_cv_lib_socket_setsockopt=yes
4132 else
4133   echo "$as_me: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 ac_cv_lib_socket_setsockopt=no
4136 fi
4137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_check_lib_save_LIBS
4139 fi
4140 echo "$as_me:4140: result: $ac_cv_lib_socket_setsockopt" >&5
4141 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
4142 if test $ac_cv_lib_socket_setsockopt = yes; then
4143   cat >>confdefs.h <<EOF
4144 #define HAVE_LIBSOCKET 1
4145 EOF
4146
4147   LIBS="-lsocket $LIBS"
4148
4149 fi
4150
4151 fi
4152
4153 echo "$as_me:4153: checking for ANSI C header files" >&5
4154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4155 if test "${ac_cv_header_stdc+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   cat >conftest.$ac_ext <<_ACEOF
4159 #line 4159 "configure"
4160 #include "confdefs.h"
4161 #include <stdlib.h>
4162 #include <stdarg.h>
4163 #include <string.h>
4164 #include <float.h>
4165
4166 _ACEOF
4167 if { (eval echo "$as_me:4167: \"$ac_cpp conftest.$ac_ext\"") >&5
4168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4169   ac_status=$?
4170   egrep -v '^ *\+' conftest.er1 >conftest.err
4171   rm -f conftest.er1
4172   cat conftest.err >&5
4173   echo "$as_me:4173: \$? = $ac_status" >&5
4174   (exit $ac_status); } >/dev/null; then
4175   if test -s conftest.err; then
4176     ac_cpp_err=$ac_c_preproc_warn_flag
4177   else
4178     ac_cpp_err=
4179   fi
4180 else
4181   ac_cpp_err=yes
4182 fi
4183 if test -z "$ac_cpp_err"; then
4184   ac_cv_header_stdc=yes
4185 else
4186   echo "$as_me: failed program was:" >&5
4187   cat conftest.$ac_ext >&5
4188   ac_cv_header_stdc=no
4189 fi
4190 rm -f conftest.err conftest.$ac_ext
4191
4192 if test $ac_cv_header_stdc = yes; then
4193   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194   cat >conftest.$ac_ext <<_ACEOF
4195 #line 4195 "configure"
4196 #include "confdefs.h"
4197 #include <string.h>
4198
4199 _ACEOF
4200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4201   egrep "memchr" >/dev/null 2>&1; then
4202   :
4203 else
4204   ac_cv_header_stdc=no
4205 fi
4206 rm -f conftest*
4207
4208 fi
4209
4210 if test $ac_cv_header_stdc = yes; then
4211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4212   cat >conftest.$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4215 #include <stdlib.h>
4216
4217 _ACEOF
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219   egrep "free" >/dev/null 2>&1; then
4220   :
4221 else
4222   ac_cv_header_stdc=no
4223 fi
4224 rm -f conftest*
4225
4226 fi
4227
4228 if test $ac_cv_header_stdc = yes; then
4229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230   if test "$cross_compiling" = yes; then
4231   :
4232 else
4233   cat >conftest.$ac_ext <<_ACEOF
4234 #line 4234 "configure"
4235 #include "confdefs.h"
4236 #include <ctype.h>
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4240 #else
4241 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4242                      || ('j' <= (c) && (c) <= 'r') \
4243                      || ('s' <= (c) && (c) <= 'z'))
4244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4245 #endif
4246
4247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4248 int
4249 main ()
4250 {
4251   int i;
4252   for (i = 0; i < 256; i++)
4253     if (XOR (islower (i), ISLOWER (i))
4254         || toupper (i) != TOUPPER (i))
4255       exit(2);
4256   exit (0);
4257 }
4258 _ACEOF
4259 rm -f conftest$ac_exeext
4260 if { (eval echo "$as_me:4260: \"$ac_link\"") >&5
4261   (eval $ac_link) 2>&5
4262   ac_status=$?
4263   echo "$as_me:4263: \$? = $ac_status" >&5
4264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4265   { (eval echo "$as_me:4265: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:4268: \$? = $ac_status" >&5
4269   (exit $ac_status); }; }; then
4270   :
4271 else
4272   echo "$as_me: program exited with status $ac_status" >&5
4273 echo "$as_me: failed program was:" >&5
4274 cat conftest.$ac_ext >&5
4275 ac_cv_header_stdc=no
4276 fi
4277 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4278 fi
4279 fi
4280 fi
4281 echo "$as_me:4281: result: $ac_cv_header_stdc" >&5
4282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4283 if test $ac_cv_header_stdc = yes; then
4284
4285 cat >>confdefs.h <<\EOF
4286 #define STDC_HEADERS 1
4287 EOF
4288
4289 fi
4290
4291 for ac_header in bstring.h errno.h fcntl.h ieeefp.h math.h memory.h netdb.h
4292 do
4293 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4294 echo "$as_me:4294: checking for $ac_header" >&5
4295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4296 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   cat >conftest.$ac_ext <<_ACEOF
4300 #line 4300 "configure"
4301 #include "confdefs.h"
4302 #include <$ac_header>
4303 _ACEOF
4304 if { (eval echo "$as_me:4304: \"$ac_cpp conftest.$ac_ext\"") >&5
4305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4306   ac_status=$?
4307   egrep -v '^ *\+' conftest.er1 >conftest.err
4308   rm -f conftest.er1
4309   cat conftest.err >&5
4310   echo "$as_me:4310: \$? = $ac_status" >&5
4311   (exit $ac_status); } >/dev/null; then
4312   if test -s conftest.err; then
4313     ac_cpp_err=$ac_c_preproc_warn_flag
4314   else
4315     ac_cpp_err=
4316   fi
4317 else
4318   ac_cpp_err=yes
4319 fi
4320 if test -z "$ac_cpp_err"; then
4321   eval "$ac_ac_Header=yes"
4322 else
4323   echo "$as_me: failed program was:" >&5
4324   cat conftest.$ac_ext >&5
4325   eval "$ac_ac_Header=no"
4326 fi
4327 rm -f conftest.err conftest.$ac_ext
4328 fi
4329 echo "$as_me:4329: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4331 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4332   cat >>confdefs.h <<EOF
4333 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4334 EOF
4335
4336 fi
4337 done
4338
4339 for ac_header in poll.h resolv.h sched.h sgtty.h stdlib.h string.h termio.h
4340 do
4341 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4342 echo "$as_me:4342: checking for $ac_header" >&5
4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4344 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   cat >conftest.$ac_ext <<_ACEOF
4348 #line 4348 "configure"
4349 #include "confdefs.h"
4350 #include <$ac_header>
4351 _ACEOF
4352 if { (eval echo "$as_me:4352: \"$ac_cpp conftest.$ac_ext\"") >&5
4353   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4354   ac_status=$?
4355   egrep -v '^ *\+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:4358: \$? = $ac_status" >&5
4359   (exit $ac_status); } >/dev/null; then
4360   if test -s conftest.err; then
4361     ac_cpp_err=$ac_c_preproc_warn_flag
4362   else
4363     ac_cpp_err=
4364   fi
4365 else
4366   ac_cpp_err=yes
4367 fi
4368 if test -z "$ac_cpp_err"; then
4369   eval "$ac_ac_Header=yes"
4370 else
4371   echo "$as_me: failed program was:" >&5
4372   cat conftest.$ac_ext >&5
4373   eval "$ac_ac_Header=no"
4374 fi
4375 rm -f conftest.err conftest.$ac_ext
4376 fi
4377 echo "$as_me:4377: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4378 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4379 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4380   cat >>confdefs.h <<EOF
4381 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4382 EOF
4383
4384 fi
4385 done
4386
4387 for ac_header in termios.h timepps.h timex.h unistd.h utmp.h utmpx.h
4388 do
4389 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4390 echo "$as_me:4390: checking for $ac_header" >&5
4391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395   cat >conftest.$ac_ext <<_ACEOF
4396 #line 4396 "configure"
4397 #include "confdefs.h"
4398 #include <$ac_header>
4399 _ACEOF
4400 if { (eval echo "$as_me:4400: \"$ac_cpp conftest.$ac_ext\"") >&5
4401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402   ac_status=$?
4403   egrep -v '^ *\+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:4406: \$? = $ac_status" >&5
4407   (exit $ac_status); } >/dev/null; then
4408   if test -s conftest.err; then
4409     ac_cpp_err=$ac_c_preproc_warn_flag
4410   else
4411     ac_cpp_err=
4412   fi
4413 else
4414   ac_cpp_err=yes
4415 fi
4416 if test -z "$ac_cpp_err"; then
4417   eval "$ac_ac_Header=yes"
4418 else
4419   echo "$as_me: failed program was:" >&5
4420   cat conftest.$ac_ext >&5
4421   eval "$ac_ac_Header=no"
4422 fi
4423 rm -f conftest.err conftest.$ac_ext
4424 fi
4425 echo "$as_me:4425: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4426 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4427 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4428   cat >>confdefs.h <<EOF
4429 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4430 EOF
4431
4432 fi
4433 done
4434
4435 for ac_header in arpa/nameser.h net/if.h netinet/in_systm.h netinet/in.h
4436 do
4437 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4438 echo "$as_me:4438: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   cat >conftest.$ac_ext <<_ACEOF
4444 #line 4444 "configure"
4445 #include "confdefs.h"
4446 #include <$ac_header>
4447 _ACEOF
4448 if { (eval echo "$as_me:4448: \"$ac_cpp conftest.$ac_ext\"") >&5
4449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4450   ac_status=$?
4451   egrep -v '^ *\+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:4454: \$? = $ac_status" >&5
4455   (exit $ac_status); } >/dev/null; then
4456   if test -s conftest.err; then
4457     ac_cpp_err=$ac_c_preproc_warn_flag
4458   else
4459     ac_cpp_err=
4460   fi
4461 else
4462   ac_cpp_err=yes
4463 fi
4464 if test -z "$ac_cpp_err"; then
4465   eval "$ac_ac_Header=yes"
4466 else
4467   echo "$as_me: failed program was:" >&5
4468   cat conftest.$ac_ext >&5
4469   eval "$ac_ac_Header=no"
4470 fi
4471 rm -f conftest.err conftest.$ac_ext
4472 fi
4473 echo "$as_me:4473: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4474 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4475 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4476   cat >>confdefs.h <<EOF
4477 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4478 EOF
4479
4480 fi
4481 done
4482
4483 for ac_header in netinfo/ni.h
4484 do
4485 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4486 echo "$as_me:4486: checking for $ac_header" >&5
4487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4488 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4489   echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491   cat >conftest.$ac_ext <<_ACEOF
4492 #line 4492 "configure"
4493 #include "confdefs.h"
4494 #include <$ac_header>
4495 _ACEOF
4496 if { (eval echo "$as_me:4496: \"$ac_cpp conftest.$ac_ext\"") >&5
4497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498   ac_status=$?
4499   egrep -v '^ *\+' conftest.er1 >conftest.err
4500   rm -f conftest.er1
4501   cat conftest.err >&5
4502   echo "$as_me:4502: \$? = $ac_status" >&5
4503   (exit $ac_status); } >/dev/null; then
4504   if test -s conftest.err; then
4505     ac_cpp_err=$ac_c_preproc_warn_flag
4506   else
4507     ac_cpp_err=
4508   fi
4509 else
4510   ac_cpp_err=yes
4511 fi
4512 if test -z "$ac_cpp_err"; then
4513   eval "$ac_ac_Header=yes"
4514 else
4515   echo "$as_me: failed program was:" >&5
4516   cat conftest.$ac_ext >&5
4517   eval "$ac_ac_Header=no"
4518 fi
4519 rm -f conftest.err conftest.$ac_ext
4520 fi
4521 echo "$as_me:4521: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4523 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4524   cat >>confdefs.h <<EOF
4525 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4526 EOF
4527  cat >>confdefs.h <<\EOF
4528 #define HAVE_NETINFO 1
4529 EOF
4530
4531 fi
4532 done
4533
4534 for ac_header in sun/audioio.h sys/audioio.h
4535 do
4536 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4537 echo "$as_me:4537: checking for $ac_header" >&5
4538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4539 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4540   echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542   cat >conftest.$ac_ext <<_ACEOF
4543 #line 4543 "configure"
4544 #include "confdefs.h"
4545 #include <$ac_header>
4546 _ACEOF
4547 if { (eval echo "$as_me:4547: \"$ac_cpp conftest.$ac_ext\"") >&5
4548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4549   ac_status=$?
4550   egrep -v '^ *\+' conftest.er1 >conftest.err
4551   rm -f conftest.er1
4552   cat conftest.err >&5
4553   echo "$as_me:4553: \$? = $ac_status" >&5
4554   (exit $ac_status); } >/dev/null; then
4555   if test -s conftest.err; then
4556     ac_cpp_err=$ac_c_preproc_warn_flag
4557   else
4558     ac_cpp_err=
4559   fi
4560 else
4561   ac_cpp_err=yes
4562 fi
4563 if test -z "$ac_cpp_err"; then
4564   eval "$ac_ac_Header=yes"
4565 else
4566   echo "$as_me: failed program was:" >&5
4567   cat conftest.$ac_ext >&5
4568   eval "$ac_ac_Header=no"
4569 fi
4570 rm -f conftest.err conftest.$ac_ext
4571 fi
4572 echo "$as_me:4572: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4573 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4574 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4575   cat >>confdefs.h <<EOF
4576 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4577 EOF
4578
4579 fi
4580 done
4581
4582 for ac_header in sys/clkdefs.h sys/file.h
4583 do
4584 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4585 echo "$as_me:4585: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   cat >conftest.$ac_ext <<_ACEOF
4591 #line 4591 "configure"
4592 #include "confdefs.h"
4593 #include <$ac_header>
4594 _ACEOF
4595 if { (eval echo "$as_me:4595: \"$ac_cpp conftest.$ac_ext\"") >&5
4596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4597   ac_status=$?
4598   egrep -v '^ *\+' conftest.er1 >conftest.err
4599   rm -f conftest.er1
4600   cat conftest.err >&5
4601   echo "$as_me:4601: \$? = $ac_status" >&5
4602   (exit $ac_status); } >/dev/null; then
4603   if test -s conftest.err; then
4604     ac_cpp_err=$ac_c_preproc_warn_flag
4605   else
4606     ac_cpp_err=
4607   fi
4608 else
4609   ac_cpp_err=yes
4610 fi
4611 if test -z "$ac_cpp_err"; then
4612   eval "$ac_ac_Header=yes"
4613 else
4614   echo "$as_me: failed program was:" >&5
4615   cat conftest.$ac_ext >&5
4616   eval "$ac_ac_Header=no"
4617 fi
4618 rm -f conftest.err conftest.$ac_ext
4619 fi
4620 echo "$as_me:4620: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4621 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4622 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4623   cat >>confdefs.h <<EOF
4624 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4625 EOF
4626
4627 fi
4628 done
4629
4630 case "$target" in
4631  *-*-sunos4*) ;;
4632  *)
4633 for ac_header in sys/ioctl.h
4634 do
4635 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4636 echo "$as_me:4636: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   cat >conftest.$ac_ext <<_ACEOF
4642 #line 4642 "configure"
4643 #include "confdefs.h"
4644 #include <$ac_header>
4645 _ACEOF
4646 if { (eval echo "$as_me:4646: \"$ac_cpp conftest.$ac_ext\"") >&5
4647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4648   ac_status=$?
4649   egrep -v '^ *\+' conftest.er1 >conftest.err
4650   rm -f conftest.er1
4651   cat conftest.err >&5
4652   echo "$as_me:4652: \$? = $ac_status" >&5
4653   (exit $ac_status); } >/dev/null; then
4654   if test -s conftest.err; then
4655     ac_cpp_err=$ac_c_preproc_warn_flag
4656   else
4657     ac_cpp_err=
4658   fi
4659 else
4660   ac_cpp_err=yes
4661 fi
4662 if test -z "$ac_cpp_err"; then
4663   eval "$ac_ac_Header=yes"
4664 else
4665   echo "$as_me: failed program was:" >&5
4666   cat conftest.$ac_ext >&5
4667   eval "$ac_ac_Header=no"
4668 fi
4669 rm -f conftest.err conftest.$ac_ext
4670 fi
4671 echo "$as_me:4671: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4672 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4673 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4674   cat >>confdefs.h <<EOF
4675 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4676 EOF
4677
4678 fi
4679 done
4680
4681     ;;
4682 esac
4683
4684 for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
4685 do
4686 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4687 echo "$as_me:4687: checking for $ac_header" >&5
4688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4689 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   cat >conftest.$ac_ext <<_ACEOF
4693 #line 4693 "configure"
4694 #include "confdefs.h"
4695 #include <$ac_header>
4696 _ACEOF
4697 if { (eval echo "$as_me:4697: \"$ac_cpp conftest.$ac_ext\"") >&5
4698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699   ac_status=$?
4700   egrep -v '^ *\+' conftest.er1 >conftest.err
4701   rm -f conftest.er1
4702   cat conftest.err >&5
4703   echo "$as_me:4703: \$? = $ac_status" >&5
4704   (exit $ac_status); } >/dev/null; then
4705   if test -s conftest.err; then
4706     ac_cpp_err=$ac_c_preproc_warn_flag
4707   else
4708     ac_cpp_err=
4709   fi
4710 else
4711   ac_cpp_err=yes
4712 fi
4713 if test -z "$ac_cpp_err"; then
4714   eval "$ac_ac_Header=yes"
4715 else
4716   echo "$as_me: failed program was:" >&5
4717   cat conftest.$ac_ext >&5
4718   eval "$ac_ac_Header=no"
4719 fi
4720 rm -f conftest.err conftest.$ac_ext
4721 fi
4722 echo "$as_me:4722: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4723 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4724 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4725   cat >>confdefs.h <<EOF
4726 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4727 EOF
4728
4729 fi
4730 done
4731
4732 for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h
4733 do
4734 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4735 echo "$as_me:4735: checking for $ac_header" >&5
4736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4737 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   cat >conftest.$ac_ext <<_ACEOF
4741 #line 4741 "configure"
4742 #include "confdefs.h"
4743 #include <$ac_header>
4744 _ACEOF
4745 if { (eval echo "$as_me:4745: \"$ac_cpp conftest.$ac_ext\"") >&5
4746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747   ac_status=$?
4748   egrep -v '^ *\+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:4751: \$? = $ac_status" >&5
4752   (exit $ac_status); } >/dev/null; then
4753   if test -s conftest.err; then
4754     ac_cpp_err=$ac_c_preproc_warn_flag
4755   else
4756     ac_cpp_err=
4757   fi
4758 else
4759   ac_cpp_err=yes
4760 fi
4761 if test -z "$ac_cpp_err"; then
4762   eval "$ac_ac_Header=yes"
4763 else
4764   echo "$as_me: failed program was:" >&5
4765   cat conftest.$ac_ext >&5
4766   eval "$ac_ac_Header=no"
4767 fi
4768 rm -f conftest.err conftest.$ac_ext
4769 fi
4770 echo "$as_me:4770: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4771 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4772 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4773   cat >>confdefs.h <<EOF
4774 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4775 EOF
4776
4777 fi
4778 done
4779
4780 case "$target" in
4781  *-*-sco*)
4782
4783 for ac_header in sys/sio.h
4784 do
4785 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4786 echo "$as_me:4786: checking for $ac_header" >&5
4787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4788 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   cat >conftest.$ac_ext <<_ACEOF
4792 #line 4792 "configure"
4793 #include "confdefs.h"
4794 #include <$ac_header>
4795 _ACEOF
4796 if { (eval echo "$as_me:4796: \"$ac_cpp conftest.$ac_ext\"") >&5
4797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4798   ac_status=$?
4799   egrep -v '^ *\+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:4802: \$? = $ac_status" >&5
4803   (exit $ac_status); } >/dev/null; then
4804   if test -s conftest.err; then
4805     ac_cpp_err=$ac_c_preproc_warn_flag
4806   else
4807     ac_cpp_err=
4808   fi
4809 else
4810   ac_cpp_err=yes
4811 fi
4812 if test -z "$ac_cpp_err"; then
4813   eval "$ac_ac_Header=yes"
4814 else
4815   echo "$as_me: failed program was:" >&5
4816   cat conftest.$ac_ext >&5
4817   eval "$ac_ac_Header=no"
4818 fi
4819 rm -f conftest.err conftest.$ac_ext
4820 fi
4821 echo "$as_me:4821: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4822 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4823 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4824   cat >>confdefs.h <<EOF
4825 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4826 EOF
4827
4828 fi
4829 done
4830
4831     ;;
4832 esac
4833
4834 for ac_header in sys/select.h sys/sockio.h sys/stat.h sys/stream.h
4835 do
4836 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4837 echo "$as_me:4837: checking for $ac_header" >&5
4838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4839 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   cat >conftest.$ac_ext <<_ACEOF
4843 #line 4843 "configure"
4844 #include "confdefs.h"
4845 #include <$ac_header>
4846 _ACEOF
4847 if { (eval echo "$as_me:4847: \"$ac_cpp conftest.$ac_ext\"") >&5
4848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849   ac_status=$?
4850   egrep -v '^ *\+' conftest.er1 >conftest.err
4851   rm -f conftest.er1
4852   cat conftest.err >&5
4853   echo "$as_me:4853: \$? = $ac_status" >&5
4854   (exit $ac_status); } >/dev/null; then
4855   if test -s conftest.err; then
4856     ac_cpp_err=$ac_c_preproc_warn_flag
4857   else
4858     ac_cpp_err=
4859   fi
4860 else
4861   ac_cpp_err=yes
4862 fi
4863 if test -z "$ac_cpp_err"; then
4864   eval "$ac_ac_Header=yes"
4865 else
4866   echo "$as_me: failed program was:" >&5
4867   cat conftest.$ac_ext >&5
4868   eval "$ac_ac_Header=no"
4869 fi
4870 rm -f conftest.err conftest.$ac_ext
4871 fi
4872 echo "$as_me:4872: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4873 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4874 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4875   cat >>confdefs.h <<EOF
4876 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4877 EOF
4878
4879 fi
4880 done
4881
4882 for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h
4883 do
4884 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4885 echo "$as_me:4885: checking for $ac_header" >&5
4886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4887 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   cat >conftest.$ac_ext <<_ACEOF
4891 #line 4891 "configure"
4892 #include "confdefs.h"
4893 #include <$ac_header>
4894 _ACEOF
4895 if { (eval echo "$as_me:4895: \"$ac_cpp conftest.$ac_ext\"") >&5
4896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897   ac_status=$?
4898   egrep -v '^ *\+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:4901: \$? = $ac_status" >&5
4902   (exit $ac_status); } >/dev/null; then
4903   if test -s conftest.err; then
4904     ac_cpp_err=$ac_c_preproc_warn_flag
4905   else
4906     ac_cpp_err=
4907   fi
4908 else
4909   ac_cpp_err=yes
4910 fi
4911 if test -z "$ac_cpp_err"; then
4912   eval "$ac_ac_Header=yes"
4913 else
4914   echo "$as_me: failed program was:" >&5
4915   cat conftest.$ac_ext >&5
4916   eval "$ac_ac_Header=no"
4917 fi
4918 rm -f conftest.err conftest.$ac_ext
4919 fi
4920 echo "$as_me:4920: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4921 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4922 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4923   cat >>confdefs.h <<EOF
4924 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4925 EOF
4926
4927 fi
4928 done
4929
4930 for ac_header in sys/time.h
4931 do
4932 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4933 echo "$as_me:4933: checking for $ac_header" >&5
4934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4935 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   cat >conftest.$ac_ext <<_ACEOF
4939 #line 4939 "configure"
4940 #include "confdefs.h"
4941 #include <$ac_header>
4942 _ACEOF
4943 if { (eval echo "$as_me:4943: \"$ac_cpp conftest.$ac_ext\"") >&5
4944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4945   ac_status=$?
4946   egrep -v '^ *\+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:4949: \$? = $ac_status" >&5
4950   (exit $ac_status); } >/dev/null; then
4951   if test -s conftest.err; then
4952     ac_cpp_err=$ac_c_preproc_warn_flag
4953   else
4954     ac_cpp_err=
4955   fi
4956 else
4957   ac_cpp_err=yes
4958 fi
4959 if test -z "$ac_cpp_err"; then
4960   eval "$ac_ac_Header=yes"
4961 else
4962   echo "$as_me: failed program was:" >&5
4963   cat conftest.$ac_ext >&5
4964   eval "$ac_ac_Header=no"
4965 fi
4966 rm -f conftest.err conftest.$ac_ext
4967 fi
4968 echo "$as_me:4968: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4969 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4970 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4971   cat >>confdefs.h <<EOF
4972 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4973 EOF
4974
4975 fi
4976 done
4977
4978 cat >conftest.$ac_ext <<_ACEOF
4979 #line 4979 "configure"
4980 #include "confdefs.h"
4981 #include <sys/timepps.h>
4982 #ifdef PPS_API_VERS_1
4983 yes
4984 #endif
4985
4986 _ACEOF
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988   egrep "yes" >/dev/null 2>&1; then
4989
4990 for ac_header in sys/timepps.h
4991 do
4992 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4993 echo "$as_me:4993: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   cat >conftest.$ac_ext <<_ACEOF
4999 #line 4999 "configure"
5000 #include "confdefs.h"
5001 #include <$ac_header>
5002 _ACEOF
5003 if { (eval echo "$as_me:5003: \"$ac_cpp conftest.$ac_ext\"") >&5
5004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5005   ac_status=$?
5006   egrep -v '^ *\+' conftest.er1 >conftest.err
5007   rm -f conftest.er1
5008   cat conftest.err >&5
5009   echo "$as_me:5009: \$? = $ac_status" >&5
5010   (exit $ac_status); } >/dev/null; then
5011   if test -s conftest.err; then
5012     ac_cpp_err=$ac_c_preproc_warn_flag
5013   else
5014     ac_cpp_err=
5015   fi
5016 else
5017   ac_cpp_err=yes
5018 fi
5019 if test -z "$ac_cpp_err"; then
5020   eval "$ac_ac_Header=yes"
5021 else
5022   echo "$as_me: failed program was:" >&5
5023   cat conftest.$ac_ext >&5
5024   eval "$ac_ac_Header=no"
5025 fi
5026 rm -f conftest.err conftest.$ac_ext
5027 fi
5028 echo "$as_me:5028: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5029 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5030 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5031   cat >>confdefs.h <<EOF
5032 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5033 EOF
5034
5035 fi
5036 done
5037
5038 fi
5039 rm -f conftest*
5040
5041 for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h
5042 do
5043 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5044 echo "$as_me:5044: checking for $ac_header" >&5
5045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5046 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   cat >conftest.$ac_ext <<_ACEOF
5050 #line 5050 "configure"
5051 #include "confdefs.h"
5052 #include <$ac_header>
5053 _ACEOF
5054 if { (eval echo "$as_me:5054: \"$ac_cpp conftest.$ac_ext\"") >&5
5055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056   ac_status=$?
5057   egrep -v '^ *\+' conftest.er1 >conftest.err
5058   rm -f conftest.er1
5059   cat conftest.err >&5
5060   echo "$as_me:5060: \$? = $ac_status" >&5
5061   (exit $ac_status); } >/dev/null; then
5062   if test -s conftest.err; then
5063     ac_cpp_err=$ac_c_preproc_warn_flag
5064   else
5065     ac_cpp_err=
5066   fi
5067 else
5068   ac_cpp_err=yes
5069 fi
5070 if test -z "$ac_cpp_err"; then
5071   eval "$ac_ac_Header=yes"
5072 else
5073   echo "$as_me: failed program was:" >&5
5074   cat conftest.$ac_ext >&5
5075   eval "$ac_ac_Header=no"
5076 fi
5077 rm -f conftest.err conftest.$ac_ext
5078 fi
5079 echo "$as_me:5079: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5080 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5081 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5082   cat >>confdefs.h <<EOF
5083 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5084 EOF
5085
5086 fi
5087 done
5088
5089 echo "$as_me:5089: checking whether time.h and sys/time.h may both be included" >&5
5090 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5091 if test "${ac_cv_header_time+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   cat >conftest.$ac_ext <<_ACEOF
5095 #line 5095 "configure"
5096 #include "confdefs.h"
5097 #include <sys/types.h>
5098 #include <sys/time.h>
5099 #include <time.h>
5100
5101 int
5102 main ()
5103 {
5104 struct tm *tp;
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:5110: \"$ac_compile\"") >&5
5111   (eval $ac_compile) 2>&5
5112   ac_status=$?
5113   echo "$as_me:5113: \$? = $ac_status" >&5
5114   (exit $ac_status); } &&
5115          { ac_try='test -s conftest.$ac_objext'
5116   { (eval echo "$as_me:5116: \"$ac_try\"") >&5
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:5119: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   ac_cv_header_time=yes
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_cv_header_time=no
5126 fi
5127 rm -f conftest.$ac_objext conftest.$ac_ext
5128 fi
5129 echo "$as_me:5129: result: $ac_cv_header_time" >&5
5130 echo "${ECHO_T}$ac_cv_header_time" >&6
5131 if test $ac_cv_header_time = yes; then
5132
5133 cat >>confdefs.h <<\EOF
5134 #define TIME_WITH_SYS_TIME 1
5135 EOF
5136
5137 fi
5138
5139 case "$target" in
5140 *-convex-*)
5141
5142 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
5143 do
5144 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5145 echo "$as_me:5145: checking for $ac_header" >&5
5146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5147 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 #line 5151 "configure"
5152 #include "confdefs.h"
5153 #include <$ac_header>
5154 _ACEOF
5155 if { (eval echo "$as_me:5155: \"$ac_cpp conftest.$ac_ext\"") >&5
5156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5157   ac_status=$?
5158   egrep -v '^ *\+' conftest.er1 >conftest.err
5159   rm -f conftest.er1
5160   cat conftest.err >&5
5161   echo "$as_me:5161: \$? = $ac_status" >&5
5162   (exit $ac_status); } >/dev/null; then
5163   if test -s conftest.err; then
5164     ac_cpp_err=$ac_c_preproc_warn_flag
5165   else
5166     ac_cpp_err=
5167   fi
5168 else
5169   ac_cpp_err=yes
5170 fi
5171 if test -z "$ac_cpp_err"; then
5172   eval "$ac_ac_Header=yes"
5173 else
5174   echo "$as_me: failed program was:" >&5
5175   cat conftest.$ac_ext >&5
5176   eval "$ac_ac_Header=no"
5177 fi
5178 rm -f conftest.err conftest.$ac_ext
5179 fi
5180 echo "$as_me:5180: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5181 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5182 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5183   cat >>confdefs.h <<EOF
5184 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5185 EOF
5186
5187 fi
5188 done
5189
5190   ;;
5191 *-*-bsdi*)
5192
5193 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
5194 do
5195 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5196 echo "$as_me:5196: checking for $ac_header" >&5
5197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5198 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201   cat >conftest.$ac_ext <<_ACEOF
5202 #line 5202 "configure"
5203 #include "confdefs.h"
5204 #include <$ac_header>
5205 _ACEOF
5206 if { (eval echo "$as_me:5206: \"$ac_cpp conftest.$ac_ext\"") >&5
5207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5208   ac_status=$?
5209   egrep -v '^ *\+' conftest.er1 >conftest.err
5210   rm -f conftest.er1
5211   cat conftest.err >&5
5212   echo "$as_me:5212: \$? = $ac_status" >&5
5213   (exit $ac_status); } >/dev/null; then
5214   if test -s conftest.err; then
5215     ac_cpp_err=$ac_c_preproc_warn_flag
5216   else
5217     ac_cpp_err=
5218   fi
5219 else
5220   ac_cpp_err=yes
5221 fi
5222 if test -z "$ac_cpp_err"; then
5223   eval "$ac_ac_Header=yes"
5224 else
5225   echo "$as_me: failed program was:" >&5
5226   cat conftest.$ac_ext >&5
5227   eval "$ac_ac_Header=no"
5228 fi
5229 rm -f conftest.err conftest.$ac_ext
5230 fi
5231 echo "$as_me:5231: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5233 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5234   cat >>confdefs.h <<EOF
5235 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5236 EOF
5237
5238 fi
5239 done
5240
5241   ;;
5242 esac
5243
5244 echo "$as_me:5244: checking for nlist.h" >&5
5245 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
5246 if test "${ac_cv_header_nlist_h+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   cat >conftest.$ac_ext <<_ACEOF
5250 #line 5250 "configure"
5251 #include "confdefs.h"
5252 #include <nlist.h>
5253 _ACEOF
5254 if { (eval echo "$as_me:5254: \"$ac_cpp conftest.$ac_ext\"") >&5
5255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5256   ac_status=$?
5257   egrep -v '^ *\+' conftest.er1 >conftest.err
5258   rm -f conftest.er1
5259   cat conftest.err >&5
5260   echo "$as_me:5260: \$? = $ac_status" >&5
5261   (exit $ac_status); } >/dev/null; then
5262   if test -s conftest.err; then
5263     ac_cpp_err=$ac_c_preproc_warn_flag
5264   else
5265     ac_cpp_err=
5266   fi
5267 else
5268   ac_cpp_err=yes
5269 fi
5270 if test -z "$ac_cpp_err"; then
5271   ac_cv_header_nlist_h=yes
5272 else
5273   echo "$as_me: failed program was:" >&5
5274   cat conftest.$ac_ext >&5
5275   ac_cv_header_nlist_h=no
5276 fi
5277 rm -f conftest.err conftest.$ac_ext
5278 fi
5279 echo "$as_me:5279: result: $ac_cv_header_nlist_h" >&5
5280 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
5281 if test $ac_cv_header_nlist_h = yes; then
5282   cat >>confdefs.h <<\EOF
5283 #define NLIST_STRUCT 1
5284 EOF
5285
5286 echo "$as_me:5286: checking for n_un in struct nlist" >&5
5287 echo $ECHO_N "checking for n_un in struct nlist... $ECHO_C" >&6
5288 if test "${ac_cv_struct_nlist_n_un+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   cat >conftest.$ac_ext <<_ACEOF
5292 #line 5292 "configure"
5293 #include "confdefs.h"
5294 #include <nlist.h>
5295 int
5296 main ()
5297 {
5298 struct nlist n; n.n_un.n_name = 0;
5299   ;
5300   return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:5304: \"$ac_compile\"") >&5
5305   (eval $ac_compile) 2>&5
5306   ac_status=$?
5307   echo "$as_me:5307: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -s conftest.$ac_objext'
5310   { (eval echo "$as_me:5310: \"$ac_try\"") >&5
5311   (eval $ac_try) 2>&5
5312   ac_status=$?
5313   echo "$as_me:5313: \$? = $ac_status" >&5
5314   (exit $ac_status); }; }; then
5315   ac_cv_struct_nlist_n_un=yes
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 ac_cv_struct_nlist_n_un=no
5320 fi
5321 rm -f conftest.$ac_objext conftest.$ac_ext
5322 fi
5323 echo "$as_me:5323: result: $ac_cv_struct_nlist_n_un" >&5
5324 echo "${ECHO_T}$ac_cv_struct_nlist_n_un" >&6
5325 if test $ac_cv_struct_nlist_n_un = yes; then
5326   cat >>confdefs.h <<\EOF
5327 #define NLIST_NAME_UNION 1
5328 EOF
5329
5330 fi
5331
5332 fi
5333
5334 echo "$as_me:5334: checking for basic volatile support" >&5
5335 echo $ECHO_N "checking for basic volatile support... $ECHO_C" >&6
5336 if test "${ac_cv_c_volatile+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   cat >conftest.$ac_ext <<_ACEOF
5340 #line 5340 "configure"
5341 #include "confdefs.h"
5342
5343 int
5344 main ()
5345 {
5346
5347 volatile int x;
5348   ;
5349   return 0;
5350 }
5351 _ACEOF
5352 rm -f conftest.$ac_objext
5353 if { (eval echo "$as_me:5353: \"$ac_compile\"") >&5
5354   (eval $ac_compile) 2>&5
5355   ac_status=$?
5356   echo "$as_me:5356: \$? = $ac_status" >&5
5357   (exit $ac_status); } &&
5358          { ac_try='test -s conftest.$ac_objext'
5359   { (eval echo "$as_me:5359: \"$ac_try\"") >&5
5360   (eval $ac_try) 2>&5
5361   ac_status=$?
5362   echo "$as_me:5362: \$? = $ac_status" >&5
5363   (exit $ac_status); }; }; then
5364   ac_cv_c_volatile=yes
5365 else
5366   echo "$as_me: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5368 ac_cv_c_volatile=no
5369 fi
5370 rm -f conftest.$ac_objext conftest.$ac_ext
5371
5372 fi
5373 echo "$as_me:5373: result: $ac_cv_c_volatile" >&5
5374 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5375 case "$ac_cv_c_volatile" in
5376  yes)
5377     ;;
5378  *) cat >>confdefs.h <<\EOF
5379 #define volatile
5380 EOF
5381
5382     ;;
5383 esac
5384
5385 case "$target" in
5386  sparc-*-solaris2*)
5387     # Assume that solaris2 is Ansi C...
5388     ;;
5389  *)
5390
5391 echo "$as_me:5391: checking for ${CC-cc} option to accept ANSI C" >&5
5392 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
5393 if test "${am_cv_prog_cc_stdc+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   am_cv_prog_cc_stdc=no
5397 ac_save_CC="$CC"
5398 # Don't try gcc -ansi; that turns off useful extensions and
5399 # breaks some systems' header files.
5400 # AIX                   -qlanglvl=ansi
5401 # Ultrix and OSF/1      -std1
5402 # HP-UX 10.20 and later -Ae
5403 # HP-UX older versions  -Aa -D_HPUX_SOURCE
5404 # SVR4                  -Xc -D__EXTENSIONS__
5405 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5406 do
5407   CC="$ac_save_CC $ac_arg"
5408   cat >conftest.$ac_ext <<_ACEOF
5409 #line 5409 "configure"
5410 #include "confdefs.h"
5411 #include <stdarg.h>
5412 #include <stdio.h>
5413 #include <sys/types.h>
5414 #include <sys/stat.h>
5415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5416 struct buf { int x; };
5417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5418 static char *e (p, i)
5419      char **p;
5420      int i;
5421 {
5422   return p[i];
5423 }
5424 static char *f (char * (*g) (char **, int), char **p, ...)
5425 {
5426   char *s;
5427   va_list v;
5428   va_start (v,p);
5429   s = g (p, va_arg (v,int));
5430   va_end (v);
5431   return s;
5432 }
5433 int test (int i, double x);
5434 struct s1 {int (*f) (int a);};
5435 struct s2 {int (*f) (double a);};
5436 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5437 int argc;
5438 char **argv;
5439
5440 int
5441 main ()
5442 {
5443
5444 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5445
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 rm -f conftest.$ac_objext
5451 if { (eval echo "$as_me:5451: \"$ac_compile\"") >&5
5452   (eval $ac_compile) 2>&5
5453   ac_status=$?
5454   echo "$as_me:5454: \$? = $ac_status" >&5
5455   (exit $ac_status); } &&
5456          { ac_try='test -s conftest.$ac_objext'
5457   { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:5460: \$? = $ac_status" >&5
5461   (exit $ac_status); }; }; then
5462   am_cv_prog_cc_stdc="$ac_arg"; break
5463 else
5464   echo "$as_me: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 fi
5467 rm -f conftest.$ac_objext conftest.$ac_ext
5468 done
5469 CC="$ac_save_CC"
5470
5471 fi
5472
5473 if test -z "$am_cv_prog_cc_stdc"; then
5474   echo "$as_me:5474: result: none needed" >&5
5475 echo "${ECHO_T}none needed" >&6
5476 else
5477   echo "$as_me:5477: result: $am_cv_prog_cc_stdc" >&5
5478 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
5479 fi
5480 case "x$am_cv_prog_cc_stdc" in
5481   x|xno) ;;
5482   *) CC="$CC $am_cv_prog_cc_stdc" ;;
5483 esac
5484
5485 echo "$as_me:5485: checking for function prototypes" >&5
5486 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5487 if test "$am_cv_prog_cc_stdc" != no; then
5488   echo "$as_me:5488: result: yes" >&5
5489 echo "${ECHO_T}yes" >&6
5490
5491 cat >>confdefs.h <<\EOF
5492 #define PROTOTYPES 1
5493 EOF
5494
5495   U= ANSI2KNR=
5496 else
5497   echo "$as_me:5497: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5499   U=_ ANSI2KNR=./ansi2knr
5500 fi
5501 # Ensure some checks needed by ansi2knr itself.
5502 echo "$as_me:5502: checking for ANSI C header files" >&5
5503 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5504 if test "${ac_cv_header_stdc+set}" = set; then
5505   echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507   cat >conftest.$ac_ext <<_ACEOF
5508 #line 5508 "configure"
5509 #include "confdefs.h"
5510 #include <stdlib.h>
5511 #include <stdarg.h>
5512 #include <string.h>
5513 #include <float.h>
5514
5515 _ACEOF
5516 if { (eval echo "$as_me:5516: \"$ac_cpp conftest.$ac_ext\"") >&5
5517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518   ac_status=$?
5519   egrep -v '^ *\+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:5522: \$? = $ac_status" >&5
5523   (exit $ac_status); } >/dev/null; then
5524   if test -s conftest.err; then
5525     ac_cpp_err=$ac_c_preproc_warn_flag
5526   else
5527     ac_cpp_err=
5528   fi
5529 else
5530   ac_cpp_err=yes
5531 fi
5532 if test -z "$ac_cpp_err"; then
5533   ac_cv_header_stdc=yes
5534 else
5535   echo "$as_me: failed program was:" >&5
5536   cat conftest.$ac_ext >&5
5537   ac_cv_header_stdc=no
5538 fi
5539 rm -f conftest.err conftest.$ac_ext
5540
5541 if test $ac_cv_header_stdc = yes; then
5542   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5543   cat >conftest.$ac_ext <<_ACEOF
5544 #line 5544 "configure"
5545 #include "confdefs.h"
5546 #include <string.h>
5547
5548 _ACEOF
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550   egrep "memchr" >/dev/null 2>&1; then
5551   :
5552 else
5553   ac_cv_header_stdc=no
5554 fi
5555 rm -f conftest*
5556
5557 fi
5558
5559 if test $ac_cv_header_stdc = yes; then
5560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5561   cat >conftest.$ac_ext <<_ACEOF
5562 #line 5562 "configure"
5563 #include "confdefs.h"
5564 #include <stdlib.h>
5565
5566 _ACEOF
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568   egrep "free" >/dev/null 2>&1; then
5569   :
5570 else
5571   ac_cv_header_stdc=no
5572 fi
5573 rm -f conftest*
5574
5575 fi
5576
5577 if test $ac_cv_header_stdc = yes; then
5578   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579   if test "$cross_compiling" = yes; then
5580   :
5581 else
5582   cat >conftest.$ac_ext <<_ACEOF
5583 #line 5583 "configure"
5584 #include "confdefs.h"
5585 #include <ctype.h>
5586 #if ((' ' & 0x0FF) == 0x020)
5587 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5589 #else
5590 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5591                      || ('j' <= (c) && (c) <= 'r') \
5592                      || ('s' <= (c) && (c) <= 'z'))
5593 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5594 #endif
5595
5596 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5597 int
5598 main ()
5599 {
5600   int i;
5601   for (i = 0; i < 256; i++)
5602     if (XOR (islower (i), ISLOWER (i))
5603         || toupper (i) != TOUPPER (i))
5604       exit(2);
5605   exit (0);
5606 }
5607 _ACEOF
5608 rm -f conftest$ac_exeext
5609 if { (eval echo "$as_me:5609: \"$ac_link\"") >&5
5610   (eval $ac_link) 2>&5
5611   ac_status=$?
5612   echo "$as_me:5612: \$? = $ac_status" >&5
5613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5614   { (eval echo "$as_me:5614: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:5617: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   :
5620 else
5621   echo "$as_me: program exited with status $ac_status" >&5
5622 echo "$as_me: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5624 ac_cv_header_stdc=no
5625 fi
5626 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
5627 fi
5628 fi
5629 fi
5630 echo "$as_me:5630: result: $ac_cv_header_stdc" >&5
5631 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5632 if test $ac_cv_header_stdc = yes; then
5633
5634 cat >>confdefs.h <<\EOF
5635 #define STDC_HEADERS 1
5636 EOF
5637
5638 fi
5639
5640 for ac_header in string.h
5641 do
5642 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5643 echo "$as_me:5643: checking for $ac_header" >&5
5644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   cat >conftest.$ac_ext <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5651 #include <$ac_header>
5652 _ACEOF
5653 if { (eval echo "$as_me:5653: \"$ac_cpp conftest.$ac_ext\"") >&5
5654   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655   ac_status=$?
5656   egrep -v '^ *\+' conftest.er1 >conftest.err
5657   rm -f conftest.er1
5658   cat conftest.err >&5
5659   echo "$as_me:5659: \$? = $ac_status" >&5
5660   (exit $ac_status); } >/dev/null; then
5661   if test -s conftest.err; then
5662     ac_cpp_err=$ac_c_preproc_warn_flag
5663   else
5664     ac_cpp_err=
5665   fi
5666 else
5667   ac_cpp_err=yes
5668 fi
5669 if test -z "$ac_cpp_err"; then
5670   eval "$ac_ac_Header=yes"
5671 else
5672   echo "$as_me: failed program was:" >&5
5673   cat conftest.$ac_ext >&5
5674   eval "$ac_ac_Header=no"
5675 fi
5676 rm -f conftest.err conftest.$ac_ext
5677 fi
5678 echo "$as_me:5678: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5680 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5681   cat >>confdefs.h <<EOF
5682 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5683 EOF
5684
5685 fi
5686 done
5687
5688     ;;
5689 esac
5690 echo "$as_me:5690: checking if C compiler permits function prototypes" >&5
5691 echo $ECHO_N "checking if C compiler permits function prototypes... $ECHO_C" >&6
5692 if test "${ac_cv_have_prototypes+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   cat >conftest.$ac_ext <<_ACEOF
5696 #line 5696 "configure"
5697 #include "confdefs.h"
5698
5699 extern int foo (short);
5700 int foo(short i) { return i; }
5701 int
5702 main ()
5703 {
5704
5705 int i;
5706   ;
5707   return 0;
5708 }
5709 _ACEOF
5710 rm -f conftest.$ac_objext
5711 if { (eval echo "$as_me:5711: \"$ac_compile\"") >&5
5712   (eval $ac_compile) 2>&5
5713   ac_status=$?
5714   echo "$as_me:5714: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -s conftest.$ac_objext'
5717   { (eval echo "$as_me:5717: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:5720: \$? = $ac_status" >&5
5721   (exit $ac_status); }; }; then
5722   ac_cv_have_prototypes=yes
5723 else
5724   echo "$as_me: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5726 ac_cv_have_prototypes=no
5727 fi
5728 rm -f conftest.$ac_objext conftest.$ac_ext
5729
5730 fi
5731 echo "$as_me:5731: result: $ac_cv_have_prototypes" >&5
5732 echo "${ECHO_T}$ac_cv_have_prototypes" >&6
5733 if test "$ac_cv_have_prototypes" = yes; then
5734   cat >>confdefs.h <<\EOF
5735 #define HAVE_PROTOTYPES 1
5736 EOF
5737
5738 fi
5739
5740 echo "$as_me:5740: checking for an ANSI C-conforming const" >&5
5741 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5742 if test "${ac_cv_c_const+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   cat >conftest.$ac_ext <<_ACEOF
5746 #line 5746 "configure"
5747 #include "confdefs.h"
5748
5749 int
5750 main ()
5751 {
5752 /* FIXME: Include the comments suggested by Paul. */
5753 #ifndef __cplusplus
5754   /* Ultrix mips cc rejects this.  */
5755   typedef int charset[2];
5756   const charset x;
5757   /* SunOS 4.1.1 cc rejects this.  */
5758   char const *const *ccp;
5759   char **p;
5760   /* NEC SVR4.0.2 mips cc rejects this.  */
5761   struct point {int x, y;};
5762   static struct point const zero = {0,0};
5763   /* AIX XL C 1.02.0.0 rejects this.
5764      It does not let you subtract one const X* pointer from another in
5765      an arm of an if-expression whose if-part is not a constant
5766      expression */
5767   const char *g = "string";
5768   ccp = &g + (g ? g-g : 0);
5769   /* HPUX 7.0 cc rejects these. */
5770   ++ccp;
5771   p = (char**) ccp;
5772   ccp = (char const *const *) p;
5773   { /* SCO 3.2v4 cc rejects this.  */
5774     char *t;
5775     char const *s = 0 ? (char *) 0 : (char const *) 0;
5776
5777     *t++ = 0;
5778   }
5779   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5780     int x[] = {25, 17};
5781     const int *foo = &x[0];
5782     ++foo;
5783   }
5784   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5785     typedef const int *iptr;
5786     iptr p = 0;
5787     ++p;
5788   }
5789   { /* AIX XL C 1.02.0.0 rejects this saying
5790        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5791     struct s { int j; const int *ap[3]; };
5792     struct s *b; b->j = 5;
5793   }
5794   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5795     const int foo = 10;
5796   }
5797 #endif
5798
5799   ;
5800   return 0;
5801 }
5802 _ACEOF
5803 rm -f conftest.$ac_objext
5804 if { (eval echo "$as_me:5804: \"$ac_compile\"") >&5
5805   (eval $ac_compile) 2>&5
5806   ac_status=$?
5807   echo "$as_me:5807: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -s conftest.$ac_objext'
5810   { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:5813: \$? = $ac_status" >&5
5814   (exit $ac_status); }; }; then
5815   ac_cv_c_const=yes
5816 else
5817   echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 ac_cv_c_const=no
5820 fi
5821 rm -f conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 echo "$as_me:5823: result: $ac_cv_c_const" >&5
5824 echo "${ECHO_T}$ac_cv_c_const" >&6
5825 if test $ac_cv_c_const = no; then
5826
5827 cat >>confdefs.h <<\EOF
5828 #define const
5829 EOF
5830
5831 fi
5832
5833 case "$host" in
5834  $target)
5835     echo "$as_me:5835: checking whether byte ordering is bigendian" >&5
5836 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5837 if test "${ac_cv_c_bigendian+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   ac_cv_c_bigendian=unknown
5841 # See if sys/param.h defines the BYTE_ORDER macro.
5842 cat >conftest.$ac_ext <<_ACEOF
5843 #line 5843 "configure"
5844 #include "confdefs.h"
5845 #include <sys/types.h>
5846 #include <sys/param.h>
5847
5848 int
5849 main ()
5850 {
5851 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5852  bogus endian macros
5853 #endif
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:5860: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>&5
5862   ac_status=$?
5863   echo "$as_me:5863: \$? = $ac_status" >&5
5864   (exit $ac_status); } &&
5865          { ac_try='test -s conftest.$ac_objext'
5866   { (eval echo "$as_me:5866: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:5869: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   # It does; now see whether it defined to BIG_ENDIAN or not.
5872 cat >conftest.$ac_ext <<_ACEOF
5873 #line 5873 "configure"
5874 #include "confdefs.h"
5875 #include <sys/types.h>
5876 #include <sys/param.h>
5877
5878 int
5879 main ()
5880 {
5881 #if BYTE_ORDER != BIG_ENDIAN
5882  not big endian
5883 #endif
5884
5885   ;
5886   return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext
5890 if { (eval echo "$as_me:5890: \"$ac_compile\"") >&5
5891   (eval $ac_compile) 2>&5
5892   ac_status=$?
5893   echo "$as_me:5893: \$? = $ac_status" >&5
5894   (exit $ac_status); } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (eval echo "$as_me:5896: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:5899: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_c_bigendian=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5905 ac_cv_c_bigendian=no
5906 fi
5907 rm -f conftest.$ac_objext conftest.$ac_ext
5908 else
5909   echo "$as_me: failed program was:" >&5
5910 cat conftest.$ac_ext >&5
5911 fi
5912 rm -f conftest.$ac_objext conftest.$ac_ext
5913 if test $ac_cv_c_bigendian = unknown; then
5914 if test "$cross_compiling" = yes; then
5915   { { echo "$as_me:5915: error: cannot run test program while cross compiling" >&5
5916 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5917    { (exit 1); exit 1; }; }
5918 else
5919   cat >conftest.$ac_ext <<_ACEOF
5920 #line 5920 "configure"
5921 #include "confdefs.h"
5922 int
5923 main ()
5924 {
5925   /* Are we little or big endian?  From Harbison&Steele.  */
5926   union
5927   {
5928     long l;
5929     char c[sizeof (long)];
5930   } u;
5931   u.l = 1;
5932   exit (u.c[sizeof (long) - 1] == 1);
5933 }
5934 _ACEOF
5935 rm -f conftest$ac_exeext
5936 if { (eval echo "$as_me:5936: \"$ac_link\"") >&5
5937   (eval $ac_link) 2>&5
5938   ac_status=$?
5939   echo "$as_me:5939: \$? = $ac_status" >&5
5940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5941   { (eval echo "$as_me:5941: \"$ac_try\"") >&5
5942   (eval $ac_try) 2>&5
5943   ac_status=$?
5944   echo "$as_me:5944: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   ac_cv_c_bigendian=no
5947 else
5948   echo "$as_me: program exited with status $ac_status" >&5
5949 echo "$as_me: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 ac_cv_c_bigendian=yes
5952 fi
5953 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
5954 fi
5955 fi
5956 fi
5957 echo "$as_me:5957: result: $ac_cv_c_bigendian" >&5
5958 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5959 if test $ac_cv_c_bigendian = yes; then
5960
5961 cat >>confdefs.h <<\EOF
5962 #define WORDS_BIGENDIAN 1
5963 EOF
5964
5965 fi
5966
5967     ;;
5968  *) case "$target" in
5969      i*86-*-vxworks*)
5970         # LITTLEENDIAN
5971         ;;
5972      *-*-vxworks*)
5973         cat >>confdefs.h <<\EOF
5974 #define WORDS_BIGENDIAN 1
5975 EOF
5976
5977         ;;
5978      *) { { echo "$as_me:5978: error: Cross-compiling needs explicit byte order" >&5
5979 echo "$as_me: error: Cross-compiling needs explicit byte order" >&2;}
5980    { (exit 1); exit 1; }; }
5981         ;;
5982     esac
5983     ;;
5984 esac
5985 echo "$as_me:5985: checking return type of signal handlers" >&5
5986 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5987 if test "${ac_cv_type_signal+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   cat >conftest.$ac_ext <<_ACEOF
5991 #line 5991 "configure"
5992 #include "confdefs.h"
5993 #include <sys/types.h>
5994 #include <signal.h>
5995 #ifdef signal
5996 # undef signal
5997 #endif
5998 #ifdef __cplusplus
5999 extern "C" void (*signal (int, void (*)(int)))(int);
6000 #else
6001 void (*signal ()) ();
6002 #endif
6003
6004 int
6005 main ()
6006 {
6007 int i;
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:6013: \"$ac_compile\"") >&5
6014   (eval $ac_compile) 2>&5
6015   ac_status=$?
6016   echo "$as_me:6016: \$? = $ac_status" >&5
6017   (exit $ac_status); } &&
6018          { ac_try='test -s conftest.$ac_objext'
6019   { (eval echo "$as_me:6019: \"$ac_try\"") >&5
6020   (eval $ac_try) 2>&5
6021   ac_status=$?
6022   echo "$as_me:6022: \$? = $ac_status" >&5
6023   (exit $ac_status); }; }; then
6024   ac_cv_type_signal=void
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 ac_cv_type_signal=int
6029 fi
6030 rm -f conftest.$ac_objext conftest.$ac_ext
6031 fi
6032 echo "$as_me:6032: result: $ac_cv_type_signal" >&5
6033 echo "${ECHO_T}$ac_cv_type_signal" >&6
6034
6035 cat >>confdefs.h <<EOF
6036 #define RETSIGTYPE $ac_cv_type_signal
6037 EOF
6038
6039 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
6040 do
6041 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6042 echo "$as_me:6042: checking for $ac_header" >&5
6043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6044 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   cat >conftest.$ac_ext <<_ACEOF
6048 #line 6048 "configure"
6049 #include "confdefs.h"
6050 #include <$ac_header>
6051 _ACEOF
6052 if { (eval echo "$as_me:6052: \"$ac_cpp conftest.$ac_ext\"") >&5
6053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054   ac_status=$?
6055   egrep -v '^ *\+' conftest.er1 >conftest.err
6056   rm -f conftest.er1
6057   cat conftest.err >&5
6058   echo "$as_me:6058: \$? = $ac_status" >&5
6059   (exit $ac_status); } >/dev/null; then
6060   if test -s conftest.err; then
6061     ac_cpp_err=$ac_c_preproc_warn_flag
6062   else
6063     ac_cpp_err=
6064   fi
6065 else
6066   ac_cpp_err=yes
6067 fi
6068 if test -z "$ac_cpp_err"; then
6069   eval "$ac_ac_Header=yes"
6070 else
6071   echo "$as_me: failed program was:" >&5
6072   cat conftest.$ac_ext >&5
6073   eval "$ac_ac_Header=no"
6074 fi
6075 rm -f conftest.err conftest.$ac_ext
6076 fi
6077 echo "$as_me:6077: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6078 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6079 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6080   cat >>confdefs.h <<EOF
6081 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6082 EOF
6083
6084 fi
6085 done
6086
6087 echo "$as_me:6087: checking for off_t" >&5
6088 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6089 if test "${ac_cv_type_off_t+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   cat >conftest.$ac_ext <<_ACEOF
6093 #line 6093 "configure"
6094 #include "confdefs.h"
6095 $ac_includes_default
6096 int
6097 main ()
6098 {
6099 if ((off_t *) 0)
6100   return 0;
6101 if (sizeof (off_t))
6102   return 0;
6103   ;
6104   return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:6108: \"$ac_compile\"") >&5
6109   (eval $ac_compile) 2>&5
6110   ac_status=$?
6111   echo "$as_me:6111: \$? = $ac_status" >&5
6112   (exit $ac_status); } &&
6113          { ac_try='test -s conftest.$ac_objext'
6114   { (eval echo "$as_me:6114: \"$ac_try\"") >&5
6115   (eval $ac_try) 2>&5
6116   ac_status=$?
6117   echo "$as_me:6117: \$? = $ac_status" >&5
6118   (exit $ac_status); }; }; then
6119   ac_cv_type_off_t=yes
6120 else
6121   echo "$as_me: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6123 ac_cv_type_off_t=no
6124 fi
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 echo "$as_me:6127: result: $ac_cv_type_off_t" >&5
6128 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6129 if test $ac_cv_type_off_t = yes; then
6130   :
6131 else
6132
6133 cat >>confdefs.h <<EOF
6134 #define off_t long
6135 EOF
6136
6137 fi
6138
6139 echo "$as_me:6139: checking for size_t" >&5
6140 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6141 if test "${ac_cv_type_size_t+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   cat >conftest.$ac_ext <<_ACEOF
6145 #line 6145 "configure"
6146 #include "confdefs.h"
6147 $ac_includes_default
6148 int
6149 main ()
6150 {
6151 if ((size_t *) 0)
6152   return 0;
6153 if (sizeof (size_t))
6154   return 0;
6155   ;
6156   return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest.$ac_objext
6160 if { (eval echo "$as_me:6160: \"$ac_compile\"") >&5
6161   (eval $ac_compile) 2>&5
6162   ac_status=$?
6163   echo "$as_me:6163: \$? = $ac_status" >&5
6164   (exit $ac_status); } &&
6165          { ac_try='test -s conftest.$ac_objext'
6166   { (eval echo "$as_me:6166: \"$ac_try\"") >&5
6167   (eval $ac_try) 2>&5
6168   ac_status=$?
6169   echo "$as_me:6169: \$? = $ac_status" >&5
6170   (exit $ac_status); }; }; then
6171   ac_cv_type_size_t=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_type_size_t=no
6176 fi
6177 rm -f conftest.$ac_objext conftest.$ac_ext
6178 fi
6179 echo "$as_me:6179: result: $ac_cv_type_size_t" >&5
6180 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6181 if test $ac_cv_type_size_t = yes; then
6182   :
6183 else
6184
6185 cat >>confdefs.h <<EOF
6186 #define size_t unsigned
6187 EOF
6188
6189 fi
6190
6191 echo "$as_me:6191: checking for time_t" >&5
6192 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
6193 if test "${ac_cv_type_time_t+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   cat >conftest.$ac_ext <<_ACEOF
6197 #line 6197 "configure"
6198 #include "confdefs.h"
6199 $ac_includes_default
6200 int
6201 main ()
6202 {
6203 if ((time_t *) 0)
6204   return 0;
6205 if (sizeof (time_t))
6206   return 0;
6207   ;
6208   return 0;
6209 }
6210 _ACEOF
6211 rm -f conftest.$ac_objext
6212 if { (eval echo "$as_me:6212: \"$ac_compile\"") >&5
6213   (eval $ac_compile) 2>&5
6214   ac_status=$?
6215   echo "$as_me:6215: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -s conftest.$ac_objext'
6218   { (eval echo "$as_me:6218: \"$ac_try\"") >&5
6219   (eval $ac_try) 2>&5
6220   ac_status=$?
6221   echo "$as_me:6221: \$? = $ac_status" >&5
6222   (exit $ac_status); }; }; then
6223   ac_cv_type_time_t=yes
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 cat conftest.$ac_ext >&5
6227 ac_cv_type_time_t=no
6228 fi
6229 rm -f conftest.$ac_objext conftest.$ac_ext
6230 fi
6231 echo "$as_me:6231: result: $ac_cv_type_time_t" >&5
6232 echo "${ECHO_T}$ac_cv_type_time_t" >&6
6233 if test $ac_cv_type_time_t = yes; then
6234   :
6235 else
6236
6237 cat >>confdefs.h <<EOF
6238 #define time_t long
6239 EOF
6240
6241 fi
6242
6243 echo "$as_me:6243: checking whether struct tm is in sys/time.h or time.h" >&5
6244 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6245 if test "${ac_cv_struct_tm+set}" = set; then
6246   echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248   cat >conftest.$ac_ext <<_ACEOF
6249 #line 6249 "configure"
6250 #include "confdefs.h"
6251 #include <sys/types.h>
6252 #include <time.h>
6253
6254 int
6255 main ()
6256 {
6257 struct tm *tp; tp->tm_sec;
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (eval echo "$as_me:6263: \"$ac_compile\"") >&5
6264   (eval $ac_compile) 2>&5
6265   ac_status=$?
6266   echo "$as_me:6266: \$? = $ac_status" >&5
6267   (exit $ac_status); } &&
6268          { ac_try='test -s conftest.$ac_objext'
6269   { (eval echo "$as_me:6269: \"$ac_try\"") >&5
6270   (eval $ac_try) 2>&5
6271   ac_status=$?
6272   echo "$as_me:6272: \$? = $ac_status" >&5
6273   (exit $ac_status); }; }; then
6274   ac_cv_struct_tm=time.h
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 cat conftest.$ac_ext >&5
6278 ac_cv_struct_tm=sys/time.h
6279 fi
6280 rm -f conftest.$ac_objext conftest.$ac_ext
6281 fi
6282 echo "$as_me:6282: result: $ac_cv_struct_tm" >&5
6283 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6284 if test $ac_cv_struct_tm = sys/time.h; then
6285
6286 cat >>confdefs.h <<\EOF
6287 #define TM_IN_SYS_TIME 1
6288 EOF
6289
6290 fi
6291
6292 echo "$as_me:6292: checking for a fallback value for HZ" >&5
6293 echo $ECHO_N "checking for a fallback value for HZ... $ECHO_C" >&6
6294 if test "${ac_cv_var_default_hz+set}" = set; then
6295   echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297   ac_cv_var_default_hz=100
6298 case "$target" in
6299  alpha*-dec-osf4*|alpha*-dec-osf5*)
6300     ac_cv_var_default_hz=1024
6301     ;;
6302  mips-dec-ultrix4*)
6303     ac_cv_var_default_hz=256
6304     ;;
6305 esac
6306 fi
6307 echo "$as_me:6307: result: $ac_cv_var_default_hz" >&5
6308 echo "${ECHO_T}$ac_cv_var_default_hz" >&6
6309 cat >>confdefs.h <<EOF
6310 #define DEFAULT_HZ $ac_cv_var_default_hz
6311 EOF
6312
6313 echo "$as_me:6313: checking if we need to override the system's value for HZ" >&5
6314 echo $ECHO_N "checking if we need to override the system's value for HZ... $ECHO_C" >&6
6315 if test "${ac_cv_var_override_hz+set}" = set; then
6316   echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318   ac_cv_var_override_hz=no
6319 case "$target" in
6320  alpha*-dec-osf4*|alpha*-dec-osf5*)
6321     ac_cv_var_override_hz=yes
6322     ;;
6323  mips-dec-ultrix4*)
6324     ac_cv_var_override_hz=yes
6325     ;;
6326  *-*-freebsd*)
6327     ac_cv_var_override_hz=yes
6328     ;;
6329  *-*-sunos4*)
6330     ac_cv_var_override_hz=yes
6331     ;;
6332 esac
6333 fi
6334 echo "$as_me:6334: result: $ac_cv_var_override_hz" >&5
6335 echo "${ECHO_T}$ac_cv_var_override_hz" >&6
6336 case "$ac_cv_var_override_hz" in
6337  yes)
6338     cat >>confdefs.h <<\EOF
6339 #define OVERRIDE_HZ 1
6340 EOF
6341
6342     ;;
6343 esac
6344
6345 echo "$as_me:6345: checking struct sigaction for sa_sigaction" >&5
6346 echo $ECHO_N "checking struct sigaction for sa_sigaction... $ECHO_C" >&6
6347 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then
6348   echo $ECHO_N "(cached) $ECHO_C" >&6
6349 else
6350
6351     cat >conftest.$ac_ext <<_ACEOF
6352 #line 6352 "configure"
6353 #include "confdefs.h"
6354 #include <signal.h>
6355 int
6356 main ()
6357 {
6358 struct sigaction act; act.sa_sigaction = 0;
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:6364: \"$ac_compile\"") >&5
6365   (eval $ac_compile) 2>&5
6366   ac_status=$?
6367   echo "$as_me:6367: \$? = $ac_status" >&5
6368   (exit $ac_status); } &&
6369          { ac_try='test -s conftest.$ac_objext'
6370   { (eval echo "$as_me:6370: \"$ac_try\"") >&5
6371   (eval $ac_try) 2>&5
6372   ac_status=$?
6373   echo "$as_me:6373: \$? = $ac_status" >&5
6374   (exit $ac_status); }; }; then
6375   ac_cv_struct_sigaction_has_sa_sigaction=yes
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6379 ac_cv_struct_sigaction_has_sa_sigaction=no
6380
6381 fi
6382 rm -f conftest.$ac_objext conftest.$ac_ext
6383
6384 fi
6385 echo "$as_me:6385: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
6386 echo "${ECHO_T}$ac_cv_struct_sigaction_has_sa_sigaction" >&6
6387 if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
6388   cat >>confdefs.h <<\EOF
6389 #define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1
6390 EOF
6391
6392 fi
6393
6394 echo "$as_me:6394: checking for struct ppsclockev" >&5
6395 echo $ECHO_N "checking for struct ppsclockev... $ECHO_C" >&6
6396 if test "${ac_cv_struct_ppsclockev+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   cat >conftest.$ac_ext <<_ACEOF
6400 #line 6400 "configure"
6401 #include "confdefs.h"
6402
6403 #include <sys/types.h>
6404 #ifdef HAVE_SYS_TERMIOS_H
6405 # include <sys/termios.h>
6406 #endif
6407 #ifdef HAVE_SYS_TIME_H
6408 # include <sys/time.h>
6409 #endif
6410 #ifdef HAVE_SYS_PPSCLOCK_H
6411 # include <sys/ppsclock.h>
6412 #endif
6413 int
6414 main ()
6415 {
6416
6417 extern struct ppsclockev *pce;
6418 return pce->serial;
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:6424: \"$ac_compile\"") >&5
6425   (eval $ac_compile) 2>&5
6426   ac_status=$?
6427   echo "$as_me:6427: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -s conftest.$ac_objext'
6430   { (eval echo "$as_me:6430: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:6433: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_cv_struct_ppsclockev=yes
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6439 ac_cv_struct_ppsclockev=no
6440 fi
6441 rm -f conftest.$ac_objext conftest.$ac_ext
6442
6443 fi
6444 echo "$as_me:6444: result: $ac_cv_struct_ppsclockev" >&5
6445 echo "${ECHO_T}$ac_cv_struct_ppsclockev" >&6
6446 if test $ac_cv_struct_ppsclockev = yes; then
6447     cat >>confdefs.h <<\EOF
6448 #define HAVE_STRUCT_PPSCLOCKEV 1
6449 EOF
6450
6451 fi
6452
6453 echo "$as_me:6453: checking struct sockaddr for sa_len" >&5
6454 echo $ECHO_N "checking struct sockaddr for sa_len... $ECHO_C" >&6
6455 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   cat >conftest.$ac_ext <<_ACEOF
6459 #line 6459 "configure"
6460 #include "confdefs.h"
6461
6462 #include <sys/types.h>
6463 #include <sys/socket.h>
6464 int
6465 main ()
6466 {
6467
6468 extern struct sockaddr *ps;
6469 return ps->sa_len;
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:6475: \"$ac_compile\"") >&5
6476   (eval $ac_compile) 2>&5
6477   ac_status=$?
6478   echo "$as_me:6478: \$? = $ac_status" >&5
6479   (exit $ac_status); } &&
6480          { ac_try='test -s conftest.$ac_objext'
6481   { (eval echo "$as_me:6481: \"$ac_try\"") >&5
6482   (eval $ac_try) 2>&5
6483   ac_status=$?
6484   echo "$as_me:6484: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   ac_cv_struct_sockaddr_has_sa_len=yes
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 ac_cv_struct_sockaddr_has_sa_len=no
6491 fi
6492 rm -f conftest.$ac_objext conftest.$ac_ext
6493
6494 fi
6495 echo "$as_me:6495: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
6496 echo "${ECHO_T}$ac_cv_struct_sockaddr_has_sa_len" >&6
6497 if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
6498     cat >>confdefs.h <<\EOF
6499 #define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1
6500 EOF
6501
6502 fi
6503
6504 echo "$as_me:6504: checking struct clockinfo for hz" >&5
6505 echo $ECHO_N "checking struct clockinfo for hz... $ECHO_C" >&6
6506 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   cat >conftest.$ac_ext <<_ACEOF
6510 #line 6510 "configure"
6511 #include "confdefs.h"
6512
6513 #include <sys/time.h>
6514 int
6515 main ()
6516 {
6517
6518 extern struct clockinfo *pc;
6519 return pc->hz;
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:6525: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>&5
6527   ac_status=$?
6528   echo "$as_me:6528: \$? = $ac_status" >&5
6529   (exit $ac_status); } &&
6530          { ac_try='test -s conftest.$ac_objext'
6531   { (eval echo "$as_me:6531: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:6534: \$? = $ac_status" >&5
6535   (exit $ac_status); }; }; then
6536   ac_cv_struct_clockinfo_has_hz=yes
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6540 ac_cv_struct_clockinfo_has_hz=no
6541 fi
6542 rm -f conftest.$ac_objext conftest.$ac_ext
6543
6544 fi
6545 echo "$as_me:6545: result: $ac_cv_struct_clockinfo_has_hz" >&5
6546 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_hz" >&6
6547 if test $ac_cv_struct_clockinfo_has_hz = yes; then
6548     cat >>confdefs.h <<\EOF
6549 #define HAVE_HZ_IN_STRUCT_CLOCKINFO 1
6550 EOF
6551
6552 fi
6553
6554 echo "$as_me:6554: checking struct clockinfo for tickadj" >&5
6555 echo $ECHO_N "checking struct clockinfo for tickadj... $ECHO_C" >&6
6556 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   cat >conftest.$ac_ext <<_ACEOF
6560 #line 6560 "configure"
6561 #include "confdefs.h"
6562
6563 #include <sys/time.h>
6564 int
6565 main ()
6566 {
6567
6568 extern struct clockinfo *pc;
6569 return pc->tickadj;
6570   ;
6571   return 0;
6572 }
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (eval echo "$as_me:6575: \"$ac_compile\"") >&5
6576   (eval $ac_compile) 2>&5
6577   ac_status=$?
6578   echo "$as_me:6578: \$? = $ac_status" >&5
6579   (exit $ac_status); } &&
6580          { ac_try='test -s conftest.$ac_objext'
6581   { (eval echo "$as_me:6581: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:6584: \$? = $ac_status" >&5
6585   (exit $ac_status); }; }; then
6586   ac_cv_struct_clockinfo_has_tickadj=yes
6587 else
6588   echo "$as_me: failed program was:" >&5
6589 cat conftest.$ac_ext >&5
6590 ac_cv_struct_clockinfo_has_tickadj=no
6591 fi
6592 rm -f conftest.$ac_objext conftest.$ac_ext
6593
6594 fi
6595 echo "$as_me:6595: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
6596 echo "${ECHO_T}$ac_cv_struct_clockinfo_has_tickadj" >&6
6597 if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
6598     cat >>confdefs.h <<\EOF
6599 #define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1
6600 EOF
6601
6602 fi
6603
6604 echo "$as_me:6604: checking for struct timespec" >&5
6605 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6606 if test "${ac_cv_struct_timespec+set}" = set; then
6607   echo $ECHO_N "(cached) $ECHO_C" >&6
6608 else
6609   cat >conftest.$ac_ext <<_ACEOF
6610 #line 6610 "configure"
6611 #include "confdefs.h"
6612
6613 #include <sys/time.h>
6614 /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
6615 #ifdef HAVE_ERRNO_H
6616 # include <errno.h>
6617 #endif
6618 #ifdef HAVE_SYS_TIMEPPS_H
6619 # define FRAC 4294967296
6620 # include <sys/timepps.h>
6621 #endif
6622 int
6623 main ()
6624 {
6625 struct timespec n;
6626   ;
6627   return 0;
6628 }
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (eval echo "$as_me:6631: \"$ac_compile\"") >&5
6632   (eval $ac_compile) 2>&5
6633   ac_status=$?
6634   echo "$as_me:6634: \$? = $ac_status" >&5
6635   (exit $ac_status); } &&
6636          { ac_try='test -s conftest.$ac_objext'
6637   { (eval echo "$as_me:6637: \"$ac_try\"") >&5
6638   (eval $ac_try) 2>&5
6639   ac_status=$?
6640   echo "$as_me:6640: \$? = $ac_status" >&5
6641   (exit $ac_status); }; }; then
6642   ac_cv_struct_timespec=yes
6643 else
6644   echo "$as_me: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6646 ac_cv_struct_timespec=no
6647 fi
6648 rm -f conftest.$ac_objext conftest.$ac_ext
6649 fi
6650 echo "$as_me:6650: result: $ac_cv_struct_timespec" >&5
6651 echo "${ECHO_T}$ac_cv_struct_timespec" >&6
6652 if test $ac_cv_struct_timespec = yes; then
6653
6654 cat >>confdefs.h <<\EOF
6655 #define HAVE_STRUCT_TIMESPEC 1
6656 EOF
6657
6658 fi
6659
6660 echo "$as_me:6660: checking for struct ntptimeval" >&5
6661 echo $ECHO_N "checking for struct ntptimeval... $ECHO_C" >&6
6662 if test "${ac_cv_struct_ntptimeval+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   cat >conftest.$ac_ext <<_ACEOF
6666 #line 6666 "configure"
6667 #include "confdefs.h"
6668
6669 #include <sys/time.h>
6670 #include <sys/timex.h>
6671 int
6672 main ()
6673 {
6674 struct ntptimeval n;
6675   ;
6676   return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:6680: \"$ac_compile\"") >&5
6681   (eval $ac_compile) 2>&5
6682   ac_status=$?
6683   echo "$as_me:6683: \$? = $ac_status" >&5
6684   (exit $ac_status); } &&
6685          { ac_try='test -s conftest.$ac_objext'
6686   { (eval echo "$as_me:6686: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:6689: \$? = $ac_status" >&5
6690   (exit $ac_status); }; }; then
6691   ac_cv_struct_ntptimeval=yes
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6695 ac_cv_struct_ntptimeval=no
6696 fi
6697 rm -f conftest.$ac_objext conftest.$ac_ext
6698 fi
6699 echo "$as_me:6699: result: $ac_cv_struct_ntptimeval" >&5
6700 echo "${ECHO_T}$ac_cv_struct_ntptimeval" >&6
6701 if test $ac_cv_struct_ntptimeval = yes; then
6702
6703 cat >>confdefs.h <<\EOF
6704 #define HAVE_STRUCT_NTPTIMEVAL 1
6705 EOF
6706
6707 fi
6708
6709 echo "$as_me:6709: checking for struct ntptimeval.time.tv_nsec" >&5
6710 echo $ECHO_N "checking for struct ntptimeval.time.tv_nsec... $ECHO_C" >&6
6711 if test "${ac_cv_member_struct_ntptimeval_time_tv_nsec+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 #line 6715 "configure"
6716 #include "confdefs.h"
6717 #ifdef HAVE_SYS_TIME_H
6718 #include <sys/time.h>
6719 #else
6720 # ifdef HAVE_TIME_H
6721 # include <time.h>
6722 # endif
6723 #endif
6724 #ifdef HAVE_SYS_TIMEX_H
6725 #include <sys/timex.h>
6726 #else
6727 # ifdef HAVE_TIMEX_H
6728 # include <timex.h>
6729 # endif
6730 #endif
6731
6732 int
6733 main ()
6734 {
6735 struct ntptimeval foo;
6736 foo.time.tv_nsec;
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (eval echo "$as_me:6742: \"$ac_compile\"") >&5
6743   (eval $ac_compile) 2>&5
6744   ac_status=$?
6745   echo "$as_me:6745: \$? = $ac_status" >&5
6746   (exit $ac_status); } &&
6747          { ac_try='test -s conftest.$ac_objext'
6748   { (eval echo "$as_me:6748: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:6751: \$? = $ac_status" >&5
6752   (exit $ac_status); }; }; then
6753   ac_cv_member_struct_ntptimeval_time_tv_nsec=yes
6754 else
6755   echo "$as_me: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6757 ac_cv_member_struct_ntptimeval_time_tv_nsec=no
6758 fi
6759 rm -f conftest.$ac_objext conftest.$ac_ext
6760 fi
6761 echo "$as_me:6761: result: $ac_cv_member_struct_ntptimeval_time_tv_nsec" >&5
6762 echo "${ECHO_T}$ac_cv_member_struct_ntptimeval_time_tv_nsec" >&6
6763 if test $ac_cv_member_struct_ntptimeval_time_tv_nsec = yes; then
6764
6765 cat >>confdefs.h <<EOF
6766 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
6767 EOF
6768
6769 fi
6770
6771 echo "$as_me:6771: checking for inline" >&5
6772 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6773 if test "${ac_cv_c_inline+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   ac_cv_c_inline=no
6777 for ac_kw in inline __inline__ __inline; do
6778   cat >conftest.$ac_ext <<_ACEOF
6779 #line 6779 "configure"
6780 #include "confdefs.h"
6781 #ifndef __cplusplus
6782 static $ac_kw int static_foo () {return 0; }
6783 $ac_kw int foo () {return 0; }
6784 #endif
6785
6786 _ACEOF
6787 rm -f conftest.$ac_objext
6788 if { (eval echo "$as_me:6788: \"$ac_compile\"") >&5
6789   (eval $ac_compile) 2>&5
6790   ac_status=$?
6791   echo "$as_me:6791: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -s conftest.$ac_objext'
6794   { (eval echo "$as_me:6794: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:6797: \$? = $ac_status" >&5
6798   (exit $ac_status); }; }; then
6799   ac_cv_c_inline=$ac_kw; break
6800 else
6801   echo "$as_me: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6803 fi
6804 rm -f conftest.$ac_objext conftest.$ac_ext
6805 done
6806
6807 fi
6808 echo "$as_me:6808: result: $ac_cv_c_inline" >&5
6809 echo "${ECHO_T}$ac_cv_c_inline" >&6
6810 case $ac_cv_c_inline in
6811   inline | yes) ;;
6812   no)
6813 cat >>confdefs.h <<\EOF
6814 #define inline
6815 EOF
6816  ;;
6817   *)  cat >>confdefs.h <<EOF
6818 #define inline $ac_cv_c_inline
6819 EOF
6820  ;;
6821 esac
6822
6823 echo "$as_me:6823: checking whether char is unsigned" >&5
6824 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
6825 if test "${ac_cv_c_char_unsigned+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828   cat >conftest.$ac_ext <<_ACEOF
6829 #line 6829 "configure"
6830 #include "confdefs.h"
6831 $ac_includes_default
6832 int
6833 main ()
6834 {
6835 int _array_ [1 - 2 * !(((char) -1) < 0)]
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:6841: \"$ac_compile\"") >&5
6842   (eval $ac_compile) 2>&5
6843   ac_status=$?
6844   echo "$as_me:6844: \$? = $ac_status" >&5
6845   (exit $ac_status); } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:6847: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:6850: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   ac_cv_c_char_unsigned=no
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6856 ac_cv_c_char_unsigned=yes
6857 fi
6858 rm -f conftest.$ac_objext conftest.$ac_ext
6859 fi
6860 echo "$as_me:6860: result: $ac_cv_c_char_unsigned" >&5
6861 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
6862 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
6863   cat >>confdefs.h <<\EOF
6864 #define __CHAR_UNSIGNED__ 1
6865 EOF
6866
6867 fi
6868                 case "$host" in
6869  $target)
6870     echo "$as_me:6870: checking for signed char" >&5
6871 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
6872 if test "${ac_cv_type_signed_char+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   cat >conftest.$ac_ext <<_ACEOF
6876 #line 6876 "configure"
6877 #include "confdefs.h"
6878 $ac_includes_default
6879 int
6880 main ()
6881 {
6882 if ((signed char *) 0)
6883   return 0;
6884 if (sizeof (signed char))
6885   return 0;
6886   ;
6887   return 0;
6888 }
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (eval echo "$as_me:6891: \"$ac_compile\"") >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   echo "$as_me:6894: \$? = $ac_status" >&5
6895   (exit $ac_status); } &&
6896          { ac_try='test -s conftest.$ac_objext'
6897   { (eval echo "$as_me:6897: \"$ac_try\"") >&5
6898   (eval $ac_try) 2>&5
6899   ac_status=$?
6900   echo "$as_me:6900: \$? = $ac_status" >&5
6901   (exit $ac_status); }; }; then
6902   ac_cv_type_signed_char=yes
6903 else
6904   echo "$as_me: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6906 ac_cv_type_signed_char=no
6907 fi
6908 rm -f conftest.$ac_objext conftest.$ac_ext
6909 fi
6910 echo "$as_me:6910: result: $ac_cv_type_signed_char" >&5
6911 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
6912
6913 echo "$as_me:6913: checking size of signed char" >&5
6914 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
6915 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   if test "$ac_cv_type_signed_char" = yes; then
6919   if test "$cross_compiling" = yes; then
6920   # Depending upon the size, compute the lo and hi bounds.
6921 cat >conftest.$ac_ext <<_ACEOF
6922 #line 6922 "configure"
6923 #include "confdefs.h"
6924 $ac_includes_default
6925 int
6926 main ()
6927 {
6928 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (eval echo "$as_me:6934: \"$ac_compile\"") >&5
6935   (eval $ac_compile) 2>&5
6936   ac_status=$?
6937   echo "$as_me:6937: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -s conftest.$ac_objext'
6940   { (eval echo "$as_me:6940: \"$ac_try\"") >&5
6941   (eval $ac_try) 2>&5
6942   ac_status=$?
6943   echo "$as_me:6943: \$? = $ac_status" >&5
6944   (exit $ac_status); }; }; then
6945   ac_lo=0 ac_mid=0
6946   while :; do
6947     cat >conftest.$ac_ext <<_ACEOF
6948 #line 6948 "configure"
6949 #include "confdefs.h"
6950 $ac_includes_default
6951 int
6952 main ()
6953 {
6954 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 rm -f conftest.$ac_objext
6960 if { (eval echo "$as_me:6960: \"$ac_compile\"") >&5
6961   (eval $ac_compile) 2>&5
6962   ac_status=$?
6963   echo "$as_me:6963: \$? = $ac_status" >&5
6964   (exit $ac_status); } &&
6965          { ac_try='test -s conftest.$ac_objext'
6966   { (eval echo "$as_me:6966: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:6969: \$? = $ac_status" >&5
6970   (exit $ac_status); }; }; then
6971   ac_hi=$ac_mid; break
6972 else
6973   echo "$as_me: failed program was:" >&5
6974 cat conftest.$ac_ext >&5
6975 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
6976 fi
6977 rm -f conftest.$ac_objext conftest.$ac_ext
6978   done
6979 else
6980   echo "$as_me: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6982 ac_hi=-1 ac_mid=-1
6983   while :; do
6984     cat >conftest.$ac_ext <<_ACEOF
6985 #line 6985 "configure"
6986 #include "confdefs.h"
6987 $ac_includes_default
6988 int
6989 main ()
6990 {
6991 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:6997: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   echo "$as_me:7000: \$? = $ac_status" >&5
7001   (exit $ac_status); } &&
7002          { ac_try='test -s conftest.$ac_objext'
7003   { (eval echo "$as_me:7003: \"$ac_try\"") >&5
7004   (eval $ac_try) 2>&5
7005   ac_status=$?
7006   echo "$as_me:7006: \$? = $ac_status" >&5
7007   (exit $ac_status); }; }; then
7008   ac_lo=$ac_mid; break
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7012 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7013 fi
7014 rm -f conftest.$ac_objext conftest.$ac_ext
7015   done
7016 fi
7017 rm -f conftest.$ac_objext conftest.$ac_ext
7018 # Binary search between lo and hi bounds.
7019 while test "x$ac_lo" != "x$ac_hi"; do
7020   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7021   cat >conftest.$ac_ext <<_ACEOF
7022 #line 7022 "configure"
7023 #include "confdefs.h"
7024 $ac_includes_default
7025 int
7026 main ()
7027 {
7028 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (eval echo "$as_me:7034: \"$ac_compile\"") >&5
7035   (eval $ac_compile) 2>&5
7036   ac_status=$?
7037   echo "$as_me:7037: \$? = $ac_status" >&5
7038   (exit $ac_status); } &&
7039          { ac_try='test -s conftest.$ac_objext'
7040   { (eval echo "$as_me:7040: \"$ac_try\"") >&5
7041   (eval $ac_try) 2>&5
7042   ac_status=$?
7043   echo "$as_me:7043: \$? = $ac_status" >&5
7044   (exit $ac_status); }; }; then
7045   ac_hi=$ac_mid
7046 else
7047   echo "$as_me: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7049 ac_lo=`expr $ac_mid + 1`
7050 fi
7051 rm -f conftest.$ac_objext conftest.$ac_ext
7052 done
7053 ac_cv_sizeof_signed_char=$ac_lo
7054 else
7055   if test "$cross_compiling" = yes; then
7056   { { echo "$as_me:7056: error: cannot run test program while cross compiling" >&5
7057 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7058    { (exit 1); exit 1; }; }
7059 else
7060   cat >conftest.$ac_ext <<_ACEOF
7061 #line 7061 "configure"
7062 #include "confdefs.h"
7063 $ac_includes_default
7064 int
7065 main ()
7066 {
7067 FILE *f = fopen ("conftest.val", "w");
7068 if (!f)
7069   exit (1);
7070 fprintf (f, "%d", (sizeof (signed char)));
7071 fclose (f);
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest$ac_exeext
7077 if { (eval echo "$as_me:7077: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>&5
7079   ac_status=$?
7080   echo "$as_me:7080: \$? = $ac_status" >&5
7081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082   { (eval echo "$as_me:7082: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:7085: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   ac_cv_sizeof_signed_char=`cat conftest.val`
7088 else
7089   echo "$as_me: program exited with status $ac_status" >&5
7090 echo "$as_me: failed program was:" >&5
7091 cat conftest.$ac_ext >&5
7092 fi
7093 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7094 fi
7095 fi
7096 rm -f conftest.val
7097 else
7098   ac_cv_sizeof_signed_char=0
7099 fi
7100 fi
7101 echo "$as_me:7101: result: $ac_cv_sizeof_signed_char" >&5
7102 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
7103 cat >>confdefs.h <<EOF
7104 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
7105 EOF
7106
7107     ;;
7108  *) case "$target" in
7109      *-*-vxworks*)
7110         echo "$as_me:7110: checking for signed char" >&5
7111 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
7112 if test "${ac_cv_type_signed_char+set}" = set; then
7113   echo $ECHO_N "(cached) $ECHO_C" >&6
7114 else
7115   cat >conftest.$ac_ext <<_ACEOF
7116 #line 7116 "configure"
7117 #include "confdefs.h"
7118 $ac_includes_default
7119 int
7120 main ()
7121 {
7122 if ((signed char *) 0)
7123   return 0;
7124 if (sizeof (signed char))
7125   return 0;
7126   ;
7127   return 0;
7128 }
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:7131: \"$ac_compile\"") >&5
7132   (eval $ac_compile) 2>&5
7133   ac_status=$?
7134   echo "$as_me:7134: \$? = $ac_status" >&5
7135   (exit $ac_status); } &&
7136          { ac_try='test -s conftest.$ac_objext'
7137   { (eval echo "$as_me:7137: \"$ac_try\"") >&5
7138   (eval $ac_try) 2>&5
7139   ac_status=$?
7140   echo "$as_me:7140: \$? = $ac_status" >&5
7141   (exit $ac_status); }; }; then
7142   ac_cv_type_signed_char=yes
7143 else
7144   echo "$as_me: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 ac_cv_type_signed_char=no
7147 fi
7148 rm -f conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 echo "$as_me:7150: result: $ac_cv_type_signed_char" >&5
7151 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
7152
7153 echo "$as_me:7153: checking size of signed char" >&5
7154 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
7155 if test "${ac_cv_sizeof_signed_char+set}" = set; then
7156   echo $ECHO_N "(cached) $ECHO_C" >&6
7157 else
7158   if test "$ac_cv_type_signed_char" = yes; then
7159   if test "$cross_compiling" = yes; then
7160   # Depending upon the size, compute the lo and hi bounds.
7161 cat >conftest.$ac_ext <<_ACEOF
7162 #line 7162 "configure"
7163 #include "confdefs.h"
7164 $ac_includes_default
7165 int
7166 main ()
7167 {
7168 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (eval echo "$as_me:7174: \"$ac_compile\"") >&5
7175   (eval $ac_compile) 2>&5
7176   ac_status=$?
7177   echo "$as_me:7177: \$? = $ac_status" >&5
7178   (exit $ac_status); } &&
7179          { ac_try='test -s conftest.$ac_objext'
7180   { (eval echo "$as_me:7180: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:7183: \$? = $ac_status" >&5
7184   (exit $ac_status); }; }; then
7185   ac_lo=0 ac_mid=0
7186   while :; do
7187     cat >conftest.$ac_ext <<_ACEOF
7188 #line 7188 "configure"
7189 #include "confdefs.h"
7190 $ac_includes_default
7191 int
7192 main ()
7193 {
7194 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:7200: \"$ac_compile\"") >&5
7201   (eval $ac_compile) 2>&5
7202   ac_status=$?
7203   echo "$as_me:7203: \$? = $ac_status" >&5
7204   (exit $ac_status); } &&
7205          { ac_try='test -s conftest.$ac_objext'
7206   { (eval echo "$as_me:7206: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:7209: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   ac_hi=$ac_mid; break
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7216 fi
7217 rm -f conftest.$ac_objext conftest.$ac_ext
7218   done
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 cat conftest.$ac_ext >&5
7222 ac_hi=-1 ac_mid=-1
7223   while :; do
7224     cat >conftest.$ac_ext <<_ACEOF
7225 #line 7225 "configure"
7226 #include "confdefs.h"
7227 $ac_includes_default
7228 int
7229 main ()
7230 {
7231 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
7232   ;
7233   return 0;
7234 }
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:7237: \"$ac_compile\"") >&5
7238   (eval $ac_compile) 2>&5
7239   ac_status=$?
7240   echo "$as_me:7240: \$? = $ac_status" >&5
7241   (exit $ac_status); } &&
7242          { ac_try='test -s conftest.$ac_objext'
7243   { (eval echo "$as_me:7243: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:7246: \$? = $ac_status" >&5
7247   (exit $ac_status); }; }; then
7248   ac_lo=$ac_mid; break
7249 else
7250   echo "$as_me: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7252 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7253 fi
7254 rm -f conftest.$ac_objext conftest.$ac_ext
7255   done
7256 fi
7257 rm -f conftest.$ac_objext conftest.$ac_ext
7258 # Binary search between lo and hi bounds.
7259 while test "x$ac_lo" != "x$ac_hi"; do
7260   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7261   cat >conftest.$ac_ext <<_ACEOF
7262 #line 7262 "configure"
7263 #include "confdefs.h"
7264 $ac_includes_default
7265 int
7266 main ()
7267 {
7268 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
7269   ;
7270   return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest.$ac_objext
7274 if { (eval echo "$as_me:7274: \"$ac_compile\"") >&5
7275   (eval $ac_compile) 2>&5
7276   ac_status=$?
7277   echo "$as_me:7277: \$? = $ac_status" >&5
7278   (exit $ac_status); } &&
7279          { ac_try='test -s conftest.$ac_objext'
7280   { (eval echo "$as_me:7280: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:7283: \$? = $ac_status" >&5
7284   (exit $ac_status); }; }; then
7285   ac_hi=$ac_mid
7286 else
7287   echo "$as_me: failed program was:" >&5
7288 cat conftest.$ac_ext >&5
7289 ac_lo=`expr $ac_mid + 1`
7290 fi
7291 rm -f conftest.$ac_objext conftest.$ac_ext
7292 done
7293 ac_cv_sizeof_signed_char=$ac_lo
7294 else
7295   if test "$cross_compiling" = yes; then
7296   { { echo "$as_me:7296: error: cannot run test program while cross compiling" >&5
7297 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7298    { (exit 1); exit 1; }; }
7299 else
7300   cat >conftest.$ac_ext <<_ACEOF
7301 #line 7301 "configure"
7302 #include "confdefs.h"
7303 $ac_includes_default
7304 int
7305 main ()
7306 {
7307 FILE *f = fopen ("conftest.val", "w");
7308 if (!f)
7309   exit (1);
7310 fprintf (f, "%d", (sizeof (signed char)));
7311 fclose (f);
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest$ac_exeext
7317 if { (eval echo "$as_me:7317: \"$ac_link\"") >&5
7318   (eval $ac_link) 2>&5
7319   ac_status=$?
7320   echo "$as_me:7320: \$? = $ac_status" >&5
7321   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7322   { (eval echo "$as_me:7322: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:7325: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   ac_cv_sizeof_signed_char=`cat conftest.val`
7328 else
7329   echo "$as_me: program exited with status $ac_status" >&5
7330 echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 fi
7333 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7334 fi
7335 fi
7336 rm -f conftest.val
7337 else
7338   ac_cv_sizeof_signed_char=0
7339 fi
7340 fi
7341 echo "$as_me:7341: result: $ac_cv_sizeof_signed_char" >&5
7342 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
7343 cat >>confdefs.h <<EOF
7344 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
7345 EOF
7346
7347         ;;
7348      *) { { echo "$as_me:7348: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" >&5
7349 echo "$as_me: error: Cross-compiling needs explicit SIZEOF_SIGNED_LONG" >&2;}
7350    { (exit 1); exit 1; }; }
7351         ;;
7352     esac
7353     ;;
7354 esac
7355
7356 case "$host" in
7357  $target)
7358     echo "$as_me:7358: checking for int" >&5
7359 echo $ECHO_N "checking for int... $ECHO_C" >&6
7360 if test "${ac_cv_type_int+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363   cat >conftest.$ac_ext <<_ACEOF
7364 #line 7364 "configure"
7365 #include "confdefs.h"
7366 $ac_includes_default
7367 int
7368 main ()
7369 {
7370 if ((int *) 0)
7371   return 0;
7372 if (sizeof (int))
7373   return 0;
7374   ;
7375   return 0;
7376 }
7377 _ACEOF
7378 rm -f conftest.$ac_objext
7379 if { (eval echo "$as_me:7379: \"$ac_compile\"") >&5
7380   (eval $ac_compile) 2>&5
7381   ac_status=$?
7382   echo "$as_me:7382: \$? = $ac_status" >&5
7383   (exit $ac_status); } &&
7384          { ac_try='test -s conftest.$ac_objext'
7385   { (eval echo "$as_me:7385: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:7388: \$? = $ac_status" >&5
7389   (exit $ac_status); }; }; then
7390   ac_cv_type_int=yes
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7394 ac_cv_type_int=no
7395 fi
7396 rm -f conftest.$ac_objext conftest.$ac_ext
7397 fi
7398 echo "$as_me:7398: result: $ac_cv_type_int" >&5
7399 echo "${ECHO_T}$ac_cv_type_int" >&6
7400
7401 echo "$as_me:7401: checking size of int" >&5
7402 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7403 if test "${ac_cv_sizeof_int+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   if test "$ac_cv_type_int" = yes; then
7407   if test "$cross_compiling" = yes; then
7408   # Depending upon the size, compute the lo and hi bounds.
7409 cat >conftest.$ac_ext <<_ACEOF
7410 #line 7410 "configure"
7411 #include "confdefs.h"
7412 $ac_includes_default
7413 int
7414 main ()
7415 {
7416 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7417   ;
7418   return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:7422: \"$ac_compile\"") >&5
7423   (eval $ac_compile) 2>&5
7424   ac_status=$?
7425   echo "$as_me:7425: \$? = $ac_status" >&5
7426   (exit $ac_status); } &&
7427          { ac_try='test -s conftest.$ac_objext'
7428   { (eval echo "$as_me:7428: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:7431: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433   ac_lo=0 ac_mid=0
7434   while :; do
7435     cat >conftest.$ac_ext <<_ACEOF
7436 #line 7436 "configure"
7437 #include "confdefs.h"
7438 $ac_includes_default
7439 int
7440 main ()
7441 {
7442 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:7448: \"$ac_compile\"") >&5
7449   (eval $ac_compile) 2>&5
7450   ac_status=$?
7451   echo "$as_me:7451: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -s conftest.$ac_objext'
7454   { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:7457: \$? = $ac_status" >&5
7458   (exit $ac_status); }; }; then
7459   ac_hi=$ac_mid; break
7460 else
7461   echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7463 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7464 fi
7465 rm -f conftest.$ac_objext conftest.$ac_ext
7466   done
7467 else
7468   echo "$as_me: failed program was:" >&5
7469 cat conftest.$ac_ext >&5
7470 ac_hi=-1 ac_mid=-1
7471   while :; do
7472     cat >conftest.$ac_ext <<_ACEOF
7473 #line 7473 "configure"
7474 #include "confdefs.h"
7475 $ac_includes_default
7476 int
7477 main ()
7478 {
7479 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (eval echo "$as_me:7485: \"$ac_compile\"") >&5
7486   (eval $ac_compile) 2>&5
7487   ac_status=$?
7488   echo "$as_me:7488: \$? = $ac_status" >&5
7489   (exit $ac_status); } &&
7490          { ac_try='test -s conftest.$ac_objext'
7491   { (eval echo "$as_me:7491: \"$ac_try\"") >&5
7492   (eval $ac_try) 2>&5
7493   ac_status=$?
7494   echo "$as_me:7494: \$? = $ac_status" >&5
7495   (exit $ac_status); }; }; then
7496   ac_lo=$ac_mid; break
7497 else
7498   echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7501 fi
7502 rm -f conftest.$ac_objext conftest.$ac_ext
7503   done
7504 fi
7505 rm -f conftest.$ac_objext conftest.$ac_ext
7506 # Binary search between lo and hi bounds.
7507 while test "x$ac_lo" != "x$ac_hi"; do
7508   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7509   cat >conftest.$ac_ext <<_ACEOF
7510 #line 7510 "configure"
7511 #include "confdefs.h"
7512 $ac_includes_default
7513 int
7514 main ()
7515 {
7516 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (eval echo "$as_me:7522: \"$ac_compile\"") >&5
7523   (eval $ac_compile) 2>&5
7524   ac_status=$?
7525   echo "$as_me:7525: \$? = $ac_status" >&5
7526   (exit $ac_status); } &&
7527          { ac_try='test -s conftest.$ac_objext'
7528   { (eval echo "$as_me:7528: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:7531: \$? = $ac_status" >&5
7532   (exit $ac_status); }; }; then
7533   ac_hi=$ac_mid
7534 else
7535   echo "$as_me: failed program was:" >&5
7536 cat conftest.$ac_ext >&5
7537 ac_lo=`expr $ac_mid + 1`
7538 fi
7539 rm -f conftest.$ac_objext conftest.$ac_ext
7540 done
7541 ac_cv_sizeof_int=$ac_lo
7542 else
7543   if test "$cross_compiling" = yes; then
7544   { { echo "$as_me:7544: error: cannot run test program while cross compiling" >&5
7545 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7546    { (exit 1); exit 1; }; }
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 #line 7549 "configure"
7550 #include "confdefs.h"
7551 $ac_includes_default
7552 int
7553 main ()
7554 {
7555 FILE *f = fopen ("conftest.val", "w");
7556 if (!f)
7557   exit (1);
7558 fprintf (f, "%d", (sizeof (int)));
7559 fclose (f);
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 rm -f conftest$ac_exeext
7565 if { (eval echo "$as_me:7565: \"$ac_link\"") >&5
7566   (eval $ac_link) 2>&5
7567   ac_status=$?
7568   echo "$as_me:7568: \$? = $ac_status" >&5
7569   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7570   { (eval echo "$as_me:7570: \"$ac_try\"") >&5
7571   (eval $ac_try) 2>&5
7572   ac_status=$?
7573   echo "$as_me:7573: \$? = $ac_status" >&5
7574   (exit $ac_status); }; }; then
7575   ac_cv_sizeof_int=`cat conftest.val`
7576 else
7577   echo "$as_me: program exited with status $ac_status" >&5
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 fi
7581 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7582 fi
7583 fi
7584 rm -f conftest.val
7585 else
7586   ac_cv_sizeof_int=0
7587 fi
7588 fi
7589 echo "$as_me:7589: result: $ac_cv_sizeof_int" >&5
7590 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7591 cat >>confdefs.h <<EOF
7592 #define SIZEOF_INT $ac_cv_sizeof_int
7593 EOF
7594
7595     ;;
7596  *) case "$target" in
7597      *-*-vxworks*)
7598         echo "$as_me:7598: checking for int" >&5
7599 echo $ECHO_N "checking for int... $ECHO_C" >&6
7600 if test "${ac_cv_type_int+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   cat >conftest.$ac_ext <<_ACEOF
7604 #line 7604 "configure"
7605 #include "confdefs.h"
7606 $ac_includes_default
7607 int
7608 main ()
7609 {
7610 if ((int *) 0)
7611   return 0;
7612 if (sizeof (int))
7613   return 0;
7614   ;
7615   return 0;
7616 }
7617 _ACEOF
7618 rm -f conftest.$ac_objext
7619 if { (eval echo "$as_me:7619: \"$ac_compile\"") >&5
7620   (eval $ac_compile) 2>&5
7621   ac_status=$?
7622   echo "$as_me:7622: \$? = $ac_status" >&5
7623   (exit $ac_status); } &&
7624          { ac_try='test -s conftest.$ac_objext'
7625   { (eval echo "$as_me:7625: \"$ac_try\"") >&5
7626   (eval $ac_try) 2>&5
7627   ac_status=$?
7628   echo "$as_me:7628: \$? = $ac_status" >&5
7629   (exit $ac_status); }; }; then
7630   ac_cv_type_int=yes
7631 else
7632   echo "$as_me: failed program was:" >&5
7633 cat conftest.$ac_ext >&5
7634 ac_cv_type_int=no
7635 fi
7636 rm -f conftest.$ac_objext conftest.$ac_ext
7637 fi
7638 echo "$as_me:7638: result: $ac_cv_type_int" >&5
7639 echo "${ECHO_T}$ac_cv_type_int" >&6
7640
7641 echo "$as_me:7641: checking size of int" >&5
7642 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7643 if test "${ac_cv_sizeof_int+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   if test "$ac_cv_type_int" = yes; then
7647   if test "$cross_compiling" = yes; then
7648   # Depending upon the size, compute the lo and hi bounds.
7649 cat >conftest.$ac_ext <<_ACEOF
7650 #line 7650 "configure"
7651 #include "confdefs.h"
7652 $ac_includes_default
7653 int
7654 main ()
7655 {
7656 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (eval echo "$as_me:7662: \"$ac_compile\"") >&5
7663   (eval $ac_compile) 2>&5
7664   ac_status=$?
7665   echo "$as_me:7665: \$? = $ac_status" >&5
7666   (exit $ac_status); } &&
7667          { ac_try='test -s conftest.$ac_objext'
7668   { (eval echo "$as_me:7668: \"$ac_try\"") >&5
7669   (eval $ac_try) 2>&5
7670   ac_status=$?
7671   echo "$as_me:7671: \$? = $ac_status" >&5
7672   (exit $ac_status); }; }; then
7673   ac_lo=0 ac_mid=0
7674   while :; do
7675     cat >conftest.$ac_ext <<_ACEOF
7676 #line 7676 "configure"
7677 #include "confdefs.h"
7678 $ac_includes_default
7679 int
7680 main ()
7681 {
7682 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:7688: \"$ac_compile\"") >&5
7689   (eval $ac_compile) 2>&5
7690   ac_status=$?
7691   echo "$as_me:7691: \$? = $ac_status" >&5
7692   (exit $ac_status); } &&
7693          { ac_try='test -s conftest.$ac_objext'
7694   { (eval echo "$as_me:7694: \"$ac_try\"") >&5
7695   (eval $ac_try) 2>&5
7696   ac_status=$?
7697   echo "$as_me:7697: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699   ac_hi=$ac_mid; break
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 cat conftest.$ac_ext >&5
7703 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7704 fi
7705 rm -f conftest.$ac_objext conftest.$ac_ext
7706   done
7707 else
7708   echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 ac_hi=-1 ac_mid=-1
7711   while :; do
7712     cat >conftest.$ac_ext <<_ACEOF
7713 #line 7713 "configure"
7714 #include "confdefs.h"
7715 $ac_includes_default
7716 int
7717 main ()
7718 {
7719 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7720   ;
7721   return 0;
7722 }
7723 _ACEOF
7724 rm -f conftest.$ac_objext
7725 if { (eval echo "$as_me:7725: \"$ac_compile\"") >&5
7726   (eval $ac_compile) 2>&5
7727   ac_status=$?
7728   echo "$as_me:7728: \$? = $ac_status" >&5
7729   (exit $ac_status); } &&
7730          { ac_try='test -s conftest.$ac_objext'
7731   { (eval echo "$as_me:7731: \"$ac_try\"") >&5
7732   (eval $ac_try) 2>&5
7733   ac_status=$?
7734   echo "$as_me:7734: \$? = $ac_status" >&5
7735   (exit $ac_status); }; }; then
7736   ac_lo=$ac_mid; break
7737 else
7738   echo "$as_me: failed program was:" >&5
7739 cat conftest.$ac_ext >&5
7740 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7741 fi
7742 rm -f conftest.$ac_objext conftest.$ac_ext
7743   done
7744 fi
7745 rm -f conftest.$ac_objext conftest.$ac_ext
7746 # Binary search between lo and hi bounds.
7747 while test "x$ac_lo" != "x$ac_hi"; do
7748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7749   cat >conftest.$ac_ext <<_ACEOF
7750 #line 7750 "configure"
7751 #include "confdefs.h"
7752 $ac_includes_default
7753 int
7754 main ()
7755 {
7756 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:7762: \"$ac_compile\"") >&5
7763   (eval $ac_compile) 2>&5
7764   ac_status=$?
7765   echo "$as_me:7765: \$? = $ac_status" >&5
7766   (exit $ac_status); } &&
7767          { ac_try='test -s conftest.$ac_objext'
7768   { (eval echo "$as_me:7768: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:7771: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_hi=$ac_mid
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 cat conftest.$ac_ext >&5
7777 ac_lo=`expr $ac_mid + 1`
7778 fi
7779 rm -f conftest.$ac_objext conftest.$ac_ext
7780 done
7781 ac_cv_sizeof_int=$ac_lo
7782 else
7783   if test "$cross_compiling" = yes; then
7784   { { echo "$as_me:7784: error: cannot run test program while cross compiling" >&5
7785 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7786    { (exit 1); exit 1; }; }
7787 else
7788   cat >conftest.$ac_ext <<_ACEOF
7789 #line 7789 "configure"
7790 #include "confdefs.h"
7791 $ac_includes_default
7792 int
7793 main ()
7794 {
7795 FILE *f = fopen ("conftest.val", "w");
7796 if (!f)
7797   exit (1);
7798 fprintf (f, "%d", (sizeof (int)));
7799 fclose (f);
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest$ac_exeext
7805 if { (eval echo "$as_me:7805: \"$ac_link\"") >&5
7806   (eval $ac_link) 2>&5
7807   ac_status=$?
7808   echo "$as_me:7808: \$? = $ac_status" >&5
7809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7810   { (eval echo "$as_me:7810: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:7813: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815   ac_cv_sizeof_int=`cat conftest.val`
7816 else
7817   echo "$as_me: program exited with status $ac_status" >&5
7818 echo "$as_me: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7820 fi
7821 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
7822 fi
7823 fi
7824 rm -f conftest.val
7825 else
7826   ac_cv_sizeof_int=0
7827 fi
7828 fi
7829 echo "$as_me:7829: result: $ac_cv_sizeof_int" >&5
7830 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7831 cat >>confdefs.h <<EOF
7832 #define SIZEOF_INT $ac_cv_sizeof_int
7833 EOF
7834
7835         ;;
7836      *) { { echo "$as_me:7836: error: Cross-compiling needs explicit SIZEOF_INT" >&5
7837 echo "$as_me: error: Cross-compiling needs explicit SIZEOF_INT" >&2;}
7838    { (exit 1); exit 1; }; }
7839         ;;
7840     esac
7841     ;;
7842 esac
7843
7844 case "$host" in
7845  $target)
7846     echo "$as_me:7846: checking for long" >&5
7847 echo $ECHO_N "checking for long... $ECHO_C" >&6
7848 if test "${ac_cv_type_long+set}" = set; then
7849   echo $ECHO_N "(cached) $ECHO_C" >&6
7850 else
7851   cat >conftest.$ac_ext <<_ACEOF
7852 #line 7852 "configure"
7853 #include "confdefs.h"
7854 $ac_includes_default
7855 int
7856 main ()
7857 {
7858 if ((long *) 0)
7859   return 0;
7860 if (sizeof (long))
7861   return 0;
7862   ;
7863   return 0;
7864 }
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (eval echo "$as_me:7867: \"$ac_compile\"") >&5
7868   (eval $ac_compile) 2>&5
7869   ac_status=$?
7870   echo "$as_me:7870: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -s conftest.$ac_objext'
7873   { (eval echo "$as_me:7873: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:7876: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   ac_cv_type_long=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 ac_cv_type_long=no
7883 fi
7884 rm -f conftest.$ac_objext conftest.$ac_ext
7885 fi
7886 echo "$as_me:7886: result: $ac_cv_type_long" >&5
7887 echo "${ECHO_T}$ac_cv_type_long" >&6
7888
7889 echo "$as_me:7889: checking size of long" >&5
7890 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7891 if test "${ac_cv_sizeof_long+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   if test "$ac_cv_type_long" = yes; then
7895   if test "$cross_compiling" = yes; then
7896   # Depending upon the size, compute the lo and hi bounds.
7897 cat >conftest.$ac_ext <<_ACEOF
7898 #line 7898 "configure"
7899 #include "confdefs.h"
7900 $ac_includes_default
7901 int
7902 main ()
7903 {
7904 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:7910: \"$ac_compile\"") >&5
7911   (eval $ac_compile) 2>&5
7912   ac_status=$?
7913   echo "$as_me:7913: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -s conftest.$ac_objext'
7916   { (eval echo "$as_me:7916: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:7919: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   ac_lo=0 ac_mid=0
7922   while :; do
7923     cat >conftest.$ac_ext <<_ACEOF
7924 #line 7924 "configure"
7925 #include "confdefs.h"
7926 $ac_includes_default
7927 int
7928 main ()
7929 {
7930 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:7936: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>&5
7938   ac_status=$?
7939   echo "$as_me:7939: \$? = $ac_status" >&5
7940   (exit $ac_status); } &&
7941          { ac_try='test -s conftest.$ac_objext'
7942   { (eval echo "$as_me:7942: \"$ac_try\"") >&5
7943   (eval $ac_try) 2>&5
7944   ac_status=$?
7945   echo "$as_me:7945: \$? = $ac_status" >&5
7946   (exit $ac_status); }; }; then
7947   ac_hi=$ac_mid; break
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 cat conftest.$ac_ext >&5
7951 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7952 fi
7953 rm -f conftest.$ac_objext conftest.$ac_ext
7954   done
7955 else
7956   echo "$as_me: failed program was:" >&5
7957 cat conftest.$ac_ext >&5
7958 ac_hi=-1 ac_mid=-1
7959   while :; do
7960     cat >conftest.$ac_ext <<_ACEOF
7961 #line 7961 "configure"
7962 #include "confdefs.h"
7963 $ac_includes_default
7964 int
7965 main ()
7966 {
7967 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:7973: \"$ac_compile\"") >&5
7974   (eval $ac_compile) 2>&5
7975   ac_status=$?
7976   echo "$as_me:7976: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -s conftest.$ac_objext'
7979   { (eval echo "$as_me:7979: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:7982: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   ac_lo=$ac_mid; break
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7989 fi
7990 rm -f conftest.$ac_objext conftest.$ac_ext
7991   done
7992 fi
7993 rm -f conftest.$ac_objext conftest.$ac_ext
7994 # Binary search between lo and hi bounds.
7995 while test "x$ac_lo" != "x$ac_hi"; do
7996   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7997   cat >conftest.$ac_ext <<_ACEOF
7998 #line 7998 "configure"
7999 #include "confdefs.h"
8000 $ac_includes_default
8001 int
8002 main ()
8003 {
8004 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:8010: \"$ac_compile\"") >&5
8011   (eval $ac_compile) 2>&5
8012   ac_status=$?
8013   echo "$as_me:8013: \$? = $ac_status" >&5
8014   (exit $ac_status); } &&
8015          { ac_try='test -s conftest.$ac_objext'
8016   { (eval echo "$as_me:8016: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:8019: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021   ac_hi=$ac_mid
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 ac_lo=`expr $ac_mid + 1`
8026 fi
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8028 done
8029 ac_cv_sizeof_long=$ac_lo
8030 else
8031   if test "$cross_compiling" = yes; then
8032   { { echo "$as_me:8032: error: cannot run test program while cross compiling" >&5
8033 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8034    { (exit 1); exit 1; }; }
8035 else
8036   cat >conftest.$ac_ext <<_ACEOF
8037 #line 8037 "configure"
8038 #include "confdefs.h"
8039 $ac_includes_default
8040 int
8041 main ()
8042 {
8043 FILE *f = fopen ("conftest.val", "w");
8044 if (!f)
8045   exit (1);
8046 fprintf (f, "%d", (sizeof (long)));
8047 fclose (f);
8048   ;
8049   return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest$ac_exeext
8053 if { (eval echo "$as_me:8053: \"$ac_link\"") >&5
8054   (eval $ac_link) 2>&5
8055   ac_status=$?
8056   echo "$as_me:8056: \$? = $ac_status" >&5
8057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8058   { (eval echo "$as_me:8058: \"$ac_try\"") >&5
8059   (eval $ac_try) 2>&5
8060   ac_status=$?
8061   echo "$as_me:8061: \$? = $ac_status" >&5
8062   (exit $ac_status); }; }; then
8063   ac_cv_sizeof_long=`cat conftest.val`
8064 else
8065   echo "$as_me: program exited with status $ac_status" >&5
8066 echo "$as_me: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8068 fi
8069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
8070 fi
8071 fi
8072 rm -f conftest.val
8073 else
8074   ac_cv_sizeof_long=0
8075 fi
8076 fi
8077 echo "$as_me:8077: result: $ac_cv_sizeof_long" >&5
8078 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8079 cat >>confdefs.h <<EOF
8080 #define SIZEOF_LONG $ac_cv_sizeof_long
8081 EOF
8082
8083     ;;
8084  *) case "$target" in
8085      *-*-vxworks*)
8086         echo "$as_me:8086: checking for long" >&5
8087 echo $ECHO_N "checking for long... $ECHO_C" >&6
8088 if test "${ac_cv_type_long+set}" = set; then
8089   echo $ECHO_N "(cached) $ECHO_C" >&6
8090 else
8091   cat >conftest.$ac_ext <<_ACEOF
8092 #line 8092 "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8095 int
8096 main ()
8097 {
8098 if ((long *) 0)
8099   return 0;
8100 if (sizeof (long))
8101   return 0;
8102   ;
8103   return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (eval echo "$as_me:8107: \"$ac_compile\"") >&5
8108   (eval $ac_compile) 2>&5
8109   ac_status=$?
8110   echo "$as_me:8110: \$? = $ac_status" >&5
8111   (exit $ac_status); } &&
8112          { ac_try='test -s conftest.$ac_objext'
8113   { (eval echo "$as_me:8113: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:8116: \$? = $ac_status" >&5
8117   (exit $ac_status); }; }; then
8118   ac_cv_type_long=yes
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 cat conftest.$ac_ext >&5
8122 ac_cv_type_long=no
8123 fi
8124 rm -f conftest.$ac_objext conftest.$ac_ext
8125 fi
8126 echo "$as_me:8126: result: $ac_cv_type_long" >&5
8127 echo "${ECHO_T}$ac_cv_type_long" >&6
8128
8129 echo "$as_me:8129: checking size of long" >&5
8130 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8131 if test "${ac_cv_sizeof_long+set}" = set; then
8132   echo $ECHO_N "(cached) $ECHO_C" >&6
8133 else
8134   if test "$ac_cv_type_long" = yes; then
8135   if test "$cross_compiling" = yes; then
8136   # Depending upon the size, compute the lo and hi bounds.
8137 cat >conftest.$ac_ext <<_ACEOF
8138 #line 8138 "configure"
8139 #include "confdefs.h"
8140 $ac_includes_default
8141 int
8142 main ()
8143 {
8144 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (eval echo "$as_me:8150: \"$ac_compile\"") >&5
8151   (eval $ac_compile) 2>&5
8152   ac_status=$?
8153   echo "$as_me:8153: \$? = $ac_status" >&5
8154   (exit $ac_status); } &&
8155          { ac_try='test -s conftest.$ac_objext'
8156   { (eval echo "$as_me:8156: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:8159: \$? = $ac_status" >&5
8160   (exit $ac_status); }; }; then
8161   ac_lo=0 ac_mid=0
8162   while :; do
8163     cat >conftest.$ac_ext <<_ACEOF
8164 #line 8164 "configure"
8165 #include "confdefs.h"
8166 $ac_includes_default
8167 int
8168 main ()
8169 {
8170 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (eval echo "$as_me:8176: \"$ac_compile\"") >&5
8177   (eval $ac_compile) 2>&5
8178   ac_status=$?
8179   echo "$as_me:8179: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -s conftest.$ac_objext'
8182   { (eval echo "$as_me:8182: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:8185: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   ac_hi=$ac_mid; break
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8191 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8192 fi
8193 rm -f conftest.$ac_objext conftest.$ac_ext
8194   done
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 ac_hi=-1 ac_mid=-1
8199   while :; do
8200     cat >conftest.$ac_ext <<_ACEOF
8201 #line 8201 "configure"
8202 #include "confdefs.h"
8203 $ac_includes_default
8204 int
8205 main ()
8206 {
8207 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 rm -f conftest.$ac_objext
8213 if { (eval echo "$as_me:8213: \"$ac_compile\"") >&5
8214   (eval $ac_compile) 2>&5
8215   ac_status=$?
8216   echo "$as_me:8216: \$? = $ac_status" >&5
8217   (exit $ac_status); } &&
8218          { ac_try='test -s conftest.$ac_objext'
8219   { (eval echo "$as_me:8219: \"$ac_try\"") >&5
8220   (eval $ac_try) 2>&5
8221   ac_status=$?
8222   echo "$as_me:8222: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   ac_lo=$ac_mid; break
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8228 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8229 fi
8230 rm -f conftest.$ac_objext conftest.$ac_ext
8231   done
8232 fi
8233 rm -f conftest.$ac_objext conftest.$ac_ext
8234 # Binary search between lo and hi bounds.
8235 while test "x$ac_lo" != "x$ac_hi"; do
8236   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8237   cat >conftest.$ac_ext <<_ACEOF
8238 #line 8238 "configure"
8239 #include "confdefs.h"
8240 $ac_includes_default
8241 int
8242 main ()
8243 {
8244 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
8245   ;
8246   return 0;
8247 }
8248 _ACEOF
8249 rm -f conftest.$ac_objext
8250 if { (eval echo "$as_me:8250: \"$ac_compile\"") >&5
8251   (eval $ac_compile) 2>&5
8252   ac_status=$?
8253   echo "$as_me:8253: \$? = $ac_status" >&5
8254   (exit $ac_status); } &&
8255          { ac_try='test -s conftest.$ac_objext'
8256   { (eval echo "$as_me:8256: \"$ac_try\"") >&5
8257   (eval $ac_try) 2>&5
8258   ac_status=$?
8259   echo "$as_me:8259: \$? = $ac_status" >&5
8260   (exit $ac_status); }; }; then
8261   ac_hi=$ac_mid
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8265 ac_lo=`expr $ac_mid + 1`
8266 fi
8267 rm -f conftest.$ac_objext conftest.$ac_ext
8268 done
8269 ac_cv_sizeof_long=$ac_lo
8270 else
8271   if test "$cross_compiling" = yes; then
8272   { { echo "$as_me:8272: error: cannot run test program while cross compiling" >&5
8273 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8274    { (exit 1); exit 1; }; }
8275 else
8276   cat >conftest.$ac_ext <<_ACEOF
8277 #line 8277 "configure"
8278 #include "confdefs.h"
8279 $ac_includes_default
8280 int
8281 main ()
8282 {
8283 FILE *f = fopen ("conftest.val", "w");
8284 if (!f)
8285   exit (1);
8286 fprintf (f, "%d", (sizeof (long)));
8287 fclose (f);
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest$ac_exeext
8293 if { (eval echo "$as_me:8293: \"$ac_link\"") >&5
8294   (eval $ac_link) 2>&5
8295   ac_status=$?
8296   echo "$as_me:8296: \$? = $ac_status" >&5
8297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8298   { (eval echo "$as_me:8298: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:8301: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_cv_sizeof_long=`cat conftest.val`
8304 else
8305   echo "$as_me: program exited with status $ac_status" >&5
8306 echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 fi
8309 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
8310 fi
8311 fi
8312 rm -f conftest.val
8313 else
8314   ac_cv_sizeof_long=0
8315 fi
8316 fi
8317 echo "$as_me:8317: result: $ac_cv_sizeof_long" >&5
8318 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8319 cat >>confdefs.h <<EOF
8320 #define SIZEOF_LONG $ac_cv_sizeof_long
8321 EOF
8322
8323         ;;
8324      *) { { echo "$as_me:8324: error: Cross-compiling needs explicit SIZEOF_LONG" >&5
8325 echo "$as_me: error: Cross-compiling needs explicit SIZEOF_LONG" >&2;}
8326    { (exit 1); exit 1; }; }
8327         ;;
8328     esac
8329     ;;
8330 esac
8331
8332 echo "$as_me:8332: checking for s_char" >&5
8333 echo $ECHO_N "checking for s_char... $ECHO_C" >&6
8334 if test "${ac_cv_type_s_char+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   cat >conftest.$ac_ext <<_ACEOF
8338 #line 8338 "configure"
8339 #include "confdefs.h"
8340 $ac_includes_default
8341 int
8342 main ()
8343 {
8344 if ((s_char *) 0)
8345   return 0;
8346 if (sizeof (s_char))
8347   return 0;
8348   ;
8349   return 0;
8350 }
8351 _ACEOF
8352 rm -f conftest.$ac_objext
8353 if { (eval echo "$as_me:8353: \"$ac_compile\"") >&5
8354   (eval $ac_compile) 2>&5
8355   ac_status=$?
8356   echo "$as_me:8356: \$? = $ac_status" >&5
8357   (exit $ac_status); } &&
8358          { ac_try='test -s conftest.$ac_objext'
8359   { (eval echo "$as_me:8359: \"$ac_try\"") >&5
8360   (eval $ac_try) 2>&5
8361   ac_status=$?
8362   echo "$as_me:8362: \$? = $ac_status" >&5
8363   (exit $ac_status); }; }; then
8364   ac_cv_type_s_char=yes
8365 else
8366   echo "$as_me: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8368 ac_cv_type_s_char=no
8369 fi
8370 rm -f conftest.$ac_objext conftest.$ac_ext
8371 fi
8372 echo "$as_me:8372: result: $ac_cv_type_s_char" >&5
8373 echo "${ECHO_T}$ac_cv_type_s_char" >&6
8374 if test $ac_cv_type_s_char = yes; then
8375
8376 cat >>confdefs.h <<EOF
8377 #define HAVE_S_CHAR 1
8378 EOF
8379
8380 fi
8381
8382 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
8383  *yes)
8384     # We have a typedef for s_char.  Might as well believe it...
8385     ;;
8386  no0no)
8387     # We have signed chars, can't say 'signed char', no s_char typedef.
8388     cat >>confdefs.h <<\EOF
8389 #define NEED_S_CHAR_TYPEDEF 1
8390 EOF
8391
8392     ;;
8393  no1no)
8394     # We have signed chars, can say 'signed char', no s_char typedef.
8395     cat >>confdefs.h <<\EOF
8396 #define NEED_S_CHAR_TYPEDEF 1
8397 EOF
8398
8399     ;;
8400  yes0no)
8401     # We have unsigned chars, can't say 'signed char', no s_char typedef.
8402     { { echo "$as_me:8402: error: No way to specify a signed character!" >&5
8403 echo "$as_me: error: No way to specify a signed character!" >&2;}
8404    { (exit 1); exit 1; }; }
8405     ;;
8406  yes1no)
8407     # We have unsigned chars, can say 'signed char', no s_char typedef.
8408     cat >>confdefs.h <<\EOF
8409 #define NEED_S_CHAR_TYPEDEF 1
8410 EOF
8411
8412     ;;
8413 esac
8414 echo "$as_me:8414: checking for uid_t in sys/types.h" >&5
8415 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8416 if test "${ac_cv_type_uid_t+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   cat >conftest.$ac_ext <<_ACEOF
8420 #line 8420 "configure"
8421 #include "confdefs.h"
8422 #include <sys/types.h>
8423
8424 _ACEOF
8425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8426   egrep "uid_t" >/dev/null 2>&1; then
8427   ac_cv_type_uid_t=yes
8428 else
8429   ac_cv_type_uid_t=no
8430 fi
8431 rm -f conftest*
8432
8433 fi
8434 echo "$as_me:8434: result: $ac_cv_type_uid_t" >&5
8435 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8436 if test $ac_cv_type_uid_t = no; then
8437
8438 cat >>confdefs.h <<\EOF
8439 #define uid_t int
8440 EOF
8441
8442 cat >>confdefs.h <<\EOF
8443 #define gid_t int
8444 EOF
8445
8446 fi
8447
8448 case "$target" in
8449  *-*-linux*)
8450
8451 for ac_func in __adjtimex __ntp_gettime
8452 do
8453 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8454 echo "$as_me:8454: checking for $ac_func" >&5
8455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8456 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   cat >conftest.$ac_ext <<_ACEOF
8460 #line 8460 "configure"
8461 #include "confdefs.h"
8462 /* System header to define __stub macros and hopefully few prototypes,
8463     which can conflict with char $ac_func (); below.  */
8464 #include <assert.h>
8465 /* Override any gcc2 internal prototype to avoid an error.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470    builtin and then its argument prototype would still apply.  */
8471 char $ac_func ();
8472 char (*f) ();
8473
8474 int
8475 main ()
8476 {
8477 /* The GNU C library defines this for functions which it implements
8478     to always fail with ENOSYS.  Some functions are actually named
8479     something starting with __ and the normal name is an alias.  */
8480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8481 choke me
8482 #else
8483 f = $ac_func;
8484 #endif
8485
8486   ;
8487   return 0;
8488 }
8489 _ACEOF
8490 rm -f conftest.$ac_objext conftest$ac_exeext
8491 if { (eval echo "$as_me:8491: \"$ac_link\"") >&5
8492   (eval $ac_link) 2>&5
8493   ac_status=$?
8494   echo "$as_me:8494: \$? = $ac_status" >&5
8495   (exit $ac_status); } &&
8496          { ac_try='test -s conftest$ac_exeext'
8497   { (eval echo "$as_me:8497: \"$ac_try\"") >&5
8498   (eval $ac_try) 2>&5
8499   ac_status=$?
8500   echo "$as_me:8500: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   eval "$ac_ac_var=yes"
8503 else
8504   echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 eval "$ac_ac_var=no"
8507 fi
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:8510: result: `eval echo '${'$ac_ac_var'}'`" >&5
8511 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8512 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8513   cat >>confdefs.h <<EOF
8514 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8515 EOF
8516
8517 fi
8518 done
8519
8520     ;;
8521 esac
8522 case "$target" in
8523  *-*-aix4*)
8524         # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8525         # (returning ENOSYS).  I didn't check 4.2.  If, in the future,
8526         # IBM pulls its thumbs out long enough to implement clock_settime,
8527         # this conditional will need to change.  Maybe use AC_TRY_RUN
8528         # instead to try to set the time to itself and check errno.
8529     ;;
8530  *)
8531 for ac_func in clock_settime
8532 do
8533 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8534 echo "$as_me:8534: checking for $ac_func" >&5
8535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8536 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8537   echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539   cat >conftest.$ac_ext <<_ACEOF
8540 #line 8540 "configure"
8541 #include "confdefs.h"
8542 /* System header to define __stub macros and hopefully few prototypes,
8543     which can conflict with char $ac_func (); below.  */
8544 #include <assert.h>
8545 /* Override any gcc2 internal prototype to avoid an error.  */
8546 #ifdef __cplusplus
8547 extern "C"
8548 #endif
8549 /* We use char because int might match the return type of a gcc2
8550    builtin and then its argument prototype would still apply.  */
8551 char $ac_func ();
8552 char (*f) ();
8553
8554 int
8555 main ()
8556 {
8557 /* The GNU C library defines this for functions which it implements
8558     to always fail with ENOSYS.  Some functions are actually named
8559     something starting with __ and the normal name is an alias.  */
8560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8561 choke me
8562 #else
8563 f = $ac_func;
8564 #endif
8565
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 rm -f conftest.$ac_objext conftest$ac_exeext
8571 if { (eval echo "$as_me:8571: \"$ac_link\"") >&5
8572   (eval $ac_link) 2>&5
8573   ac_status=$?
8574   echo "$as_me:8574: \$? = $ac_status" >&5
8575   (exit $ac_status); } &&
8576          { ac_try='test -s conftest$ac_exeext'
8577   { (eval echo "$as_me:8577: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:8580: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   eval "$ac_ac_var=yes"
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 eval "$ac_ac_var=no"
8587 fi
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 fi
8590 echo "$as_me:8590: result: `eval echo '${'$ac_ac_var'}'`" >&5
8591 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8592 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8593   cat >>confdefs.h <<EOF
8594 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8595 EOF
8596
8597 fi
8598 done
8599
8600     ;;
8601 esac
8602
8603 for ac_func in daemon
8604 do
8605 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8606 echo "$as_me:8606: checking for $ac_func" >&5
8607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8608 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   cat >conftest.$ac_ext <<_ACEOF
8612 #line 8612 "configure"
8613 #include "confdefs.h"
8614 /* System header to define __stub macros and hopefully few prototypes,
8615     which can conflict with char $ac_func (); below.  */
8616 #include <assert.h>
8617 /* Override any gcc2 internal prototype to avoid an error.  */
8618 #ifdef __cplusplus
8619 extern "C"
8620 #endif
8621 /* We use char because int might match the return type of a gcc2
8622    builtin and then its argument prototype would still apply.  */
8623 char $ac_func ();
8624 char (*f) ();
8625
8626 int
8627 main ()
8628 {
8629 /* The GNU C library defines this for functions which it implements
8630     to always fail with ENOSYS.  Some functions are actually named
8631     something starting with __ and the normal name is an alias.  */
8632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8633 choke me
8634 #else
8635 f = $ac_func;
8636 #endif
8637
8638   ;
8639   return 0;
8640 }
8641 _ACEOF
8642 rm -f conftest.$ac_objext conftest$ac_exeext
8643 if { (eval echo "$as_me:8643: \"$ac_link\"") >&5
8644   (eval $ac_link) 2>&5
8645   ac_status=$?
8646   echo "$as_me:8646: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -s conftest$ac_exeext'
8649   { (eval echo "$as_me:8649: \"$ac_try\"") >&5
8650   (eval $ac_try) 2>&5
8651   ac_status=$?
8652   echo "$as_me:8652: \$? = $ac_status" >&5
8653   (exit $ac_status); }; }; then
8654   eval "$ac_ac_var=yes"
8655 else
8656   echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 eval "$ac_ac_var=no"
8659 fi
8660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8661 fi
8662 echo "$as_me:8662: result: `eval echo '${'$ac_ac_var'}'`" >&5
8663 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8664 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8665   cat >>confdefs.h <<EOF
8666 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8667 EOF
8668
8669 fi
8670 done
8671
8672 for ac_func in finite
8673 do
8674 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8675 echo "$as_me:8675: checking for $ac_func" >&5
8676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8677 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   cat >conftest.$ac_ext <<_ACEOF
8681 #line 8681 "configure"
8682 #include "confdefs.h"
8683 /* System header to define __stub macros and hopefully few prototypes,
8684     which can conflict with char $ac_func (); below.  */
8685 #include <assert.h>
8686 /* Override any gcc2 internal prototype to avoid an error.  */
8687 #ifdef __cplusplus
8688 extern "C"
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691    builtin and then its argument prototype would still apply.  */
8692 char $ac_func ();
8693 char (*f) ();
8694
8695 int
8696 main ()
8697 {
8698 /* The GNU C library defines this for functions which it implements
8699     to always fail with ENOSYS.  Some functions are actually named
8700     something starting with __ and the normal name is an alias.  */
8701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8702 choke me
8703 #else
8704 f = $ac_func;
8705 #endif
8706
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:8712: \"$ac_link\"") >&5
8713   (eval $ac_link) 2>&5
8714   ac_status=$?
8715   echo "$as_me:8715: \$? = $ac_status" >&5
8716   (exit $ac_status); } &&
8717          { ac_try='test -s conftest$ac_exeext'
8718   { (eval echo "$as_me:8718: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:8721: \$? = $ac_status" >&5
8722   (exit $ac_status); }; }; then
8723   eval "$ac_ac_var=yes"
8724 else
8725   echo "$as_me: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 eval "$ac_ac_var=no"
8728 fi
8729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8730 fi
8731 echo "$as_me:8731: result: `eval echo '${'$ac_ac_var'}'`" >&5
8732 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8733 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8734   cat >>confdefs.h <<EOF
8735 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8736 EOF
8737
8738 else
8739
8740 for ac_func in isfinite
8741 do
8742 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8743 echo "$as_me:8743: checking for $ac_func" >&5
8744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8745 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   cat >conftest.$ac_ext <<_ACEOF
8749 #line 8749 "configure"
8750 #include "confdefs.h"
8751 /* System header to define __stub macros and hopefully few prototypes,
8752     which can conflict with char $ac_func (); below.  */
8753 #include <assert.h>
8754 /* Override any gcc2 internal prototype to avoid an error.  */
8755 #ifdef __cplusplus
8756 extern "C"
8757 #endif
8758 /* We use char because int might match the return type of a gcc2
8759    builtin and then its argument prototype would still apply.  */
8760 char $ac_func ();
8761 char (*f) ();
8762
8763 int
8764 main ()
8765 {
8766 /* The GNU C library defines this for functions which it implements
8767     to always fail with ENOSYS.  Some functions are actually named
8768     something starting with __ and the normal name is an alias.  */
8769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8770 choke me
8771 #else
8772 f = $ac_func;
8773 #endif
8774
8775   ;
8776   return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo "$as_me:8780: \"$ac_link\"") >&5
8781   (eval $ac_link) 2>&5
8782   ac_status=$?
8783   echo "$as_me:8783: \$? = $ac_status" >&5
8784   (exit $ac_status); } &&
8785          { ac_try='test -s conftest$ac_exeext'
8786   { (eval echo "$as_me:8786: \"$ac_try\"") >&5
8787   (eval $ac_try) 2>&5
8788   ac_status=$?
8789   echo "$as_me:8789: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   eval "$ac_ac_var=yes"
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8795 eval "$ac_ac_var=no"
8796 fi
8797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8798 fi
8799 echo "$as_me:8799: result: `eval echo '${'$ac_ac_var'}'`" >&5
8800 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8801 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8802   cat >>confdefs.h <<EOF
8803 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8804 EOF
8805
8806 else
8807   echo "$as_me:8807: checking for isfinite with <math.h>" >&5
8808 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6
8809     _libs=$LIBS
8810     LIBS="$LIBS -lm"
8811     cat >conftest.$ac_ext <<_ACEOF
8812 #line 8812 "configure"
8813 #include "confdefs.h"
8814 #include <math.h>
8815 int
8816 main ()
8817 {
8818 float f = 0.0; isfinite(f)
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:8824: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>&5
8826   ac_status=$?
8827   echo "$as_me:8827: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -s conftest$ac_exeext'
8830   { (eval echo "$as_me:8830: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:8833: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   echo "$as_me:8835: result: yes" >&5
8836 echo "${ECHO_T}yes" >&6
8837       cat >>confdefs.h <<\EOF
8838 #define HAVE_ISFINITE 1
8839 EOF
8840
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 echo "$as_me:8844: result: no" >&5
8845 echo "${ECHO_T}no" >&6
8846 fi
8847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8848     LIBS=$_libs
8849 fi
8850 done
8851
8852 fi
8853 done
8854
8855 for ac_func in getbootfile getclock getdtablesize getrusage gettimeofday
8856 do
8857 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8858 echo "$as_me:8858: checking for $ac_func" >&5
8859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8860 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863   cat >conftest.$ac_ext <<_ACEOF
8864 #line 8864 "configure"
8865 #include "confdefs.h"
8866 /* System header to define __stub macros and hopefully few prototypes,
8867     which can conflict with char $ac_func (); below.  */
8868 #include <assert.h>
8869 /* Override any gcc2 internal prototype to avoid an error.  */
8870 #ifdef __cplusplus
8871 extern "C"
8872 #endif
8873 /* We use char because int might match the return type of a gcc2
8874    builtin and then its argument prototype would still apply.  */
8875 char $ac_func ();
8876 char (*f) ();
8877
8878 int
8879 main ()
8880 {
8881 /* The GNU C library defines this for functions which it implements
8882     to always fail with ENOSYS.  Some functions are actually named
8883     something starting with __ and the normal name is an alias.  */
8884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8885 choke me
8886 #else
8887 f = $ac_func;
8888 #endif
8889
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:8895: \"$ac_link\"") >&5
8896   (eval $ac_link) 2>&5
8897   ac_status=$?
8898   echo "$as_me:8898: \$? = $ac_status" >&5
8899   (exit $ac_status); } &&
8900          { ac_try='test -s conftest$ac_exeext'
8901   { (eval echo "$as_me:8901: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:8904: \$? = $ac_status" >&5
8905   (exit $ac_status); }; }; then
8906   eval "$ac_ac_var=yes"
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8910 eval "$ac_ac_var=no"
8911 fi
8912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8913 fi
8914 echo "$as_me:8914: result: `eval echo '${'$ac_ac_var'}'`" >&5
8915 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8916 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8917   cat >>confdefs.h <<EOF
8918 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8919 EOF
8920
8921 fi
8922 done
8923
8924 case "$target" in
8925  *-pc-cygwin*)
8926     ;;
8927  *)
8928 for ac_func in getuid
8929 do
8930 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8931 echo "$as_me:8931: checking for $ac_func" >&5
8932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8933 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8934   echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936   cat >conftest.$ac_ext <<_ACEOF
8937 #line 8937 "configure"
8938 #include "confdefs.h"
8939 /* System header to define __stub macros and hopefully few prototypes,
8940     which can conflict with char $ac_func (); below.  */
8941 #include <assert.h>
8942 /* Override any gcc2 internal prototype to avoid an error.  */
8943 #ifdef __cplusplus
8944 extern "C"
8945 #endif
8946 /* We use char because int might match the return type of a gcc2
8947    builtin and then its argument prototype would still apply.  */
8948 char $ac_func ();
8949 char (*f) ();
8950
8951 int
8952 main ()
8953 {
8954 /* The GNU C library defines this for functions which it implements
8955     to always fail with ENOSYS.  Some functions are actually named
8956     something starting with __ and the normal name is an alias.  */
8957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8958 choke me
8959 #else
8960 f = $ac_func;
8961 #endif
8962
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:8968: \"$ac_link\"") >&5
8969   (eval $ac_link) 2>&5
8970   ac_status=$?
8971   echo "$as_me:8971: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -s conftest$ac_exeext'
8974   { (eval echo "$as_me:8974: \"$ac_try\"") >&5
8975   (eval $ac_try) 2>&5
8976   ac_status=$?
8977   echo "$as_me:8977: \$? = $ac_status" >&5
8978   (exit $ac_status); }; }; then
8979   eval "$ac_ac_var=yes"
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8983 eval "$ac_ac_var=no"
8984 fi
8985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8986 fi
8987 echo "$as_me:8987: result: `eval echo '${'$ac_ac_var'}'`" >&5
8988 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8989 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8990   cat >>confdefs.h <<EOF
8991 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8992 EOF
8993
8994 fi
8995 done
8996
8997     ;;
8998 esac
8999
9000 for ac_func in hstrerror K_open kvm_open memcpy memmove memset
9001 do
9002 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9003 echo "$as_me:9003: checking for $ac_func" >&5
9004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9005 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   cat >conftest.$ac_ext <<_ACEOF
9009 #line 9009 "configure"
9010 #include "confdefs.h"
9011 /* System header to define __stub macros and hopefully few prototypes,
9012     which can conflict with char $ac_func (); below.  */
9013 #include <assert.h>
9014 /* Override any gcc2 internal prototype to avoid an error.  */
9015 #ifdef __cplusplus
9016 extern "C"
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019    builtin and then its argument prototype would still apply.  */
9020 char $ac_func ();
9021 char (*f) ();
9022
9023 int
9024 main ()
9025 {
9026 /* The GNU C library defines this for functions which it implements
9027     to always fail with ENOSYS.  Some functions are actually named
9028     something starting with __ and the normal name is an alias.  */
9029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9030 choke me
9031 #else
9032 f = $ac_func;
9033 #endif
9034
9035   ;
9036   return 0;
9037 }
9038 _ACEOF
9039 rm -f conftest.$ac_objext conftest$ac_exeext
9040 if { (eval echo "$as_me:9040: \"$ac_link\"") >&5
9041   (eval $ac_link) 2>&5
9042   ac_status=$?
9043   echo "$as_me:9043: \$? = $ac_status" >&5
9044   (exit $ac_status); } &&
9045          { ac_try='test -s conftest$ac_exeext'
9046   { (eval echo "$as_me:9046: \"$ac_try\"") >&5
9047   (eval $ac_try) 2>&5
9048   ac_status=$?
9049   echo "$as_me:9049: \$? = $ac_status" >&5
9050   (exit $ac_status); }; }; then
9051   eval "$ac_ac_var=yes"
9052 else
9053   echo "$as_me: failed program was:" >&5
9054 cat conftest.$ac_ext >&5
9055 eval "$ac_ac_var=no"
9056 fi
9057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9058 fi
9059 echo "$as_me:9059: result: `eval echo '${'$ac_ac_var'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9061 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9062   cat >>confdefs.h <<EOF
9063 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9064 EOF
9065
9066 fi
9067 done
9068
9069 case "$target" in
9070  *-*-sco3.2v5.0.*)
9071     # Just stubs.  Idiots.
9072     ;;
9073  *)
9074 for ac_func in mkstemp
9075 do
9076 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9077 echo "$as_me:9077: checking for $ac_func" >&5
9078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9079 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9080   echo $ECHO_N "(cached) $ECHO_C" >&6
9081 else
9082   cat >conftest.$ac_ext <<_ACEOF
9083 #line 9083 "configure"
9084 #include "confdefs.h"
9085 /* System header to define __stub macros and hopefully few prototypes,
9086     which can conflict with char $ac_func (); below.  */
9087 #include <assert.h>
9088 /* Override any gcc2 internal prototype to avoid an error.  */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 /* We use char because int might match the return type of a gcc2
9093    builtin and then its argument prototype would still apply.  */
9094 char $ac_func ();
9095 char (*f) ();
9096
9097 int
9098 main ()
9099 {
9100 /* The GNU C library defines this for functions which it implements
9101     to always fail with ENOSYS.  Some functions are actually named
9102     something starting with __ and the normal name is an alias.  */
9103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9104 choke me
9105 #else
9106 f = $ac_func;
9107 #endif
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (eval echo "$as_me:9114: \"$ac_link\"") >&5
9115   (eval $ac_link) 2>&5
9116   ac_status=$?
9117   echo "$as_me:9117: \$? = $ac_status" >&5
9118   (exit $ac_status); } &&
9119          { ac_try='test -s conftest$ac_exeext'
9120   { (eval echo "$as_me:9120: \"$ac_try\"") >&5
9121   (eval $ac_try) 2>&5
9122   ac_status=$?
9123   echo "$as_me:9123: \$? = $ac_status" >&5
9124   (exit $ac_status); }; }; then
9125   eval "$ac_ac_var=yes"
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 eval "$ac_ac_var=no"
9130 fi
9131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9132 fi
9133 echo "$as_me:9133: result: `eval echo '${'$ac_ac_var'}'`" >&5
9134 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9135 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9136   cat >>confdefs.h <<EOF
9137 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9138 EOF
9139
9140 fi
9141 done
9142
9143     ;;
9144 esac
9145
9146 for ac_func in mktime
9147 do
9148 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9149 echo "$as_me:9149: checking for $ac_func" >&5
9150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9151 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   cat >conftest.$ac_ext <<_ACEOF
9155 #line 9155 "configure"
9156 #include "confdefs.h"
9157 /* System header to define __stub macros and hopefully few prototypes,
9158     which can conflict with char $ac_func (); below.  */
9159 #include <assert.h>
9160 /* Override any gcc2 internal prototype to avoid an error.  */
9161 #ifdef __cplusplus
9162 extern "C"
9163 #endif
9164 /* We use char because int might match the return type of a gcc2
9165    builtin and then its argument prototype would still apply.  */
9166 char $ac_func ();
9167 char (*f) ();
9168
9169 int
9170 main ()
9171 {
9172 /* The GNU C library defines this for functions which it implements
9173     to always fail with ENOSYS.  Some functions are actually named
9174     something starting with __ and the normal name is an alias.  */
9175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9176 choke me
9177 #else
9178 f = $ac_func;
9179 #endif
9180
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:9186: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>&5
9188   ac_status=$?
9189   echo "$as_me:9189: \$? = $ac_status" >&5
9190   (exit $ac_status); } &&
9191          { ac_try='test -s conftest$ac_exeext'
9192   { (eval echo "$as_me:9192: \"$ac_try\"") >&5
9193   (eval $ac_try) 2>&5
9194   ac_status=$?
9195   echo "$as_me:9195: \$? = $ac_status" >&5
9196   (exit $ac_status); }; }; then
9197   eval "$ac_ac_var=yes"
9198 else
9199   echo "$as_me: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 eval "$ac_ac_var=no"
9202 fi
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 fi
9205 echo "$as_me:9205: result: `eval echo '${'$ac_ac_var'}'`" >&5
9206 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9207 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9208   cat >>confdefs.h <<EOF
9209 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9210 EOF
9211
9212 else
9213   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9214 fi
9215 done
9216
9217 case "$target" in
9218  *-*-aix4*)
9219     # Just a stub.  Idiots.
9220     ;;
9221  *-*-irix*)
9222     # Just stubs in Irix.  Idiots.
9223     ;;
9224  *-*-sco3.2v5.0.*)
9225     # Just stubs.  Idiots.
9226     ;;
9227  alpha*-dec-osf4*|alpha*-dec-osf5*)
9228     # mlockall is there, as a #define calling memlk via <sys/mman.h>
9229     # Not easy to test for - cheat.
9230
9231 for ac_func in memlk
9232 do
9233 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9234 echo "$as_me:9234: checking for $ac_func" >&5
9235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9236 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   cat >conftest.$ac_ext <<_ACEOF
9240 #line 9240 "configure"
9241 #include "confdefs.h"
9242 /* System header to define __stub macros and hopefully few prototypes,
9243     which can conflict with char $ac_func (); below.  */
9244 #include <assert.h>
9245 /* Override any gcc2 internal prototype to avoid an error.  */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 /* We use char because int might match the return type of a gcc2
9250    builtin and then its argument prototype would still apply.  */
9251 char $ac_func ();
9252 char (*f) ();
9253
9254 int
9255 main ()
9256 {
9257 /* The GNU C library defines this for functions which it implements
9258     to always fail with ENOSYS.  Some functions are actually named
9259     something starting with __ and the normal name is an alias.  */
9260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9261 choke me
9262 #else
9263 f = $ac_func;
9264 #endif
9265
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (eval echo "$as_me:9271: \"$ac_link\"") >&5
9272   (eval $ac_link) 2>&5
9273   ac_status=$?
9274   echo "$as_me:9274: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -s conftest$ac_exeext'
9277   { (eval echo "$as_me:9277: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:9280: \$? = $ac_status" >&5
9281   (exit $ac_status); }; }; then
9282   eval "$ac_ac_var=yes"
9283 else
9284   echo "$as_me: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9286 eval "$ac_ac_var=no"
9287 fi
9288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9289 fi
9290 echo "$as_me:9290: result: `eval echo '${'$ac_ac_var'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9292 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9293   cat >>confdefs.h <<EOF
9294 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9295 EOF
9296  ac_cv_func_mlockall='yes'
9297 fi
9298 done
9299
9300 for ac_func in mlockall
9301 do
9302 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9303 echo "$as_me:9303: checking for $ac_func" >&5
9304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9305 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   cat >conftest.$ac_ext <<_ACEOF
9309 #line 9309 "configure"
9310 #include "confdefs.h"
9311 /* System header to define __stub macros and hopefully few prototypes,
9312     which can conflict with char $ac_func (); below.  */
9313 #include <assert.h>
9314 /* Override any gcc2 internal prototype to avoid an error.  */
9315 #ifdef __cplusplus
9316 extern "C"
9317 #endif
9318 /* We use char because int might match the return type of a gcc2
9319    builtin and then its argument prototype would still apply.  */
9320 char $ac_func ();
9321 char (*f) ();
9322
9323 int
9324 main ()
9325 {
9326 /* The GNU C library defines this for functions which it implements
9327     to always fail with ENOSYS.  Some functions are actually named
9328     something starting with __ and the normal name is an alias.  */
9329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9330 choke me
9331 #else
9332 f = $ac_func;
9333 #endif
9334
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (eval echo "$as_me:9340: \"$ac_link\"") >&5
9341   (eval $ac_link) 2>&5
9342   ac_status=$?
9343   echo "$as_me:9343: \$? = $ac_status" >&5
9344   (exit $ac_status); } &&
9345          { ac_try='test -s conftest$ac_exeext'
9346   { (eval echo "$as_me:9346: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:9349: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   eval "$ac_ac_var=yes"
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9355 eval "$ac_ac_var=no"
9356 fi
9357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358 fi
9359 echo "$as_me:9359: result: `eval echo '${'$ac_ac_var'}'`" >&5
9360 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9361 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9362   cat >>confdefs.h <<EOF
9363 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9364 EOF
9365
9366 fi
9367 done
9368
9369     ;;
9370  *)
9371 for ac_func in mlockall
9372 do
9373 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9374 echo "$as_me:9374: checking for $ac_func" >&5
9375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9376 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9377   echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379   cat >conftest.$ac_ext <<_ACEOF
9380 #line 9380 "configure"
9381 #include "confdefs.h"
9382 /* System header to define __stub macros and hopefully few prototypes,
9383     which can conflict with char $ac_func (); below.  */
9384 #include <assert.h>
9385 /* Override any gcc2 internal prototype to avoid an error.  */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 /* We use char because int might match the return type of a gcc2
9390    builtin and then its argument prototype would still apply.  */
9391 char $ac_func ();
9392 char (*f) ();
9393
9394 int
9395 main ()
9396 {
9397 /* The GNU C library defines this for functions which it implements
9398     to always fail with ENOSYS.  Some functions are actually named
9399     something starting with __ and the normal name is an alias.  */
9400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9401 choke me
9402 #else
9403 f = $ac_func;
9404 #endif
9405
9406   ;
9407   return 0;
9408 }
9409 _ACEOF
9410 rm -f conftest.$ac_objext conftest$ac_exeext
9411 if { (eval echo "$as_me:9411: \"$ac_link\"") >&5
9412   (eval $ac_link) 2>&5
9413   ac_status=$?
9414   echo "$as_me:9414: \$? = $ac_status" >&5
9415   (exit $ac_status); } &&
9416          { ac_try='test -s conftest$ac_exeext'
9417   { (eval echo "$as_me:9417: \"$ac_try\"") >&5
9418   (eval $ac_try) 2>&5
9419   ac_status=$?
9420   echo "$as_me:9420: \$? = $ac_status" >&5
9421   (exit $ac_status); }; }; then
9422   eval "$ac_ac_var=yes"
9423 else
9424   echo "$as_me: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 eval "$ac_ac_var=no"
9427 fi
9428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9429 fi
9430 echo "$as_me:9430: result: `eval echo '${'$ac_ac_var'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9432 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9433   cat >>confdefs.h <<EOF
9434 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9435 EOF
9436
9437 fi
9438 done
9439
9440     ;;
9441 esac
9442
9443 for ac_func in mrand48 srand48 nice nlist
9444 do
9445 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9446 echo "$as_me:9446: checking for $ac_func" >&5
9447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9448 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   cat >conftest.$ac_ext <<_ACEOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9454 /* System header to define __stub macros and hopefully few prototypes,
9455     which can conflict with char $ac_func (); below.  */
9456 #include <assert.h>
9457 /* Override any gcc2 internal prototype to avoid an error.  */
9458 #ifdef __cplusplus
9459 extern "C"
9460 #endif
9461 /* We use char because int might match the return type of a gcc2
9462    builtin and then its argument prototype would still apply.  */
9463 char $ac_func ();
9464 char (*f) ();
9465
9466 int
9467 main ()
9468 {
9469 /* The GNU C library defines this for functions which it implements
9470     to always fail with ENOSYS.  Some functions are actually named
9471     something starting with __ and the normal name is an alias.  */
9472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9473 choke me
9474 #else
9475 f = $ac_func;
9476 #endif
9477
9478   ;
9479   return 0;
9480 }
9481 _ACEOF
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (eval echo "$as_me:9483: \"$ac_link\"") >&5
9484   (eval $ac_link) 2>&5
9485   ac_status=$?
9486   echo "$as_me:9486: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -s conftest$ac_exeext'
9489   { (eval echo "$as_me:9489: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:9492: \$? = $ac_status" >&5
9493   (exit $ac_status); }; }; then
9494   eval "$ac_ac_var=yes"
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9498 eval "$ac_ac_var=no"
9499 fi
9500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9501 fi
9502 echo "$as_me:9502: result: `eval echo '${'$ac_ac_var'}'`" >&5
9503 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9504 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9505   cat >>confdefs.h <<EOF
9506 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9507 EOF
9508
9509 fi
9510 done
9511
9512 case "$target" in
9513  *-*-solaris2.6)
9514     # Broken...
9515     ;;
9516  *)
9517
9518 for ac_func in ntp_adjtime ntp_gettime
9519 do
9520 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9521 echo "$as_me:9521: checking for $ac_func" >&5
9522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9523 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   cat >conftest.$ac_ext <<_ACEOF
9527 #line 9527 "configure"
9528 #include "confdefs.h"
9529 /* System header to define __stub macros and hopefully few prototypes,
9530     which can conflict with char $ac_func (); below.  */
9531 #include <assert.h>
9532 /* Override any gcc2 internal prototype to avoid an error.  */
9533 #ifdef __cplusplus
9534 extern "C"
9535 #endif
9536 /* We use char because int might match the return type of a gcc2
9537    builtin and then its argument prototype would still apply.  */
9538 char $ac_func ();
9539 char (*f) ();
9540
9541 int
9542 main ()
9543 {
9544 /* The GNU C library defines this for functions which it implements
9545     to always fail with ENOSYS.  Some functions are actually named
9546     something starting with __ and the normal name is an alias.  */
9547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9548 choke me
9549 #else
9550 f = $ac_func;
9551 #endif
9552
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext conftest$ac_exeext
9558 if { (eval echo "$as_me:9558: \"$ac_link\"") >&5
9559   (eval $ac_link) 2>&5
9560   ac_status=$?
9561   echo "$as_me:9561: \$? = $ac_status" >&5
9562   (exit $ac_status); } &&
9563          { ac_try='test -s conftest$ac_exeext'
9564   { (eval echo "$as_me:9564: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:9567: \$? = $ac_status" >&5
9568   (exit $ac_status); }; }; then
9569   eval "$ac_ac_var=yes"
9570 else
9571   echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 eval "$ac_ac_var=no"
9574 fi
9575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9576 fi
9577 echo "$as_me:9577: result: `eval echo '${'$ac_ac_var'}'`" >&5
9578 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9579 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9580   cat >>confdefs.h <<EOF
9581 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9582 EOF
9583
9584 fi
9585 done
9586
9587     ;;
9588 esac
9589
9590 for ac_func in plock pututline pututxline readlink rtprio
9591 do
9592 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9593 echo "$as_me:9593: checking for $ac_func" >&5
9594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9595 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 #line 9599 "configure"
9600 #include "confdefs.h"
9601 /* System header to define __stub macros and hopefully few prototypes,
9602     which can conflict with char $ac_func (); below.  */
9603 #include <assert.h>
9604 /* Override any gcc2 internal prototype to avoid an error.  */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char $ac_func ();
9611 char (*f) ();
9612
9613 int
9614 main ()
9615 {
9616 /* The GNU C library defines this for functions which it implements
9617     to always fail with ENOSYS.  Some functions are actually named
9618     something starting with __ and the normal name is an alias.  */
9619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9620 choke me
9621 #else
9622 f = $ac_func;
9623 #endif
9624
9625   ;
9626   return 0;
9627 }
9628 _ACEOF
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (eval echo "$as_me:9630: \"$ac_link\"") >&5
9631   (eval $ac_link) 2>&5
9632   ac_status=$?
9633   echo "$as_me:9633: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -s conftest$ac_exeext'
9636   { (eval echo "$as_me:9636: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:9639: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   eval "$ac_ac_var=yes"
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 eval "$ac_ac_var=no"
9646 fi
9647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9648 fi
9649 echo "$as_me:9649: result: `eval echo '${'$ac_ac_var'}'`" >&5
9650 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9651 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9652   cat >>confdefs.h <<EOF
9653 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9654 EOF
9655
9656 fi
9657 done
9658
9659 case "$ac_cv_func_mrand48" in
9660  yes) ;;
9661  *)
9662 for ac_func in random
9663 do
9664 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9665 echo "$as_me:9665: checking for $ac_func" >&5
9666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9667 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   cat >conftest.$ac_ext <<_ACEOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9673 /* System header to define __stub macros and hopefully few prototypes,
9674     which can conflict with char $ac_func (); below.  */
9675 #include <assert.h>
9676 /* Override any gcc2 internal prototype to avoid an error.  */
9677 #ifdef __cplusplus
9678 extern "C"
9679 #endif
9680 /* We use char because int might match the return type of a gcc2
9681    builtin and then its argument prototype would still apply.  */
9682 char $ac_func ();
9683 char (*f) ();
9684
9685 int
9686 main ()
9687 {
9688 /* The GNU C library defines this for functions which it implements
9689     to always fail with ENOSYS.  Some functions are actually named
9690     something starting with __ and the normal name is an alias.  */
9691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9692 choke me
9693 #else
9694 f = $ac_func;
9695 #endif
9696
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:9702: \"$ac_link\"") >&5
9703   (eval $ac_link) 2>&5
9704   ac_status=$?
9705   echo "$as_me:9705: \$? = $ac_status" >&5
9706   (exit $ac_status); } &&
9707          { ac_try='test -s conftest$ac_exeext'
9708   { (eval echo "$as_me:9708: \"$ac_try\"") >&5
9709   (eval $ac_try) 2>&5
9710   ac_status=$?
9711   echo "$as_me:9711: \$? = $ac_status" >&5
9712   (exit $ac_status); }; }; then
9713   eval "$ac_ac_var=yes"
9714 else
9715   echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 eval "$ac_ac_var=no"
9718 fi
9719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9720 fi
9721 echo "$as_me:9721: result: `eval echo '${'$ac_ac_var'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9723 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9724   cat >>confdefs.h <<EOF
9725 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9726 EOF
9727
9728 else
9729   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9730 fi
9731 done
9732
9733  ;;
9734 esac
9735 case "$target" in
9736  *-*-aix4*)
9737     # Just a stub in AIX 4.  Idiots.
9738     ;;
9739  *-*-solaris2.5*)
9740     # Just stubs in solaris2.5.  Idiots.
9741     ;;
9742  *)
9743 for ac_func in sched_setscheduler
9744 do
9745 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9746 echo "$as_me:9746: checking for $ac_func" >&5
9747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9748 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 #line 9752 "configure"
9753 #include "confdefs.h"
9754 /* System header to define __stub macros and hopefully few prototypes,
9755     which can conflict with char $ac_func (); below.  */
9756 #include <assert.h>
9757 /* Override any gcc2 internal prototype to avoid an error.  */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 /* We use char because int might match the return type of a gcc2
9762    builtin and then its argument prototype would still apply.  */
9763 char $ac_func ();
9764 char (*f) ();
9765
9766 int
9767 main ()
9768 {
9769 /* The GNU C library defines this for functions which it implements
9770     to always fail with ENOSYS.  Some functions are actually named
9771     something starting with __ and the normal name is an alias.  */
9772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9773 choke me
9774 #else
9775 f = $ac_func;
9776 #endif
9777
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (eval echo "$as_me:9783: \"$ac_link\"") >&5
9784   (eval $ac_link) 2>&5
9785   ac_status=$?
9786   echo "$as_me:9786: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (eval echo "$as_me:9789: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:9792: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   eval "$ac_ac_var=yes"
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9798 eval "$ac_ac_var=no"
9799 fi
9800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9801 fi
9802 echo "$as_me:9802: result: `eval echo '${'$ac_ac_var'}'`" >&5
9803 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9804 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9805   cat >>confdefs.h <<EOF
9806 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9807 EOF
9808
9809 fi
9810 done
9811
9812     ;;
9813 esac
9814
9815 for ac_func in setlinebuf
9816 do
9817 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9818 echo "$as_me:9818: checking for $ac_func" >&5
9819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9820 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   cat >conftest.$ac_ext <<_ACEOF
9824 #line 9824 "configure"
9825 #include "confdefs.h"
9826 /* System header to define __stub macros and hopefully few prototypes,
9827     which can conflict with char $ac_func (); below.  */
9828 #include <assert.h>
9829 /* Override any gcc2 internal prototype to avoid an error.  */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 /* We use char because int might match the return type of a gcc2
9834    builtin and then its argument prototype would still apply.  */
9835 char $ac_func ();
9836 char (*f) ();
9837
9838 int
9839 main ()
9840 {
9841 /* The GNU C library defines this for functions which it implements
9842     to always fail with ENOSYS.  Some functions are actually named
9843     something starting with __ and the normal name is an alias.  */
9844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9845 choke me
9846 #else
9847 f = $ac_func;
9848 #endif
9849
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:9855: \"$ac_link\"") >&5
9856   (eval $ac_link) 2>&5
9857   ac_status=$?
9858   echo "$as_me:9858: \$? = $ac_status" >&5
9859   (exit $ac_status); } &&
9860          { ac_try='test -s conftest$ac_exeext'
9861   { (eval echo "$as_me:9861: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:9864: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   eval "$ac_ac_var=yes"
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9870 eval "$ac_ac_var=no"
9871 fi
9872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9873 fi
9874 echo "$as_me:9874: result: `eval echo '${'$ac_ac_var'}'`" >&5
9875 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9876 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9877   cat >>confdefs.h <<EOF
9878 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9879 EOF
9880
9881 fi
9882 done
9883
9884 for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction
9885 do
9886 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9887 echo "$as_me:9887: checking for $ac_func" >&5
9888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9889 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 #line 9893 "configure"
9894 #include "confdefs.h"
9895 /* System header to define __stub macros and hopefully few prototypes,
9896     which can conflict with char $ac_func (); below.  */
9897 #include <assert.h>
9898 /* Override any gcc2 internal prototype to avoid an error.  */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 /* We use char because int might match the return type of a gcc2
9903    builtin and then its argument prototype would still apply.  */
9904 char $ac_func ();
9905 char (*f) ();
9906
9907 int
9908 main ()
9909 {
9910 /* The GNU C library defines this for functions which it implements
9911     to always fail with ENOSYS.  Some functions are actually named
9912     something starting with __ and the normal name is an alias.  */
9913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9914 choke me
9915 #else
9916 f = $ac_func;
9917 #endif
9918
9919   ;
9920   return 0;
9921 }
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (eval echo "$as_me:9924: \"$ac_link\"") >&5
9925   (eval $ac_link) 2>&5
9926   ac_status=$?
9927   echo "$as_me:9927: \$? = $ac_status" >&5
9928   (exit $ac_status); } &&
9929          { ac_try='test -s conftest$ac_exeext'
9930   { (eval echo "$as_me:9930: \"$ac_try\"") >&5
9931   (eval $ac_try) 2>&5
9932   ac_status=$?
9933   echo "$as_me:9933: \$? = $ac_status" >&5
9934   (exit $ac_status); }; }; then
9935   eval "$ac_ac_var=yes"
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 eval "$ac_ac_var=no"
9940 fi
9941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9942 fi
9943 echo "$as_me:9943: result: `eval echo '${'$ac_ac_var'}'`" >&5
9944 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9945 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9946   cat >>confdefs.h <<EOF
9947 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9948 EOF
9949
9950 fi
9951 done
9952
9953 for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
9954 do
9955 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9956 echo "$as_me:9956: checking for $ac_func" >&5
9957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9958 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   cat >conftest.$ac_ext <<_ACEOF
9962 #line 9962 "configure"
9963 #include "confdefs.h"
9964 /* System header to define __stub macros and hopefully few prototypes,
9965     which can conflict with char $ac_func (); below.  */
9966 #include <assert.h>
9967 /* Override any gcc2 internal prototype to avoid an error.  */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 /* We use char because int might match the return type of a gcc2
9972    builtin and then its argument prototype would still apply.  */
9973 char $ac_func ();
9974 char (*f) ();
9975
9976 int
9977 main ()
9978 {
9979 /* The GNU C library defines this for functions which it implements
9980     to always fail with ENOSYS.  Some functions are actually named
9981     something starting with __ and the normal name is an alias.  */
9982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9983 choke me
9984 #else
9985 f = $ac_func;
9986 #endif
9987
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (eval echo "$as_me:9993: \"$ac_link\"") >&5
9994   (eval $ac_link) 2>&5
9995   ac_status=$?
9996   echo "$as_me:9996: \$? = $ac_status" >&5
9997   (exit $ac_status); } &&
9998          { ac_try='test -s conftest$ac_exeext'
9999   { (eval echo "$as_me:9999: \"$ac_try\"") >&5
10000   (eval $ac_try) 2>&5
10001   ac_status=$?
10002   echo "$as_me:10002: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   eval "$ac_ac_var=yes"
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 eval "$ac_ac_var=no"
10009 fi
10010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10011 fi
10012 echo "$as_me:10012: result: `eval echo '${'$ac_ac_var'}'`" >&5
10013 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10014 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10015   cat >>confdefs.h <<EOF
10016 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10017 EOF
10018
10019 fi
10020 done
10021
10022 for ac_func in snprintf strdup strerror
10023 do
10024 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10025 echo "$as_me:10025: checking for $ac_func" >&5
10026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10027 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10028   echo $ECHO_N "(cached) $ECHO_C" >&6
10029 else
10030   cat >conftest.$ac_ext <<_ACEOF
10031 #line 10031 "configure"
10032 #include "confdefs.h"
10033 /* System header to define __stub macros and hopefully few prototypes,
10034     which can conflict with char $ac_func (); below.  */
10035 #include <assert.h>
10036 /* Override any gcc2 internal prototype to avoid an error.  */
10037 #ifdef __cplusplus
10038 extern "C"
10039 #endif
10040 /* We use char because int might match the return type of a gcc2
10041    builtin and then its argument prototype would still apply.  */
10042 char $ac_func ();
10043 char (*f) ();
10044
10045 int
10046 main ()
10047 {
10048 /* The GNU C library defines this for functions which it implements
10049     to always fail with ENOSYS.  Some functions are actually named
10050     something starting with __ and the normal name is an alias.  */
10051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10052 choke me
10053 #else
10054 f = $ac_func;
10055 #endif
10056
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:10062: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>&5
10064   ac_status=$?
10065   echo "$as_me:10065: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -s conftest$ac_exeext'
10068   { (eval echo "$as_me:10068: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:10071: \$? = $ac_status" >&5
10072   (exit $ac_status); }; }; then
10073   eval "$ac_ac_var=yes"
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 eval "$ac_ac_var=no"
10078 fi
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10080 fi
10081 echo "$as_me:10081: result: `eval echo '${'$ac_ac_var'}'`" >&5
10082 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10083 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10084   cat >>confdefs.h <<EOF
10085 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10086 EOF
10087
10088 else
10089   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10090 fi
10091 done
10092
10093 case "$target" in
10094  *-*-aix4*)
10095     # Just stubs.  Idiots.
10096     ;;
10097  *-*-netbsd*)
10098     # Just stubs.  Idiots.
10099     ;;
10100  *-*-openbsd*)
10101     # Just stubs.  Idiots.
10102     ;;
10103  *)
10104
10105 for ac_func in timer_create timer_settime
10106 do
10107 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10108 echo "$as_me:10108: checking for $ac_func" >&5
10109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10110 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 #line 10114 "configure"
10115 #include "confdefs.h"
10116 /* System header to define __stub macros and hopefully few prototypes,
10117     which can conflict with char $ac_func (); below.  */
10118 #include <assert.h>
10119 /* Override any gcc2 internal prototype to avoid an error.  */
10120 #ifdef __cplusplus
10121 extern "C"
10122 #endif
10123 /* We use char because int might match the return type of a gcc2
10124    builtin and then its argument prototype would still apply.  */
10125 char $ac_func ();
10126 char (*f) ();
10127
10128 int
10129 main ()
10130 {
10131 /* The GNU C library defines this for functions which it implements
10132     to always fail with ENOSYS.  Some functions are actually named
10133     something starting with __ and the normal name is an alias.  */
10134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10135 choke me
10136 #else
10137 f = $ac_func;
10138 #endif
10139
10140   ;
10141   return 0;
10142 }
10143 _ACEOF
10144 rm -f conftest.$ac_objext conftest$ac_exeext
10145 if { (eval echo "$as_me:10145: \"$ac_link\"") >&5
10146   (eval $ac_link) 2>&5
10147   ac_status=$?
10148   echo "$as_me:10148: \$? = $ac_status" >&5
10149   (exit $ac_status); } &&
10150          { ac_try='test -s conftest$ac_exeext'
10151   { (eval echo "$as_me:10151: \"$ac_try\"") >&5
10152   (eval $ac_try) 2>&5
10153   ac_status=$?
10154   echo "$as_me:10154: \$? = $ac_status" >&5
10155   (exit $ac_status); }; }; then
10156   eval "$ac_ac_var=yes"
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 eval "$ac_ac_var=no"
10161 fi
10162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10163 fi
10164 echo "$as_me:10164: result: `eval echo '${'$ac_ac_var'}'`" >&5
10165 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10166 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10167   cat >>confdefs.h <<EOF
10168 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10169 EOF
10170
10171 fi
10172 done
10173
10174     ;;
10175 esac
10176 case "$target" in
10177  *-pc-cygwin*)
10178     # I have no idea...
10179     ;;
10180  *)
10181 for ac_func in umask
10182 do
10183 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10184 echo "$as_me:10184: checking for $ac_func" >&5
10185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10186 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   cat >conftest.$ac_ext <<_ACEOF
10190 #line 10190 "configure"
10191 #include "confdefs.h"
10192 /* System header to define __stub macros and hopefully few prototypes,
10193     which can conflict with char $ac_func (); below.  */
10194 #include <assert.h>
10195 /* Override any gcc2 internal prototype to avoid an error.  */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 /* We use char because int might match the return type of a gcc2
10200    builtin and then its argument prototype would still apply.  */
10201 char $ac_func ();
10202 char (*f) ();
10203
10204 int
10205 main ()
10206 {
10207 /* The GNU C library defines this for functions which it implements
10208     to always fail with ENOSYS.  Some functions are actually named
10209     something starting with __ and the normal name is an alias.  */
10210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211 choke me
10212 #else
10213 f = $ac_func;
10214 #endif
10215
10216   ;
10217   return 0;
10218 }
10219 _ACEOF
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (eval echo "$as_me:10221: \"$ac_link\"") >&5
10222   (eval $ac_link) 2>&5
10223   ac_status=$?
10224   echo "$as_me:10224: \$? = $ac_status" >&5
10225   (exit $ac_status); } &&
10226          { ac_try='test -s conftest$ac_exeext'
10227   { (eval echo "$as_me:10227: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:10230: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   eval "$ac_ac_var=yes"
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 eval "$ac_ac_var=no"
10237 fi
10238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10239 fi
10240 echo "$as_me:10240: result: `eval echo '${'$ac_ac_var'}'`" >&5
10241 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10242 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10243   cat >>confdefs.h <<EOF
10244 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10245 EOF
10246
10247 fi
10248 done
10249
10250     ;;
10251 esac
10252
10253 for ac_func in uname updwtmp updwtmpx vsprintf
10254 do
10255 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10256 echo "$as_me:10256: checking for $ac_func" >&5
10257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10258 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10259   echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261   cat >conftest.$ac_ext <<_ACEOF
10262 #line 10262 "configure"
10263 #include "confdefs.h"
10264 /* System header to define __stub macros and hopefully few prototypes,
10265     which can conflict with char $ac_func (); below.  */
10266 #include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error.  */
10268 #ifdef __cplusplus
10269 extern "C"
10270 #endif
10271 /* We use char because int might match the return type of a gcc2
10272    builtin and then its argument prototype would still apply.  */
10273 char $ac_func ();
10274 char (*f) ();
10275
10276 int
10277 main ()
10278 {
10279 /* The GNU C library defines this for functions which it implements
10280     to always fail with ENOSYS.  Some functions are actually named
10281     something starting with __ and the normal name is an alias.  */
10282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10283 choke me
10284 #else
10285 f = $ac_func;
10286 #endif
10287
10288   ;
10289   return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (eval echo "$as_me:10293: \"$ac_link\"") >&5
10294   (eval $ac_link) 2>&5
10295   ac_status=$?
10296   echo "$as_me:10296: \$? = $ac_status" >&5
10297   (exit $ac_status); } &&
10298          { ac_try='test -s conftest$ac_exeext'
10299   { (eval echo "$as_me:10299: \"$ac_try\"") >&5
10300   (eval $ac_try) 2>&5
10301   ac_status=$?
10302   echo "$as_me:10302: \$? = $ac_status" >&5
10303   (exit $ac_status); }; }; then
10304   eval "$ac_ac_var=yes"
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10308 eval "$ac_ac_var=no"
10309 fi
10310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10311 fi
10312 echo "$as_me:10312: result: `eval echo '${'$ac_ac_var'}'`" >&5
10313 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10314 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10315   cat >>confdefs.h <<EOF
10316 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10317 EOF
10318
10319 fi
10320 done
10321
10322 echo "$as_me:10322: checking number of arguments to gettimeofday()" >&5
10323 echo $ECHO_N "checking number of arguments to gettimeofday()... $ECHO_C" >&6
10324 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   cat >conftest.$ac_ext <<_ACEOF
10328 #line 10328 "configure"
10329 #include "confdefs.h"
10330 #include <sys/time.h>
10331 int
10332 main ()
10333 {
10334
10335 gettimeofday((struct timeval*)0,(struct timezone*)0);
10336 settimeofday((struct timeval*)0,(struct timezone*)0);
10337
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:10343: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>&5
10345   ac_status=$?
10346   echo "$as_me:10346: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -s conftest.$ac_objext'
10349   { (eval echo "$as_me:10349: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:10352: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   ac_cv_func_Xettimeofday_nargs=2
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 ac_cv_func_Xettimeofday_nargs=1
10359 fi
10360 rm -f conftest.$ac_objext conftest.$ac_ext
10361
10362 fi
10363 echo "$as_me:10363: result: $ac_cv_func_Xettimeofday_nargs" >&5
10364 echo "${ECHO_T}$ac_cv_func_Xettimeofday_nargs" >&6
10365 if test $ac_cv_func_Xettimeofday_nargs = 1; then
10366         cat >>confdefs.h <<\EOF
10367 #define SYSV_TIMEOFDAY 1
10368 EOF
10369
10370 fi
10371
10372 echo "$as_me:10372: checking number of arguments taken by setpgrp()" >&5
10373 echo $ECHO_N "checking number of arguments taken by setpgrp()... $ECHO_C" >&6
10374 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   cat >conftest.$ac_ext <<_ACEOF
10378 #line 10378 "configure"
10379 #include "confdefs.h"
10380
10381 #ifdef HAVE_SYS_TYPES_H
10382 # include <sys/types.h>
10383 #endif
10384 #ifdef HAVE_UNISTD_H
10385 # include <unistd.h>
10386 #endif
10387
10388 int
10389 main ()
10390 {
10391 setpgrp(0,0);
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:10397: \"$ac_compile\"") >&5
10398   (eval $ac_compile) 2>&5
10399   ac_status=$?
10400   echo "$as_me:10400: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -s conftest.$ac_objext'
10403   { (eval echo "$as_me:10403: \"$ac_try\"") >&5
10404   (eval $ac_try) 2>&5
10405   ac_status=$?
10406   echo "$as_me:10406: \$? = $ac_status" >&5
10407   (exit $ac_status); }; }; then
10408   ac_cv_func_setpgrp_nargs=2
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10412 ac_cv_func_setpgrp_nargs=0
10413 fi
10414 rm -f conftest.$ac_objext conftest.$ac_ext
10415
10416 fi
10417 echo "$as_me:10417: result: $ac_cv_func_setpgrp_nargs" >&5
10418 echo "${ECHO_T}$ac_cv_func_setpgrp_nargs" >&6
10419 if test $ac_cv_func_setpgrp_nargs = 0; then
10420         cat >>confdefs.h <<\EOF
10421 #define HAVE_SETPGRP_0 1
10422 EOF
10423
10424 fi
10425
10426 save_CFLAGS=$CFLAGS
10427 CFLAGS="$CFLAGS -I$srcdir/include"
10428
10429 echo "$as_me:10429: checking argument pointer type of qsort()'s compare function and base" >&5
10430 echo $ECHO_N "checking argument pointer type of qsort()'s compare function and base... $ECHO_C" >&6
10431 if test "${ac_cv_func_qsort_argtype+set}" = set; then
10432   echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434   cat >conftest.$ac_ext <<_ACEOF
10435 #line 10435 "configure"
10436 #include "confdefs.h"
10437
10438 #include "l_stdlib.h"
10439
10440 #ifdef HAVE_PROTOTYPES
10441 #define P(x) x
10442 #else
10443 #define P(x) ()
10444 #endif
10445
10446 extern void *base;
10447 extern sortfunc P((const void *, const void *));
10448 int sortfunc(a, b)
10449   const void *a;
10450   const void *b; { return 0; }
10451
10452 int
10453 main ()
10454 {
10455
10456 qsort(base, 2, sizeof(char *), sortfunc);
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext
10463 if { (eval echo "$as_me:10463: \"$ac_compile\"") >&5
10464   (eval $ac_compile) 2>&5
10465   ac_status=$?
10466   echo "$as_me:10466: \$? = $ac_status" >&5
10467   (exit $ac_status); } &&
10468          { ac_try='test -s conftest.$ac_objext'
10469   { (eval echo "$as_me:10469: \"$ac_try\"") >&5
10470   (eval $ac_try) 2>&5
10471   ac_status=$?
10472   echo "$as_me:10472: \$? = $ac_status" >&5
10473   (exit $ac_status); }; }; then
10474   ac_cv_func_qsort_argtype=void
10475 else
10476   echo "$as_me: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10478 ac_cv_func_qsort_argtype=char
10479 fi
10480 rm -f conftest.$ac_objext conftest.$ac_ext
10481
10482 fi
10483 echo "$as_me:10483: result: $ac_cv_func_qsort_argtype" >&5
10484 echo "${ECHO_T}$ac_cv_func_qsort_argtype" >&6
10485 case "$ac_cv_func_qsort_argtype" in
10486  void)
10487     cat >>confdefs.h <<\EOF
10488 #define QSORT_USES_VOID_P 1
10489 EOF
10490
10491     ;;
10492 esac
10493
10494 CFLAGS=$save_CFLAGS
10495
10496 echo "$as_me:10496: checking if we need to declare 'errno'" >&5
10497 echo $ECHO_N "checking if we need to declare 'errno'... $ECHO_C" >&6
10498 if test "${ac_cv_decl_errno+set}" = set; then
10499   echo $ECHO_N "(cached) $ECHO_C" >&6
10500 else
10501   cat >conftest.$ac_ext <<_ACEOF
10502 #line 10502 "configure"
10503 #include "confdefs.h"
10504 #ifdef HAVE_ERRNO_H
10505 #include <errno.h>
10506 #endif
10507 int
10508 main ()
10509 {
10510 errno = 0;
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:10516: \"$ac_compile\"") >&5
10517   (eval $ac_compile) 2>&5
10518   ac_status=$?
10519   echo "$as_me:10519: \$? = $ac_status" >&5
10520   (exit $ac_status); } &&
10521          { ac_try='test -s conftest.$ac_objext'
10522   { (eval echo "$as_me:10522: \"$ac_try\"") >&5
10523   (eval $ac_try) 2>&5
10524   ac_status=$?
10525   echo "$as_me:10525: \$? = $ac_status" >&5
10526   (exit $ac_status); }; }; then
10527   ac_cv_decl_errno=no
10528 else
10529   echo "$as_me: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 ac_cv_decl_errno=yes
10532 fi
10533 rm -f conftest.$ac_objext conftest.$ac_ext
10534 fi
10535 echo "$as_me:10535: result: $ac_cv_decl_errno" >&5
10536 echo "${ECHO_T}$ac_cv_decl_errno" >&6
10537 case "$ac_cv_decl_errno" in
10538  yes) cat >>confdefs.h <<\EOF
10539 #define DECL_ERRNO 1
10540 EOF
10541  ;;
10542 esac
10543
10544 echo "$as_me:10544: checking if we may declare 'h_errno'" >&5
10545 echo $ECHO_N "checking if we may declare 'h_errno'... $ECHO_C" >&6
10546 if test "${ac_cv_decl_h_errno+set}" = set; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549   cat >conftest.$ac_ext <<_ACEOF
10550 #line 10550 "configure"
10551 #include "confdefs.h"
10552 #include <sys/types.h>
10553 #ifdef HAVE_NETINET_IN_H
10554 #include <netinet/in.h>
10555 #endif
10556 #ifdef HAVE_ARPA_NAMESER_H
10557 #include <arpa/nameser.h>
10558 #endif
10559 #ifdef HAVE_NETDB_H
10560 #include <netdb.h>
10561 #endif
10562 #ifdef HAVE_RESOLV_H
10563 #include <resolv.h>
10564 #endif
10565 int
10566 main ()
10567 {
10568 extern int h_errno;
10569   ;
10570   return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext
10574 if { (eval echo "$as_me:10574: \"$ac_compile\"") >&5
10575   (eval $ac_compile) 2>&5
10576   ac_status=$?
10577   echo "$as_me:10577: \$? = $ac_status" >&5
10578   (exit $ac_status); } &&
10579          { ac_try='test -s conftest.$ac_objext'
10580   { (eval echo "$as_me:10580: \"$ac_try\"") >&5
10581   (eval $ac_try) 2>&5
10582   ac_status=$?
10583   echo "$as_me:10583: \$? = $ac_status" >&5
10584   (exit $ac_status); }; }; then
10585   ac_cv_decl_h_errno=yes
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 ac_cv_decl_h_errno=no
10590 fi
10591 rm -f conftest.$ac_objext conftest.$ac_ext
10592 fi
10593 echo "$as_me:10593: result: $ac_cv_decl_h_errno" >&5
10594 echo "${ECHO_T}$ac_cv_decl_h_errno" >&6
10595 case "$ac_cv_decl_h_errno" in
10596  yes) cat >>confdefs.h <<\EOF
10597 #define DECL_H_ERRNO 1
10598 EOF
10599  ;;
10600 esac
10601
10602 echo "$as_me:10602: checking if declaring 'char *sys_errlist[]' is ok" >&5
10603 echo $ECHO_N "checking if declaring 'char *sys_errlist[]' is ok... $ECHO_C" >&6
10604 if test "${ac_cv_decl_sys_errlist+set}" = set; then
10605   echo $ECHO_N "(cached) $ECHO_C" >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 #line 10608 "configure"
10609 #include "confdefs.h"
10610 #include <stdio.h>
10611 #ifdef HAVE_ERRNO_H
10612 #include <errno.h>
10613 #endif
10614 int
10615 main ()
10616 {
10617 extern char *sys_errlist[];
10618
10619   ;
10620   return 0;
10621 }
10622 _ACEOF
10623 rm -f conftest.$ac_objext
10624 if { (eval echo "$as_me:10624: \"$ac_compile\"") >&5
10625   (eval $ac_compile) 2>&5
10626   ac_status=$?
10627   echo "$as_me:10627: \$? = $ac_status" >&5
10628   (exit $ac_status); } &&
10629          { ac_try='test -s conftest.$ac_objext'
10630   { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631   (eval $ac_try) 2>&5
10632   ac_status=$?
10633   echo "$as_me:10633: \$? = $ac_status" >&5
10634   (exit $ac_status); }; }; then
10635   ac_cv_decl_sys_errlist=yes
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 ac_cv_decl_sys_errlist=no
10640 fi
10641 rm -f conftest.$ac_objext conftest.$ac_ext
10642 fi
10643 echo "$as_me:10643: result: $ac_cv_decl_sys_errlist" >&5
10644 echo "${ECHO_T}$ac_cv_decl_sys_errlist" >&6
10645 case "$ac_cv_decl_sys_errlist" in
10646  yes) cat >>confdefs.h <<\EOF
10647 #define CHAR_SYS_ERRLIST 1
10648 EOF
10649  ;;
10650 esac
10651
10652 echo "$as_me:10652: checking if declaring 'syscall()' is ok" >&5
10653 echo $ECHO_N "checking if declaring 'syscall()' is ok... $ECHO_C" >&6
10654 if test "${ac_cv_decl_syscall+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   cat >conftest.$ac_ext <<_ACEOF
10658 #line 10658 "configure"
10659 #include "confdefs.h"
10660
10661 #ifdef HAVE_SYS_TYPES_H
10662 # include <sys/types.h>
10663 #endif
10664 #ifdef HAVE_UNISTD_H
10665 # include <unistd.h>
10666 #endif
10667 #ifdef HAVE_PROTOTYPES
10668 #define P(x) x
10669 #else
10670 #define P(x) ()
10671 #endif
10672
10673 int
10674 main ()
10675 {
10676 extern int syscall P((int, ...));
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5
10683   (eval $ac_compile) 2>&5
10684   ac_status=$?
10685   echo "$as_me:10685: \$? = $ac_status" >&5
10686   (exit $ac_status); } &&
10687          { ac_try='test -s conftest.$ac_objext'
10688   { (eval echo "$as_me:10688: \"$ac_try\"") >&5
10689   (eval $ac_try) 2>&5
10690   ac_status=$?
10691   echo "$as_me:10691: \$? = $ac_status" >&5
10692   (exit $ac_status); }; }; then
10693   ac_cv_decl_syscall=yes
10694 else
10695   echo "$as_me: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10697 ac_cv_decl_syscall=no
10698 fi
10699 rm -f conftest.$ac_objext conftest.$ac_ext
10700 fi
10701 echo "$as_me:10701: result: $ac_cv_decl_syscall" >&5
10702 echo "${ECHO_T}$ac_cv_decl_syscall" >&6
10703 case "$ac_cv_decl_syscall" in
10704  yes) cat >>confdefs.h <<\EOF
10705 #define DECL_SYSCALL 1
10706 EOF
10707  ;;
10708 esac
10709
10710 case "$target" in
10711  *-*-aix4.3.*)
10712     cat >>confdefs.h <<\EOF
10713 #define DECL_HSTRERROR_0 1
10714 EOF
10715                 # Needed for XLC under AIX 4.3.2
10716     ;;
10717  *-*-osf[45]*)
10718     cat >>confdefs.h <<\EOF
10719 #define DECL_PLOCK_0 1
10720 EOF
10721
10722     cat >>confdefs.h <<\EOF
10723 #define DECL_STIME_1 1
10724 EOF
10725
10726     ;;
10727  *-*-riscos4*)
10728     cat >>confdefs.h <<\EOF
10729 #define DECL_ADJTIME_0 1
10730 EOF
10731
10732     cat >>confdefs.h <<\EOF
10733 #define DECL_BZERO_0 1
10734 EOF
10735
10736     cat >>confdefs.h <<\EOF
10737 #define DECL_IOCTL_0 1
10738 EOF
10739
10740     cat >>confdefs.h <<\EOF
10741 #define DECL_IPC_0 1
10742 EOF
10743
10744     cat >>confdefs.h <<\EOF
10745 #define DECL_MEMMOVE_0 1
10746 EOF
10747
10748     cat >>confdefs.h <<\EOF
10749 #define DECL_MKTEMP_0 1
10750 EOF
10751
10752     cat >>confdefs.h <<\EOF
10753 #define DECL_RENAME_0 1
10754 EOF
10755
10756     cat >>confdefs.h <<\EOF
10757 #define DECL_SELECT_0 1
10758 EOF
10759
10760     cat >>confdefs.h <<\EOF
10761 #define DECL_SETITIMER_0 1
10762 EOF
10763
10764     cat >>confdefs.h <<\EOF
10765 #define DECL_SETPRIORITY_0 1
10766 EOF
10767
10768     cat >>confdefs.h <<\EOF
10769 #define DECL_STDIO_0 1
10770 EOF
10771
10772     cat >>confdefs.h <<\EOF
10773 #define DECL_STRTOL_0 1
10774 EOF
10775
10776     cat >>confdefs.h <<\EOF
10777 #define DECL_SYSLOG_0 1
10778 EOF
10779
10780     cat >>confdefs.h <<\EOF
10781 #define DECL_TIME_0 1
10782 EOF
10783
10784     cat >>confdefs.h <<\EOF
10785 #define DECL_TIMEOFDAY_0 1
10786 EOF
10787
10788     cat >>confdefs.h <<\EOF
10789 #define DECL_TOLOWER_0 1
10790 EOF
10791
10792     ;;
10793  *-*-solaris2*)
10794     cat >>confdefs.h <<\EOF
10795 #define DECL_MKSTEMP_0 1
10796 EOF
10797
10798     cat >>confdefs.h <<\EOF
10799 #define DECL_SETPRIORITY_1 1
10800 EOF
10801
10802     case "$target" in
10803      *-*-solaris2.4)
10804         cat >>confdefs.h <<\EOF
10805 #define DECL_TIMEOFDAY_0 1
10806 EOF
10807
10808         ;;
10809     esac
10810     ;;
10811  *-*-sunos4*)
10812     cat >>confdefs.h <<\EOF
10813 #define DECL_ADJTIME_0 1
10814 EOF
10815
10816     cat >>confdefs.h <<\EOF
10817 #define DECL_BCOPY_0 1
10818 EOF
10819
10820     cat >>confdefs.h <<\EOF
10821 #define DECL_BZERO_0 1
10822 EOF
10823
10824     cat >>confdefs.h <<\EOF
10825 #define DECL_IOCTL_0 1
10826 EOF
10827
10828     cat >>confdefs.h <<\EOF
10829 #define DECL_IPC_0 1
10830 EOF
10831
10832     cat >>confdefs.h <<\EOF
10833 #define DECL_MEMMOVE_0 1
10834 EOF
10835
10836     cat >>confdefs.h <<\EOF
10837 #define DECL_MKTEMP_0 1
10838 EOF
10839
10840     cat >>confdefs.h <<\EOF
10841 #define DECL_MKSTEMP_0 1
10842 EOF
10843
10844     cat >>confdefs.h <<\EOF
10845 #define DECL_MRAND48_0 1
10846 EOF
10847
10848     cat >>confdefs.h <<\EOF
10849 #define DECL_RENAME_0 1
10850 EOF
10851
10852     cat >>confdefs.h <<\EOF
10853 #define DECL_SELECT_0 1
10854 EOF
10855
10856     cat >>confdefs.h <<\EOF
10857 #define DECL_SETITIMER_0 1
10858 EOF
10859
10860     cat >>confdefs.h <<\EOF
10861 #define DECL_SETPRIORITY_0 1
10862 EOF
10863
10864     cat >>confdefs.h <<\EOF
10865 #define DECL_SIGVEC_0 1
10866 EOF
10867
10868     cat >>confdefs.h <<\EOF
10869 #define DECL_SRAND48_0 1
10870 EOF
10871
10872     case "`basename $ac_cv_prog_CC`" in
10873      acc*) ;;
10874      *) cat >>confdefs.h <<\EOF
10875 #define DECL_STDIO_0 1
10876 EOF
10877
10878         ;;
10879     esac
10880     cat >>confdefs.h <<\EOF
10881 #define DECL_STRTOL_0 1
10882 EOF
10883
10884     cat >>confdefs.h <<\EOF
10885 #define DECL_SYSLOG_0 1
10886 EOF
10887
10888     cat >>confdefs.h <<\EOF
10889 #define DECL_TIME_0 1
10890 EOF
10891
10892     cat >>confdefs.h <<\EOF
10893 #define DECL_TIMEOFDAY_0 1
10894 EOF
10895
10896     cat >>confdefs.h <<\EOF
10897 #define DECL_TOLOWER_0 1
10898 EOF
10899
10900     cat >>confdefs.h <<\EOF
10901 #define DECL_TOUPPER_0 1
10902 EOF
10903
10904     cat >>confdefs.h <<\EOF
10905 #define DECL_STRERROR_0 1
10906 EOF
10907
10908     ;;
10909  *-*-ultrix4*)
10910     cat >>confdefs.h <<\EOF
10911 #define DECL_ADJTIME_0 1
10912 EOF
10913
10914     cat >>confdefs.h <<\EOF
10915 #define DECL_BZERO_0 1
10916 EOF
10917
10918     cat >>confdefs.h <<\EOF
10919 #define DECL_CFSETISPEED_0 1
10920 EOF
10921
10922     cat >>confdefs.h <<\EOF
10923 #define DECL_IOCTL_0 1
10924 EOF
10925
10926     cat >>confdefs.h <<\EOF
10927 #define DECL_IPC_0 1
10928 EOF
10929
10930     cat >>confdefs.h <<\EOF
10931 #define DECL_MKTEMP_0 1
10932 EOF
10933
10934     cat >>confdefs.h <<\EOF
10935 #define DECL_MRAND48_0 1
10936 EOF
10937
10938     cat >>confdefs.h <<\EOF
10939 #define DECL_NLIST_0 1
10940 EOF
10941
10942     cat >>confdefs.h <<\EOF
10943 #define DECL_PLOCK_0 1
10944 EOF
10945
10946     cat >>confdefs.h <<\EOF
10947 #define DECL_SELECT_0 1
10948 EOF
10949
10950     cat >>confdefs.h <<\EOF
10951 #define DECL_SETITIMER_0 1
10952 EOF
10953
10954     cat >>confdefs.h <<\EOF
10955 #define DECL_SETPRIORITY_0 1
10956 EOF
10957
10958     cat >>confdefs.h <<\EOF
10959 #define DECL_SRAND48_0 1
10960 EOF
10961
10962     cat >>confdefs.h <<\EOF
10963 #define DECL_STIME_0 1
10964 EOF
10965
10966     cat >>confdefs.h <<\EOF
10967 #define DECL_SYSLOG_0 1
10968 EOF
10969
10970     cat >>confdefs.h <<\EOF
10971 #define DECL_TIMEOFDAY_0 1
10972 EOF
10973
10974     ;;
10975 esac
10976
10977 case "$target" in
10978  *-*-sco3.2*)
10979     cat >>confdefs.h <<\EOF
10980 #define TERMIOS_NEEDS__SVID3 1
10981 EOF
10982
10983     ;;
10984 esac
10985
10986 echo "$as_me:10986: checking if we should use a streams device for ifconfig" >&5
10987 echo $ECHO_N "checking if we should use a streams device for ifconfig... $ECHO_C" >&6
10988 if test "${ac_cv_var_use_streams_device_for_ifconfig+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   ac_cv_var_use_streams_device_for_ifconfig=no
10992 fi
10993 echo "$as_me:10993: result: $ac_cv_var_use_streams_device_for_ifconfig" >&5
10994 echo "${ECHO_T}$ac_cv_var_use_streams_device_for_ifconfig" >&6
10995
10996 echo "$as_me:10996: checking if we need extra room for SO_RCVBUF" >&5
10997 echo $ECHO_N "checking if we need extra room for SO_RCVBUF... $ECHO_C" >&6
10998 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   ans=no
11002 case "$target" in
11003  *-*-hpux[567]*)
11004     ans=yes
11005     ;;
11006 esac
11007 ac_cv_var_rcvbuf_slop=$ans
11008 fi
11009 echo "$as_me:11009: result: $ac_cv_var_rcvbuf_slop" >&5
11010 echo "${ECHO_T}$ac_cv_var_rcvbuf_slop" >&6
11011 case "$ac_cv_var_rcvbuf_slop" in
11012  yes) cat >>confdefs.h <<\EOF
11013 #define NEED_RCVBUF_SLOP 1
11014 EOF
11015  ;;
11016 esac
11017
11018 echo "$as_me:11018: checking if we will open the broadcast socket" >&5
11019 echo $ECHO_N "checking if we will open the broadcast socket... $ECHO_C" >&6
11020 if test "${ac_cv_var_open_bcast_socket+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   ans=yes
11024 case "$target" in
11025  *-*-domainos)
11026     ans=no
11027     ;;
11028  *-*-linux*)
11029     ans=no
11030     ;;
11031 esac
11032 ac_cv_var_open_bcast_socket=$ans
11033 fi
11034 echo "$as_me:11034: result: $ac_cv_var_open_bcast_socket" >&5
11035 echo "${ECHO_T}$ac_cv_var_open_bcast_socket" >&6
11036 case "$ac_cv_var_open_bcast_socket" in
11037  yes) cat >>confdefs.h <<\EOF
11038 #define OPEN_BCAST_SOCKET 1
11039 EOF
11040  ;;
11041 esac
11042
11043 echo "$as_me:11043: checking if we want the HPUX version of FindConfig()" >&5
11044 echo $ECHO_N "checking if we want the HPUX version of FindConfig()... $ECHO_C" >&6
11045 if test "${ac_cv_var_hpux_findconfig+set}" = set; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048   ans=no
11049 case "$target" in
11050  *-*-hpux*)
11051     ans=yes
11052     ;;
11053 esac
11054 ac_cv_var_hpux_findconfig=$ans
11055 fi
11056 echo "$as_me:11056: result: $ac_cv_var_hpux_findconfig" >&5
11057 echo "${ECHO_T}$ac_cv_var_hpux_findconfig" >&6
11058 case "$ac_cv_var_hpux_findconfig" in
11059  yes) cat >>confdefs.h <<\EOF
11060 #define NEED_HPUX_FINDCONFIG 1
11061 EOF
11062  ;;
11063 esac
11064
11065 echo "$as_me:11065: checking if process groups are set with -pid" >&5
11066 echo $ECHO_N "checking if process groups are set with -pid... $ECHO_C" >&6
11067 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   case "$target" in
11071  *-*-hpux[567]*)
11072     ans=no
11073     ;;
11074  *-*-hpux*)
11075     ans=yes
11076     ;;
11077  *-*-linux*)
11078     ans=yes
11079     ;;
11080  *-*-sunos3*)
11081     ans=yes
11082     ;;
11083  *-*-ultrix2*)
11084     ans=yes
11085     ;;
11086  *)
11087     ans=no
11088     ;;
11089 esac
11090 ac_cv_arg_setpgrp_negpid=$ans
11091 fi
11092 echo "$as_me:11092: result: $ac_cv_arg_setpgrp_negpid" >&5
11093 echo "${ECHO_T}$ac_cv_arg_setpgrp_negpid" >&6
11094 case "$ac_cv_arg_setpgrp_negpid" in
11095  yes) cat >>confdefs.h <<\EOF
11096 #define UDP_BACKWARDS_SETOWN 1
11097 EOF
11098  ;;
11099 esac
11100
11101 echo "$as_me:11101: checking if we need a ctty for F_SETOWN" >&5
11102 echo $ECHO_N "checking if we need a ctty for F_SETOWN... $ECHO_C" >&6
11103 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then
11104   echo $ECHO_N "(cached) $ECHO_C" >&6
11105 else
11106   case "$target" in
11107  *-*-bsdi23*)
11108     ans=yes
11109     ;;
11110  *-*-freebsd*)
11111     ans=yes
11112     ;;
11113  *-*-netbsd*)
11114     ans=yes
11115     ;;
11116  *-*-openbsd*)
11117     ans=yes
11118     ;;
11119  *-*-osf*)
11120     ans=yes
11121     ;;
11122  *) ans=no
11123     ;;
11124 esac
11125 ac_cv_func_ctty_for_f_setown=$ans
11126 fi
11127 echo "$as_me:11127: result: $ac_cv_func_ctty_for_f_setown" >&5
11128 echo "${ECHO_T}$ac_cv_func_ctty_for_f_setown" >&6
11129 case "$ac_cv_func_ctty_for_f_setown" in
11130  yes) cat >>confdefs.h <<\EOF
11131 #define USE_FSETOWNCTTY 1
11132 EOF
11133  ;;
11134 esac
11135
11136 ntp_warning='GRONK'
11137 echo "$as_me:11137: checking if we'll use clock_settime or settimeofday or stime" >&5
11138 echo $ECHO_N "checking if we'll use clock_settime or settimeofday or stime... $ECHO_C" >&6
11139 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
11140  yes*)
11141     ntp_warning=''
11142     ans='clock_settime()'
11143     ;;
11144  noyes*)
11145     ntp_warning='But clock_settime() would be better (if we had it)'
11146     ans='settimeofday()'
11147     ;;
11148  nonoyes)
11149     ntp_warning='Which is the worst of the three'
11150     ans='stime()'
11151     ;;
11152  *)
11153     case "$host" in
11154      $target) ntp_warning='Which leaves us with nothing to use!'
11155     ans=none
11156     ;;
11157 esac
11158 esac
11159 echo "$as_me:11159: result: $ans" >&5
11160 echo "${ECHO_T}$ans" >&6
11161 case "$ntp_warning" in
11162  '') ;;
11163  *) { echo "$as_me:11163: WARNING: *** $ntp_warning ***" >&5
11164 echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
11165     ;;
11166 esac
11167
11168 echo "$as_me:11168: checking if we have a losing syscall()" >&5
11169 echo $ECHO_N "checking if we have a losing syscall()... $ECHO_C" >&6
11170 if test "${ac_cv_var_syscall_bug+set}" = set; then
11171   echo $ECHO_N "(cached) $ECHO_C" >&6
11172 else
11173   case "$target" in
11174  *-*-solaris2.4*)
11175     ans=yes
11176     ;;
11177  *) ans=no
11178     ;;
11179 esac
11180 ac_cv_var_syscall_bug=$ans
11181 fi
11182 echo "$as_me:11182: result: $ac_cv_var_syscall_bug" >&5
11183 echo "${ECHO_T}$ac_cv_var_syscall_bug" >&6
11184 case "$ac_cv_var_syscall_bug" in
11185  yes) cat >>confdefs.h <<\EOF
11186 #define SYSCALL_BUG 1
11187 EOF
11188  ;;
11189 esac
11190
11191 echo "$as_me:11191: checking for Streams/TLI" >&5
11192 echo $ECHO_N "checking for Streams/TLI... $ECHO_C" >&6
11193 if test "${ac_cv_var_streams_tli+set}" = set; then
11194   echo $ECHO_N "(cached) $ECHO_C" >&6
11195 else
11196    case "$ac_cv_header_sys_stropts_h" in
11197   yes)
11198      ans=no
11199      # There must be a better way...
11200      case "$target" in
11201       *-*-ptx*)
11202          ans=yes
11203          ;;
11204      esac
11205      ;;
11206  esac
11207  ac_cv_var_streams_tli=$ans
11208 fi
11209 echo "$as_me:11209: result: $ac_cv_var_streams_tli" >&5
11210 echo "${ECHO_T}$ac_cv_var_streams_tli" >&6
11211 case "$ac_cv_var_streams_tli" in
11212  yes)
11213     cat >>confdefs.h <<\EOF
11214 #define STREAMS_TLI 1
11215 EOF
11216
11217     ;;
11218 esac
11219
11220 echo "$as_me:11220: checking for SIGIO" >&5
11221 echo $ECHO_N "checking for SIGIO... $ECHO_C" >&6
11222 if test "${ac_cv_hdr_def_sigio+set}" = set; then
11223   echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225   cat >conftest.$ac_ext <<_ACEOF
11226 #line 11226 "configure"
11227 #include "confdefs.h"
11228 #include <signal.h>
11229 #ifdef SIGIO
11230    yes
11231 #endif
11232
11233 _ACEOF
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235   egrep "yes" >/dev/null 2>&1; then
11236   ac_cv_hdr_def_sigio=yes
11237 else
11238   ac_cv_hdr_def_sigio=no
11239 fi
11240 rm -f conftest*
11241
11242 fi
11243 echo "$as_me:11243: result: $ac_cv_hdr_def_sigio" >&5
11244 echo "${ECHO_T}$ac_cv_hdr_def_sigio" >&6
11245
11246 echo "$as_me:11246: checking if we want to use signalled IO" >&5
11247 echo $ECHO_N "checking if we want to use signalled IO... $ECHO_C" >&6
11248 if test "${ac_cv_var_signalled_io+set}" = set; then
11249   echo $ECHO_N "(cached) $ECHO_C" >&6
11250 else
11251   ans=no
11252 case "$ac_cv_hdr_def_sigio" in
11253  yes)
11254     ans=yes
11255     case "$target" in
11256      alpha*-dec-osf4*|alpha*-dec-osf5*)
11257         ans=no
11258         ;;
11259      *-convex-*)
11260         ans=no
11261         ;;
11262      *-dec-*)
11263         ans=no
11264         ;;
11265      *-pc-cygwin*)
11266         ans=no
11267         ;;
11268      *-sni-sysv*)
11269         ans=no
11270         ;;
11271      *-univel-sysv*)
11272         ans=no
11273         ;;
11274      *-*-irix6*)
11275         ans=no
11276         ;;
11277      *-*-freebsd*)
11278         ans=no
11279         ;;
11280      *-*-linux*)
11281         ans=no
11282         ;;
11283     esac
11284     ;;
11285 esac
11286 ac_cv_var_signalled_io=$ans
11287 fi
11288 echo "$as_me:11288: result: $ac_cv_var_signalled_io" >&5
11289 echo "${ECHO_T}$ac_cv_var_signalled_io" >&6
11290 case "$ac_cv_var_signalled_io" in
11291  yes) cat >>confdefs.h <<\EOF
11292 #define HAVE_SIGNALED_IO 1
11293 EOF
11294  ;;
11295 esac
11296
11297 echo "$as_me:11297: checking for SIGPOLL" >&5
11298 echo $ECHO_N "checking for SIGPOLL... $ECHO_C" >&6
11299 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 #line 11303 "configure"
11304 #include "confdefs.h"
11305 #include <signal.h>
11306 #ifdef SIGPOLL
11307   yes
11308 #endif
11309
11310 _ACEOF
11311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312   egrep "yes" >/dev/null 2>&1; then
11313   ac_cv_hdr_def_sigpoll=yes
11314 else
11315   ac_cv_hdr_def_sigpoll=no
11316 fi
11317 rm -f conftest*
11318
11319 fi
11320 echo "$as_me:11320: result: $ac_cv_hdr_def_sigpoll" >&5
11321 echo "${ECHO_T}$ac_cv_hdr_def_sigpoll" >&6
11322
11323 echo "$as_me:11323: checking for SIGSYS" >&5
11324 echo $ECHO_N "checking for SIGSYS... $ECHO_C" >&6
11325 if test "${ac_cv_hdr_def_sigsys+set}" = set; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328   cat >conftest.$ac_ext <<_ACEOF
11329 #line 11329 "configure"
11330 #include "confdefs.h"
11331 #include <signal.h>
11332 #ifdef SIGSYS
11333   yes
11334 #endif
11335
11336 _ACEOF
11337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11338   egrep "yes" >/dev/null 2>&1; then
11339   ac_cv_hdr_def_sigsys=yes
11340 else
11341   ac_cv_hdr_def_sigsys=no
11342 fi
11343 rm -f conftest*
11344
11345 fi
11346 echo "$as_me:11346: result: $ac_cv_hdr_def_sigsys" >&5
11347 echo "${ECHO_T}$ac_cv_hdr_def_sigsys" >&6
11348
11349 echo "$as_me:11349: checking if we can use SIGPOLL for UDP I/O" >&5
11350 echo $ECHO_N "checking if we can use SIGPOLL for UDP I/O... $ECHO_C" >&6
11351 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   ans=no
11355 case "$ac_cv_hdr_def_sigpoll" in
11356  yes)
11357     case "$target" in
11358      mips-sgi-irix*)
11359         ans=no
11360         ;;
11361      vax-dec-bsd)
11362         ans=no
11363         ;;
11364      *-pc-cygwin*)
11365         ans=no
11366         ;;
11367      *-sni-sysv*)
11368         ans=no
11369         ;;
11370      *-*-aix4*)
11371         ans=no
11372         ;;
11373      *-*-hpux*)
11374         ans=no
11375         ;;
11376      *-*-linux*)
11377         ans=no
11378         ;;
11379      *-*-osf*)
11380         ans=no
11381         ;;
11382      *-*-sunos*)
11383         ans=no
11384         ;;
11385      *-*-ultrix*)
11386         ans=no
11387         ;;
11388      *) ans=yes
11389         ;;
11390     esac
11391     ;;
11392 esac
11393 ac_cv_var_use_udp_sigpoll=$ans
11394 fi
11395 echo "$as_me:11395: result: $ac_cv_var_use_udp_sigpoll" >&5
11396 echo "${ECHO_T}$ac_cv_var_use_udp_sigpoll" >&6
11397 case "$ac_cv_var_use_udp_sigpoll" in
11398  yes) cat >>confdefs.h <<\EOF
11399 #define USE_UDP_SIGPOLL 1
11400 EOF
11401  ;;
11402 esac
11403
11404 echo "$as_me:11404: checking if we can use SIGPOLL for TTY I/O" >&5
11405 echo $ECHO_N "checking if we can use SIGPOLL for TTY I/O... $ECHO_C" >&6
11406 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409   ans=no
11410 case "$ac_cv_hdr_def_sigpoll" in
11411  yes)
11412     case "$target" in
11413      mips-sgi-irix*)
11414         ans=no
11415         ;;
11416      vax-dec-bsd)
11417         ans=no
11418         ;;
11419      *-pc-cygwin*)
11420         ans=no
11421         ;;
11422      *-sni-sysv*)
11423         ans=no
11424         ;;
11425      *-*-aix4*)
11426         ans=no
11427         ;;
11428      *-*-hpux*)
11429         ans=no
11430         ;;
11431      *-*-linux*)
11432         ans=no
11433         ;;
11434      *-*-osf*)
11435         ans=no
11436         ;;
11437      *-*-sunos*)
11438         ans=no
11439         ;;
11440      *-*-ultrix*)
11441         ans=no
11442         ;;
11443      *) ans=yes
11444         ;;
11445     esac
11446     ;;
11447 esac
11448 ac_cv_var_use_tty_sigpoll=$ans
11449 fi
11450 echo "$as_me:11450: result: $ac_cv_var_use_tty_sigpoll" >&5
11451 echo "${ECHO_T}$ac_cv_var_use_tty_sigpoll" >&6
11452 case "$ac_cv_var_use_tty_sigpoll" in
11453  yes) cat >>confdefs.h <<\EOF
11454 #define USE_TTY_SIGPOLL 1
11455 EOF
11456  ;;
11457 esac
11458
11459 case "$ac_cv_header_sys_sio_h" in
11460  yes)
11461     echo "$as_me:11461: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
11462 echo $ECHO_N "checking sys/sio.h for TIOCDCDTIMESTAMP... $ECHO_C" >&6
11463 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466   cat >conftest.$ac_ext <<_ACEOF
11467 #line 11467 "configure"
11468 #include "confdefs.h"
11469 #include <sys/sio.h>
11470 #ifdef TIOCDCDTIMESTAMP
11471   yes
11472 #endif
11473
11474 _ACEOF
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476   egrep "yes" >/dev/null 2>&1; then
11477   ac_cv_hdr_def_tiocdcdtimestamp=yes
11478 else
11479   ac_cv_hdr_def_tiocdcdtimestamp=no
11480 fi
11481 rm -f conftest*
11482
11483 fi
11484 echo "$as_me:11484: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
11485 echo "${ECHO_T}$ac_cv_hdr_def_tiocdcdtimestamp" >&6
11486     ;;
11487 esac
11488
11489 case "$ac_cv_hdr_def_tiocdcdtimestamp" in
11490  yes)
11491     ac_cv_var_oncore_ok=yes
11492     ;;
11493 esac
11494
11495 echo "$as_me:11495: checking if nlist() values might require extra indirection" >&5
11496 echo $ECHO_N "checking if nlist() values might require extra indirection... $ECHO_C" >&6
11497 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 else
11500   ans=no
11501 case "$target" in
11502  *-*-aix*)
11503     ans=yes
11504     ;;
11505 esac
11506 ac_cv_var_nlist_extra_indirection=$ans
11507 fi
11508 echo "$as_me:11508: result: $ac_cv_var_nlist_extra_indirection" >&5
11509 echo "${ECHO_T}$ac_cv_var_nlist_extra_indirection" >&6
11510 case "$ac_cv_var_nlist_extra_indirection" in
11511  yes) cat >>confdefs.h <<\EOF
11512 #define NLIST_EXTRA_INDIRECTION 1
11513 EOF
11514  ;;
11515 esac
11516
11517 echo "$as_me:11517: checking for a minimum recommended value of tickadj" >&5
11518 echo $ECHO_N "checking for a minimum recommended value of tickadj... $ECHO_C" >&6
11519 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   ans=no
11523 case "$target" in
11524  *-*-aix*)
11525     ans=40
11526     ;;
11527 esac
11528 ac_cv_var_min_rec_tickadj=$ans
11529 fi
11530 echo "$as_me:11530: result: $ac_cv_var_min_rec_tickadj" >&5
11531 echo "${ECHO_T}$ac_cv_var_min_rec_tickadj" >&6
11532 case "$ac_cv_var_min_rec_tickadj" in
11533  ''|no) ;;
11534  *) cat >>confdefs.h <<EOF
11535 #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
11536 EOF
11537  ;;
11538 esac
11539
11540 echo "$as_me:11540: checking if the TTY code permits PARENB and IGNPAR" >&5
11541 echo $ECHO_N "checking if the TTY code permits PARENB and IGNPAR... $ECHO_C" >&6
11542 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   ans=no
11546 case "$target" in
11547  i?86-*-linux*)
11548     ans=yes
11549     ;;
11550  mips-sgi-irix*)
11551     ans=yes
11552     ;;
11553 esac
11554 ac_cv_var_no_parenb_ignpar=$ans
11555 fi
11556 echo "$as_me:11556: result: $ac_cv_var_no_parenb_ignpar" >&5
11557 echo "${ECHO_T}$ac_cv_var_no_parenb_ignpar" >&6
11558 case "$ac_cv_var_no_parenb_ignpar" in
11559  yes) cat >>confdefs.h <<\EOF
11560 #define NO_PARENB_IGNPAR 1
11561 EOF
11562  ;;
11563 esac
11564
11565 echo "$as_me:11565: checking if we're including debugging code" >&5
11566 echo $ECHO_N "checking if we're including debugging code... $ECHO_C" >&6
11567 # Check whether --enable-debugging or --disable-debugging was given.
11568 if test "${enable_debugging+set}" = set; then
11569   enableval="$enable_debugging"
11570   ntp_ok=$enableval
11571 else
11572   ntp_ok=yes
11573 fi;
11574 if test "$ntp_ok" = "yes"; then
11575     cat >>confdefs.h <<\EOF
11576 #define DEBUG 1
11577 EOF
11578
11579 fi
11580 echo "$as_me:11580: result: $ntp_ok" >&5
11581 echo "${ECHO_T}$ntp_ok" >&6
11582
11583 echo "$as_me:11583: checking for a the number of minutes in a DST adjustment" >&5
11584 echo $ECHO_N "checking for a the number of minutes in a DST adjustment... $ECHO_C" >&6
11585 # Check whether --enable-dst_minutes or --disable-dst_minutes was given.
11586 if test "${enable_dst_minutes+set}" = set; then
11587   enableval="$enable_dst_minutes"
11588   ans=$enableval
11589 else
11590   ans=60
11591 fi;
11592 cat >>confdefs.h <<EOF
11593 #define DSTMINUTES $ans
11594 EOF
11595
11596 echo "$as_me:11596: result: $ans" >&5
11597 echo "${ECHO_T}$ans" >&6
11598
11599 echo "$as_me:11599: checking if we have the tty_clk line discipline/streams module" >&5
11600 echo $ECHO_N "checking if we have the tty_clk line discipline/streams module... $ECHO_C" >&6
11601 if test "${ac_cv_var_tty_clk+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
11605   *yes*) ac_cv_var_tty_clk=yes ;;
11606  esac
11607 fi
11608 echo "$as_me:11608: result: $ac_cv_var_tty_clk" >&5
11609 echo "${ECHO_T}$ac_cv_var_tty_clk" >&6
11610 case "$ac_cv_var_tty_clk" in
11611  yes) cat >>confdefs.h <<\EOF
11612 #define TTYCLK 1
11613 EOF
11614  ;;
11615 esac
11616
11617 echo "$as_me:11617: checking for the ppsclock streams module" >&5
11618 echo $ECHO_N "checking for the ppsclock streams module... $ECHO_C" >&6
11619 if test "${ac_cv_var_ppsclock+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
11623 fi
11624 echo "$as_me:11624: result: $ac_cv_var_ppsclock" >&5
11625 echo "${ECHO_T}$ac_cv_var_ppsclock" >&6
11626 case "$ac_cv_var_ppsclock" in
11627  yes) cat >>confdefs.h <<\EOF
11628 #define PPS 1
11629 EOF
11630  ;;
11631 esac
11632
11633 echo "$as_me:11633: checking for kernel multicast support" >&5
11634 echo $ECHO_N "checking for kernel multicast support... $ECHO_C" >&6
11635 if test "${ac_cv_var_mcast+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   ac_cv_var_mcast=no
11639   case "$target" in
11640    i386-sequent-sysv4) ;;
11641    *) cat >conftest.$ac_ext <<_ACEOF
11642 #line 11642 "configure"
11643 #include "confdefs.h"
11644 #include <netinet/in.h>
11645 #ifdef IP_ADD_MEMBERSHIP
11646    yes
11647 #endif
11648
11649 _ACEOF
11650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651   egrep "yes" >/dev/null 2>&1; then
11652   ac_cv_var_mcast=yes
11653 fi
11654 rm -f conftest*
11655  ;;
11656   esac
11657 fi
11658 echo "$as_me:11658: result: $ac_cv_var_mcast" >&5
11659 echo "${ECHO_T}$ac_cv_var_mcast" >&6
11660 case "$ac_cv_var_mcast" in
11661  yes) cat >>confdefs.h <<\EOF
11662 #define MCAST 1
11663 EOF
11664  ;;
11665 esac
11666
11667 echo "$as_me:11667: checking availability of ntp_{adj,get}time()" >&5
11668 echo $ECHO_N "checking availability of ntp_{adj,get}time()... $ECHO_C" >&6
11669 if test "${ac_cv_var_ntp_syscalls+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   ac_cv_var_ntp_syscalls=no
11673  case "$ac_cv_func___adjtimex" in
11674   yes)
11675     ac_cv_var_ntp_syscalls=libc
11676     ;;
11677   *) case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime" in
11678       yesyes)
11679         ac_cv_var_ntp_syscalls=libc
11680         ;;
11681       *) cat >conftest.$ac_ext <<_ACEOF
11682 #line 11682 "configure"
11683 #include "confdefs.h"
11684 #include <sys/syscall.h>
11685 #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
11686            yes
11687 #endif
11688
11689 _ACEOF
11690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691   egrep "yes" >/dev/null 2>&1; then
11692   ac_cv_var_ntp_syscalls=kernel
11693 fi
11694 rm -f conftest*
11695
11696          ;;
11697      esac
11698      ;;
11699  esac
11700 fi
11701 echo "$as_me:11701: result: $ac_cv_var_ntp_syscalls" >&5
11702 echo "${ECHO_T}$ac_cv_var_ntp_syscalls" >&6
11703 case "$ac_cv_var_ntp_syscalls" in
11704  libc)
11705     cat >>confdefs.h <<\EOF
11706 #define NTP_SYSCALLS_LIBC 1
11707 EOF
11708
11709     ;;
11710  kernel)
11711     cat >>confdefs.h <<\EOF
11712 #define NTP_SYSCALLS_STD 1
11713 EOF
11714
11715     ;;
11716  *)
11717     ;;
11718 esac
11719
11720 echo "$as_me:11720: checking if sys/timex.h has STA_FLL" >&5
11721 echo $ECHO_N "checking if sys/timex.h has STA_FLL... $ECHO_C" >&6
11722 if test "${ac_cv_var_sta_fll+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   cat >conftest.$ac_ext <<_ACEOF
11726 #line 11726 "configure"
11727 #include "confdefs.h"
11728 #include <sys/timex.h>
11729 #ifdef STA_FLL
11730     yes
11731 #endif
11732
11733 _ACEOF
11734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11735   egrep "yes" >/dev/null 2>&1; then
11736   ac_cv_var_sta_fll=yes
11737 else
11738   ac_cv_var_sta_fll=no
11739 fi
11740 rm -f conftest*
11741
11742 fi
11743 echo "$as_me:11743: result: $ac_cv_var_sta_fll" >&5
11744 echo "${ECHO_T}$ac_cv_var_sta_fll" >&6
11745
11746 echo "$as_me:11746: checking if we have kernel PLL support" >&5
11747 echo $ECHO_N "checking if we have kernel PLL support... $ECHO_C" >&6
11748 if test "${ac_cv_var_kernel_pll+set}" = set; then
11749   echo $ECHO_N "(cached) $ECHO_C" >&6
11750 else
11751   case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
11752  *no*)
11753     ac_cv_var_kernel_pll=no
11754     ;;
11755  *) ac_cv_var_kernel_pll=yes
11756     ;;
11757 esac
11758 fi
11759 echo "$as_me:11759: result: $ac_cv_var_kernel_pll" >&5
11760 echo "${ECHO_T}$ac_cv_var_kernel_pll" >&6
11761 case "$ac_cv_var_kernel_pll" in
11762  yes)
11763     cat >>confdefs.h <<\EOF
11764 #define KERNEL_PLL 1
11765 EOF
11766
11767     ;;
11768 esac
11769
11770 echo "$as_me:11770: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
11771 echo $ECHO_N "checking if SIOCGIFCONF returns buffer size in the buffer... $ECHO_C" >&6
11772 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then
11773   echo $ECHO_N "(cached) $ECHO_C" >&6
11774 else
11775   ans=no
11776   case "$target" in
11777    *-fujitsu-uxp*)
11778       ans=yes
11779       ;;
11780    *-ncr-sysv4*)
11781       ans=yes
11782       ;;
11783    *-univel-sysv*)
11784       ans=yes
11785       ;;
11786   esac
11787   ac_cv_var_size_returned_in_buffer=$ans
11788 fi
11789 echo "$as_me:11789: result: $ac_cv_var_size_returned_in_buffer" >&5
11790 echo "${ECHO_T}$ac_cv_var_size_returned_in_buffer" >&6
11791 case "$ac_cv_var_size_returned_in_buffer" in
11792  yes) cat >>confdefs.h <<\EOF
11793 #define SIZE_RETURNED_IN_BUFFER 1
11794 EOF
11795  ;;
11796 esac
11797
11798 # Check for ioctls TIOCGPPSEV
11799 echo "$as_me:11799: checking ioctl TIOCGPPSEV" >&5
11800 echo $ECHO_N "checking ioctl TIOCGPPSEV... $ECHO_C" >&6
11801 if test "$ac_cv_header_termios_h" = "yes"; then
11802     cat >conftest.$ac_ext <<_ACEOF
11803 #line 11803 "configure"
11804 #include "confdefs.h"
11805 #include <termios.h>
11806 #ifdef TIOCGPPSEV
11807          yes
11808 #endif
11809
11810 _ACEOF
11811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11812   egrep "yes" >/dev/null 2>&1; then
11813   ntp_ok=yes
11814 else
11815   ntp_ok=no
11816 fi
11817 rm -f conftest*
11818
11819 else
11820 ntp_ok=no
11821 fi
11822 if test "$ntp_ok" = "yes"; then
11823     cat >>confdefs.h <<\EOF
11824 #define HAVE_TIOCGPPSEV 1
11825 EOF
11826
11827     ac_cv_var_oncore_ok=yes
11828 fi
11829 echo "$as_me:11829: result: $ntp_ok" >&5
11830 echo "${ECHO_T}$ntp_ok" >&6
11831
11832 # Check for ioctls TIOCSPPS
11833 echo "$as_me:11833: checking ioctl TIOCSPPS" >&5
11834 echo $ECHO_N "checking ioctl TIOCSPPS... $ECHO_C" >&6
11835 if test "$ac_cv_header_termios_h" = "yes"; then
11836     cat >conftest.$ac_ext <<_ACEOF
11837 #line 11837 "configure"
11838 #include "confdefs.h"
11839 #include <termios.h>
11840 #ifdef TIOCSPPS
11841          yes
11842 #endif
11843
11844 _ACEOF
11845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11846   egrep "yes" >/dev/null 2>&1; then
11847   ntp_ok=yes
11848 else
11849   ntp_ok=no
11850 fi
11851 rm -f conftest*
11852
11853 else
11854     ntp_ok=no
11855 fi
11856
11857 if test "$ntp_ok" = "yes"; then
11858     cat >>confdefs.h <<\EOF
11859 #define HAVE_TIOCSPPS 1
11860 EOF
11861
11862 fi
11863 echo "$as_me:11863: result: $ntp_ok" >&5
11864 echo "${ECHO_T}$ntp_ok" >&6
11865
11866 # Check for ioctls CIOGETEV
11867 echo "$as_me:11867: checking ioctl CIOGETEV" >&5
11868 echo $ECHO_N "checking ioctl CIOGETEV... $ECHO_C" >&6
11869 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
11870     cat >conftest.$ac_ext <<_ACEOF
11871 #line 11871 "configure"
11872 #include "confdefs.h"
11873 #include <sys/ppsclock.h>
11874 #ifdef CIOGETEV
11875          yes
11876 #endif
11877
11878 _ACEOF
11879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11880   egrep "yes" >/dev/null 2>&1; then
11881   ntp_ok=yes
11882 else
11883   ntp_ok=no
11884 fi
11885 rm -f conftest*
11886
11887 else
11888 ntp_ok=no
11889 fi
11890 if test "$ntp_ok" = "yes"; then
11891     ac_cv_var_oncore_ok=yes
11892     cat >>confdefs.h <<\EOF
11893 #define HAVE_CIOGETEV 1
11894 EOF
11895
11896 fi
11897 echo "$as_me:11897: result: $ntp_ok" >&5
11898 echo "${ECHO_T}$ntp_ok" >&6
11899
11900 # ATOM/PPSAPI stuff.
11901
11902 # ATOM used to require struct timespec, but that's been fixed now.
11903
11904 # case "$ac_cv_struct_timespec" in
11905 #  'yes')
11906 #     ac_cv_var_atom_ok=yes
11907 #     ;;
11908 # esac
11909 ac_cv_var_atom_ok=yes
11910
11911 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
11912
11913 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
11914
11915 # The PPSAPI needs ATOM
11916
11917 # The PPSAPI needs struct timespec.
11918
11919 case "$ac_cv_c_inline$ac_cv_struct_timespec$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h" in
11920  inlineyes*yes*)
11921     cat >>confdefs.h <<\EOF
11922 #define HAVE_PPSAPI 1
11923 EOF
11924
11925     ac_cv_var_oncore_ok=yes
11926     ;;
11927 esac
11928
11929 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
11930 echo "$as_me:11930: checking for linux/serial.h" >&5
11931 echo $ECHO_N "checking for linux/serial.h... $ECHO_C" >&6
11932 if test "${ac_cv_header_linux_serial_h+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 #line 11936 "configure"
11937 #include "confdefs.h"
11938 #include <linux/serial.h>
11939 _ACEOF
11940 if { (eval echo "$as_me:11940: \"$ac_cpp conftest.$ac_ext\"") >&5
11941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11942   ac_status=$?
11943   egrep -v '^ *\+' conftest.er1 >conftest.err
11944   rm -f conftest.er1
11945   cat conftest.err >&5
11946   echo "$as_me:11946: \$? = $ac_status" >&5
11947   (exit $ac_status); } >/dev/null; then
11948   if test -s conftest.err; then
11949     ac_cpp_err=$ac_c_preproc_warn_flag
11950   else
11951     ac_cpp_err=
11952   fi
11953 else
11954   ac_cpp_err=yes
11955 fi
11956 if test -z "$ac_cpp_err"; then
11957   ac_cv_header_linux_serial_h=yes
11958 else
11959   echo "$as_me: failed program was:" >&5
11960   cat conftest.$ac_ext >&5
11961   ac_cv_header_linux_serial_h=no
11962 fi
11963 rm -f conftest.err conftest.$ac_ext
11964 fi
11965 echo "$as_me:11965: result: $ac_cv_header_linux_serial_h" >&5
11966 echo "${ECHO_T}$ac_cv_header_linux_serial_h" >&6
11967
11968 echo "$as_me:11968: checking ioctl TIOCGSERIAL" >&5
11969 echo $ECHO_N "checking ioctl TIOCGSERIAL... $ECHO_C" >&6
11970 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
11971   yesyes)
11972     cat >conftest.$ac_ext <<_ACEOF
11973 #line 11973 "configure"
11974 #include "confdefs.h"
11975 #include <sys/time.h>
11976 typedef int u_int;
11977
11978 #include <sys/ppsclock.h>
11979 #include <linux/serial.h>
11980
11981 #ifdef TIOCGSERIAL
11982 #ifdef TIOCSSERIAL
11983 #ifdef ASYNC_PPS_CD_POS
11984 #ifdef ASYNC_PPS_CD_NEG
11985 #ifdef CIOGETEV
11986          yes
11987 #endif
11988 #endif
11989 #endif
11990 #endif
11991 #endif
11992
11993 _ACEOF
11994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11995   egrep "yes" >/dev/null 2>&1; then
11996   ntp_ok=yes
11997 fi
11998 rm -f conftest*
11999
12000         ;;
12001   *)
12002         ntp_ok=no
12003         ;;
12004 esac
12005 if test "$ntp_ok" = "yes"; then
12006     cat >>confdefs.h <<\EOF
12007 #define HAVE_TIO_SERIAL_STUFF 1
12008 EOF
12009
12010 fi
12011 echo "$as_me:12011: result: $ntp_ok" >&5
12012 echo "${ECHO_T}$ntp_ok" >&6
12013
12014 # Check for SHMEM_STATUS support
12015 echo "$as_me:12015: checking SHMEM_STATUS support" >&5
12016 echo $ECHO_N "checking SHMEM_STATUS support... $ECHO_C" >&6
12017 case "$ac_cv_header_sys_mman_h" in
12018  yes) ntp_ok=yes ;;
12019  *)   ntp_ok=no  ;;
12020 esac
12021 if test "$ntp_ok" = "yes"; then
12022     cat >>confdefs.h <<\EOF
12023 #define ONCORE_SHMEM_STATUS 1
12024 EOF
12025
12026 fi
12027 echo "$as_me:12027: result: $ntp_ok" >&5
12028 echo "${ECHO_T}$ntp_ok" >&6
12029
12030 ntp_refclock=no
12031
12032 echo "$as_me:12032: checking for hopf serial clock device" >&5
12033 echo $ECHO_N "checking for hopf serial clock device... $ECHO_C" >&6
12034 # Check whether --enable-HOPFSERIAL or --disable-HOPFSERIAL was given.
12035 if test "${enable_HOPFSERIAL+set}" = set; then
12036   enableval="$enable_HOPFSERIAL"
12037   ntp_ok=$enableval
12038 else
12039   ntp_ok=$ntp_eac
12040 fi;
12041   if test "$ntp_ok" = "yes"; then
12042       ntp_refclock=yes
12043       cat >>confdefs.h <<\EOF
12044 #define CLOCK_HOPF_SERIAL 1
12045 EOF
12046
12047   fi
12048   echo "$as_me:12048: result: $ntp_ok" >&5
12049 echo "${ECHO_T}$ntp_ok" >&6
12050
12051 echo "$as_me:12051: checking for hopf PCI clock 6039" >&5
12052 echo $ECHO_N "checking for hopf PCI clock 6039... $ECHO_C" >&6
12053 # Check whether --enable-HOPFPCI or --disable-HOPFPCI was given.
12054 if test "${enable_HOPFPCI+set}" = set; then
12055   enableval="$enable_HOPFPCI"
12056   ntp_ok=$enableval
12057 else
12058   ntp_ok=$ntp_eac
12059 fi;
12060 if test "$ntp_ok" = "yes"; then
12061     ntp_refclock=yes
12062     cat >>confdefs.h <<\EOF
12063 #define CLOCK_HOPF_PCI 1
12064 EOF
12065
12066 fi
12067 echo "$as_me:12067: result: $ntp_ok" >&5
12068 echo "${ECHO_T}$ntp_ok" >&6
12069
12070 # HPUX only, and by explicit request
12071 echo "$as_me:12071: checking Datum/Bancomm bc635/VME interface" >&5
12072 echo $ECHO_N "checking Datum/Bancomm bc635/VME interface... $ECHO_C" >&6
12073 # Check whether --enable-BANCOMM or --disable-BANCOMM was given.
12074 if test "${enable_BANCOMM+set}" = set; then
12075   enableval="$enable_BANCOMM"
12076   ntp_ok=$enableval
12077 else
12078   ntp_ok=no
12079 fi;
12080 if test "$ntp_ok" = "yes"; then
12081     ntp_refclock=yes
12082     cat >>confdefs.h <<\EOF
12083 #define CLOCK_BANC 1
12084 EOF
12085
12086 fi
12087 echo "$as_me:12087: result: $ntp_ok" >&5
12088 echo "${ECHO_T}$ntp_ok" >&6
12089 case "$ntp_ok$target" in
12090  yes*-*-hpux*) ;;
12091  yes*) { echo "$as_me:12091: WARNING: *** But the expected answer is... no ***" >&5
12092 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12093 esac
12094
12095 #HPUX only, and only by explicit request
12096 echo "$as_me:12096: checking TrueTime GPS receiver/VME interface" >&5
12097 echo $ECHO_N "checking TrueTime GPS receiver/VME interface... $ECHO_C" >&6
12098 # Check whether --enable-GPSVME or --disable-GPSVME was given.
12099 if test "${enable_GPSVME+set}" = set; then
12100   enableval="$enable_GPSVME"
12101   ntp_ok=$enableval
12102 else
12103   ntp_ok=no
12104 fi;
12105 if test "$ntp_ok" = "yes"; then
12106     ntp_refclock=yes
12107     cat >>confdefs.h <<\EOF
12108 #define CLOCK_GPSVME 1
12109 EOF
12110
12111 fi
12112 echo "$as_me:12112: result: $ntp_ok" >&5
12113 echo "${ECHO_T}$ntp_ok" >&6
12114 case "$ntp_ok$target" in
12115  yes*-*-hpux*) ;;
12116  yes*) { echo "$as_me:12116: WARNING: *** But the expected answer is... no ***" >&5
12117 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12118 esac
12119
12120 echo "$as_me:12120: checking for PCL720 clock support" >&5
12121 echo $ECHO_N "checking for PCL720 clock support... $ECHO_C" >&6
12122 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
12123  yesyesyes)
12124     cat >>confdefs.h <<\EOF
12125 #define CLOCK_PPS720 1
12126 EOF
12127
12128     ans=yes
12129     ;;
12130  *)
12131     ans=no
12132     ;;
12133 esac
12134 echo "$as_me:12134: result: $ans" >&5
12135 echo "${ECHO_T}$ans" >&6
12136
12137 echo "$as_me:12137: checking for SHM clock attached thru shared memory" >&5
12138 echo $ECHO_N "checking for SHM clock attached thru shared memory... $ECHO_C" >&6
12139 # Check whether --enable-SHM or --disable-SHM was given.
12140 if test "${enable_SHM+set}" = set; then
12141   enableval="$enable_SHM"
12142   ntp_ok=$enableval
12143 else
12144   ntp_ok=no
12145 fi;
12146 if test "$ntp_ok" = "yes"; then
12147     ntp_refclock=yes
12148     cat >>confdefs.h <<\EOF
12149 #define CLOCK_SHM 1
12150 EOF
12151
12152 fi
12153 echo "$as_me:12153: result: $ntp_ok" >&5
12154 echo "${ECHO_T}$ntp_ok" >&6
12155
12156 echo "$as_me:12156: checking for default inclusion of all suitable non-PARSE clocks" >&5
12157 echo $ECHO_N "checking for default inclusion of all suitable non-PARSE clocks... $ECHO_C" >&6
12158 # Check whether --enable-all-clocks or --disable-all-clocks was given.
12159 if test "${enable_all_clocks+set}" = set; then
12160   enableval="$enable_all_clocks"
12161   ntp_eac=$enableval
12162 else
12163   ntp_eac=yes
12164 fi;
12165 echo "$as_me:12165: result: $ntp_eac" >&5
12166 echo "${ECHO_T}$ntp_eac" >&6
12167
12168 echo "$as_me:12168: checking if we have support for PARSE clocks" >&5
12169 echo $ECHO_N "checking if we have support for PARSE clocks... $ECHO_C" >&6
12170 case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
12171  yes*yes*)
12172     ntp_canparse=yes
12173     ;;
12174  *) ntp_canparse=no
12175     ;;
12176 esac
12177 echo "$as_me:12177: result: $ntp_canparse" >&5
12178 echo "${ECHO_T}$ntp_canparse" >&6
12179
12180 echo "$as_me:12180: checking if we have support for audio clocks" >&5
12181 echo $ECHO_N "checking if we have support for audio clocks... $ECHO_C" >&6
12182 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in
12183  *yes*)
12184     ntp_canaudio=yes
12185
12186 cat >>confdefs.h <<\EOF
12187 #define HAVE_AUDIO
12188 EOF
12189
12190     ;;
12191  *) ntp_canaudio=no ;;
12192 esac
12193 echo "$as_me:12193: result: $ntp_canaudio" >&5
12194 echo "${ECHO_T}$ntp_canaudio" >&6
12195
12196 # Requires modem control
12197 echo "$as_me:12197: checking ACTS modem service" >&5
12198 echo $ECHO_N "checking ACTS modem service... $ECHO_C" >&6
12199 # Check whether --enable-ACTS or --disable-ACTS was given.
12200 if test "${enable_ACTS+set}" = set; then
12201   enableval="$enable_ACTS"
12202   ntp_ok=$enableval
12203 else
12204   cat >conftest.$ac_ext <<_ACEOF
12205 #line 12205 "configure"
12206 #include "confdefs.h"
12207 #include <termios.h>
12208 #ifdef HAVE_SYS_IOCTL_H
12209 #include <sys/ioctl.h>
12210 #endif
12211 #ifdef TIOCMBIS
12212          yes
12213 #endif
12214
12215 _ACEOF
12216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12217   egrep "yes" >/dev/null 2>&1; then
12218   ntp_ok=$ntp_eac
12219 else
12220   ntp_ok=no
12221 fi
12222 rm -f conftest*
12223
12224 fi;
12225 if test "$ntp_ok" = "yes"; then
12226     ntp_refclock=yes
12227     cat >>confdefs.h <<\EOF
12228 #define CLOCK_ACTS 1
12229 EOF
12230
12231 fi
12232 echo "$as_me:12232: result: $ntp_ok" >&5
12233 echo "${ECHO_T}$ntp_ok" >&6
12234
12235 echo "$as_me:12235: checking Arbiter 1088A/B GPS receiver" >&5
12236 echo $ECHO_N "checking Arbiter 1088A/B GPS receiver... $ECHO_C" >&6
12237 # Check whether --enable-ARBITER or --disable-ARBITER was given.
12238 if test "${enable_ARBITER+set}" = set; then
12239   enableval="$enable_ARBITER"
12240   ntp_ok=$enableval
12241 else
12242   ntp_ok=$ntp_eac
12243 fi;
12244 if test "$ntp_ok" = "yes"; then
12245     ntp_refclock=yes
12246     cat >>confdefs.h <<\EOF
12247 #define CLOCK_ARBITER 1
12248 EOF
12249
12250 fi
12251 echo "$as_me:12251: result: $ntp_ok" >&5
12252 echo "${ECHO_T}$ntp_ok" >&6
12253
12254 echo "$as_me:12254: checking Arcron MSF receiver" >&5
12255 echo $ECHO_N "checking Arcron MSF receiver... $ECHO_C" >&6
12256 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given.
12257 if test "${enable_ARCRON_MSF+set}" = set; then
12258   enableval="$enable_ARCRON_MSF"
12259   ntp_ok=$enableval
12260 else
12261   ntp_ok=$ntp_eac
12262 fi;
12263 if test "$ntp_ok" = "yes"; then
12264     ntp_refclock=yes
12265     cat >>confdefs.h <<\EOF
12266 #define CLOCK_ARCRON_MSF 1
12267 EOF
12268
12269 fi
12270 echo "$as_me:12270: result: $ntp_ok" >&5
12271 echo "${ECHO_T}$ntp_ok" >&6
12272
12273 echo "$as_me:12273: checking ATOM PPS interface" >&5
12274 echo $ECHO_N "checking ATOM PPS interface... $ECHO_C" >&6
12275 # Check whether --enable-ATOM or --disable-ATOM was given.
12276 if test "${enable_ATOM+set}" = set; then
12277   enableval="$enable_ATOM"
12278   ntp_ok=$enableval
12279 else
12280   ntp_ok=$ntp_eac
12281 fi;
12282 case "$ac_cv_var_atom_ok" in
12283  no) ntp_ok=no ;;
12284 esac
12285 if test "$ntp_ok" = "yes"; then
12286     ntp_refclock=yes
12287     cat >>confdefs.h <<\EOF
12288 #define CLOCK_ATOM 1
12289 EOF
12290
12291 fi
12292 echo "$as_me:12292: result: $ntp_ok" >&5
12293 echo "${ECHO_T}$ntp_ok" >&6
12294
12295 echo "$as_me:12295: checking Austron 2200A/2201A GPS receiver" >&5
12296 echo $ECHO_N "checking Austron 2200A/2201A GPS receiver... $ECHO_C" >&6
12297 # Check whether --enable-AS2201 or --disable-AS2201 was given.
12298 if test "${enable_AS2201+set}" = set; then
12299   enableval="$enable_AS2201"
12300   ntp_ok=$enableval
12301 else
12302   ntp_ok=$ntp_eac
12303 fi;
12304 if test "$ntp_ok" = "yes"; then
12305     ntp_refclock=yes
12306     cat >>confdefs.h <<\EOF
12307 #define CLOCK_AS2201 1
12308 EOF
12309
12310 fi
12311 echo "$as_me:12311: result: $ntp_ok" >&5
12312 echo "${ECHO_T}$ntp_ok" >&6
12313
12314 echo "$as_me:12314: checking CHU modem/decoder" >&5
12315 echo $ECHO_N "checking CHU modem/decoder... $ECHO_C" >&6
12316 # Check whether --enable-CHU or --disable-CHU was given.
12317 if test "${enable_CHU+set}" = set; then
12318   enableval="$enable_CHU"
12319   ntp_ok=$enableval
12320 else
12321   ntp_ok=$ntp_eac
12322 fi;
12323 if test "$ntp_ok" = "yes"; then
12324     ntp_refclock=yes
12325     cat >>confdefs.h <<\EOF
12326 #define CLOCK_CHU 1
12327 EOF
12328
12329 fi
12330 echo "$as_me:12330: result: $ntp_ok" >&5
12331 echo "${ECHO_T}$ntp_ok" >&6
12332 ac_refclock_chu=$ntp_ok
12333
12334 echo "$as_me:12334: checking CHU audio/decoder" >&5
12335 echo $ECHO_N "checking CHU audio/decoder... $ECHO_C" >&6
12336 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given.
12337 if test "${enable_AUDIO_CHU+set}" = set; then
12338   enableval="$enable_AUDIO_CHU"
12339   ntp_ok=$enableval
12340 else
12341   case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
12342  *no*)  ntp_ok=no  ;;
12343  *)     ntp_ok=yes ;;
12344 esac
12345 fi;
12346 if test "$ntp_ok" = "yes"; then
12347     cat >>confdefs.h <<\EOF
12348 #define AUDIO_CHU 1
12349 EOF
12350
12351 fi
12352 echo "$as_me:12352: result: $ntp_ok" >&5
12353 echo "${ECHO_T}$ntp_ok" >&6
12354 # We used to check for sunos/solaris target...
12355 case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
12356  yes*no*) { echo "$as_me:12356: WARNING: *** But the expected answer is...no ***" >&5
12357 echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
12358 esac
12359
12360 # Not under HP-UX
12361 echo "$as_me:12361: checking Datum Programmable Time System" >&5
12362 echo $ECHO_N "checking Datum Programmable Time System... $ECHO_C" >&6
12363 # Check whether --enable-DATUM or --disable-DATUM was given.
12364 if test "${enable_DATUM+set}" = set; then
12365   enableval="$enable_DATUM"
12366   ntp_ok=$enableval
12367 else
12368   case "$ac_cv_header_termios_h" in
12369     yes)
12370         ntp_ok=$ntp_eac
12371         ;;
12372     *) ntp_ok=no
12373         ;;
12374     esac
12375 fi;
12376 if test "$ntp_ok" = "yes"; then
12377     ntp_refclock=yes
12378     cat >>confdefs.h <<\EOF
12379 #define CLOCK_DATUM 1
12380 EOF
12381
12382 fi
12383 echo "$as_me:12383: result: $ntp_ok" >&5
12384 echo "${ECHO_T}$ntp_ok" >&6
12385
12386 echo "$as_me:12386: checking Forum Graphic GPS" >&5
12387 echo $ECHO_N "checking Forum Graphic GPS... $ECHO_C" >&6
12388 # Check whether --enable-FG or --disable-FG was given.
12389 if test "${enable_FG+set}" = set; then
12390   enableval="$enable_FG"
12391   ntp_ok=$enableval
12392 else
12393   ntp_ok=$ntp_eac
12394 fi;
12395 if test "$ntp_ok" = "yes"; then
12396     ntp_refclock=yes
12397     cat >>confdefs.h <<\EOF
12398 #define CLOCK_FG 1
12399 EOF
12400
12401 fi
12402 echo "$as_me:12402: result: $ntp_ok" >&5
12403 echo "${ECHO_T}$ntp_ok" >&6
12404
12405 # Requires modem control
12406 echo "$as_me:12406: checking Heath GC-1000 WWV/WWVH receiver" >&5
12407 echo $ECHO_N "checking Heath GC-1000 WWV/WWVH receiver... $ECHO_C" >&6
12408 # Check whether --enable-HEATH or --disable-HEATH was given.
12409 if test "${enable_HEATH+set}" = set; then
12410   enableval="$enable_HEATH"
12411   ntp_ok=$enableval
12412 else
12413   cat >conftest.$ac_ext <<_ACEOF
12414 #line 12414 "configure"
12415 #include "confdefs.h"
12416 #include <termios.h>
12417 #ifdef HAVE_SYS_IOCTL_H
12418 #include <sys/ioctl.h>
12419 #endif
12420 #ifdef TIOCMBIS
12421          yes
12422 #endif
12423
12424 _ACEOF
12425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12426   egrep "yes" >/dev/null 2>&1; then
12427   ntp_ok=$ntp_eac
12428 else
12429   ntp_ok=no
12430 fi
12431 rm -f conftest*
12432
12433 fi;
12434 if test "$ntp_ok" = "yes"; then
12435     ntp_refclock=yes
12436     cat >>confdefs.h <<\EOF
12437 #define CLOCK_HEATH 1
12438 EOF
12439
12440 fi
12441 echo "$as_me:12441: result: $ntp_ok" >&5
12442 echo "${ECHO_T}$ntp_ok" >&6
12443
12444 echo "$as_me:12444: checking HP 58503A GPS receiver" >&5
12445 echo $ECHO_N "checking HP 58503A GPS receiver... $ECHO_C" >&6
12446 # Check whether --enable-HPGPS or --disable-HPGPS was given.
12447 if test "${enable_HPGPS+set}" = set; then
12448   enableval="$enable_HPGPS"
12449   ntp_ok=$enableval
12450 else
12451   ntp_ok=$ntp_eac
12452 fi;
12453 if test "$ntp_ok" = "yes"; then
12454     ntp_refclock=yes
12455     cat >>confdefs.h <<\EOF
12456 #define CLOCK_HPGPS 1
12457 EOF
12458
12459 fi
12460 echo "$as_me:12460: result: $ntp_ok" >&5
12461 echo "${ECHO_T}$ntp_ok" >&6
12462
12463 echo "$as_me:12463: checking Sun IRIG audio decoder" >&5
12464 echo $ECHO_N "checking Sun IRIG audio decoder... $ECHO_C" >&6
12465 # Check whether --enable-IRIG or --disable-IRIG was given.
12466 if test "${enable_IRIG+set}" = set; then
12467   enableval="$enable_IRIG"
12468   ntp_ok=$enableval
12469 else
12470   case "$ntp_eac$ntp_canaudio" in
12471      *no*)      ntp_ok=no  ;;
12472      *)         ntp_ok=yes ;;
12473     esac
12474 fi;
12475 if test "$ntp_ok" = "yes"; then
12476     ntp_refclock=yes
12477     cat >>confdefs.h <<\EOF
12478 #define CLOCK_IRIG 1
12479 EOF
12480
12481 fi
12482 echo "$as_me:12482: result: $ntp_ok" >&5
12483 echo "${ECHO_T}$ntp_ok" >&6
12484 case "$ntp_ok$ntp_canaudio" in
12485  yesno) { echo "$as_me:12485: WARNING: *** But the expected answer is... no ***" >&5
12486 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12487 esac
12488
12489 echo "$as_me:12489: checking Leitch CSD 5300 Master Clock System Driver" >&5
12490 echo $ECHO_N "checking Leitch CSD 5300 Master Clock System Driver... $ECHO_C" >&6
12491 # Check whether --enable-LEITCH or --disable-LEITCH was given.
12492 if test "${enable_LEITCH+set}" = set; then
12493   enableval="$enable_LEITCH"
12494   ntp_ok=$enableval
12495 else
12496   ntp_ok=$ntp_eac
12497 fi;
12498 if test "$ntp_ok" = "yes"; then
12499     ntp_refclock=yes
12500     cat >>confdefs.h <<\EOF
12501 #define CLOCK_LEITCH 1
12502 EOF
12503
12504 fi
12505 echo "$as_me:12505: result: $ntp_ok" >&5
12506 echo "${ECHO_T}$ntp_ok" >&6
12507
12508 echo "$as_me:12508: checking local clock reference" >&5
12509 echo $ECHO_N "checking local clock reference... $ECHO_C" >&6
12510 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given.
12511 if test "${enable_LOCAL_CLOCK+set}" = set; then
12512   enableval="$enable_LOCAL_CLOCK"
12513   ntp_ok=$enableval
12514 else
12515   ntp_ok=$ntp_eac
12516 fi;
12517 if test "$ntp_ok" = "yes"; then
12518     ntp_refclock=yes
12519     cat >>confdefs.h <<\EOF
12520 #define CLOCK_LOCAL 1
12521 EOF
12522
12523 fi
12524 echo "$as_me:12524: result: $ntp_ok" >&5
12525 echo "${ECHO_T}$ntp_ok" >&6
12526
12527 echo "$as_me:12527: checking EES M201 MSF receiver" >&5
12528 echo $ECHO_N "checking EES M201 MSF receiver... $ECHO_C" >&6
12529 # Check whether --enable-MSFEES or --disable-MSFEES was given.
12530 if test "${enable_MSFEES+set}" = set; then
12531   enableval="$enable_MSFEES"
12532   ntp_ok=$enableval
12533 else
12534   ntp_ok=$ntp_eac
12535 fi;
12536 if test "$ntp_ok" = "yes"; then
12537     ntp_refclock=yes
12538     cat >>confdefs.h <<\EOF
12539 #define CLOCK_MSFEES 1
12540 EOF
12541
12542 fi
12543 echo "$as_me:12543: result: $ntp_ok" >&5
12544 echo "${ECHO_T}$ntp_ok" >&6
12545
12546 # Not Ultrix
12547 echo "$as_me:12547: checking Magnavox MX4200 GPS receiver" >&5
12548 echo $ECHO_N "checking Magnavox MX4200 GPS receiver... $ECHO_C" >&6
12549 # Check whether --enable-MX4200 or --disable-MX4200 was given.
12550 if test "${enable_MX4200+set}" = set; then
12551   enableval="$enable_MX4200"
12552   ntp_ok=$enableval
12553 else
12554   case "$ac_cv_var_ppsclock" in
12555      yes) ntp_ok=$ntp_eac
12556         ;;
12557      *) ntp_ok=no
12558         ;;
12559     esac
12560 fi;
12561 if test "$ntp_ok" = "yes"; then
12562     ntp_refclock=yes
12563     cat >>confdefs.h <<\EOF
12564 #define CLOCK_MX4200 1
12565 EOF
12566
12567 fi
12568 echo "$as_me:12568: result: $ntp_ok" >&5
12569 echo "${ECHO_T}$ntp_ok" >&6
12570 case "$ntp_ok$target" in
12571  yes*-*-ultrix*) { echo "$as_me:12571: WARNING: *** But the expected answer is... no ***" >&5
12572 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12573 esac
12574
12575 echo "$as_me:12575: checking NMEA GPS receiver" >&5
12576 echo $ECHO_N "checking NMEA GPS receiver... $ECHO_C" >&6
12577 # Check whether --enable-NMEA or --disable-NMEA was given.
12578 if test "${enable_NMEA+set}" = set; then
12579   enableval="$enable_NMEA"
12580   ntp_ok=$enableval
12581 else
12582   ntp_ok=$ntp_eac
12583 fi;
12584 if test "$ntp_ok" = "yes"; then
12585     ntp_refclock=yes
12586     cat >>confdefs.h <<\EOF
12587 #define CLOCK_NMEA 1
12588 EOF
12589
12590 fi
12591 echo "$as_me:12591: result: $ntp_ok" >&5
12592 echo "${ECHO_T}$ntp_ok" >&6
12593
12594 echo "$as_me:12594: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
12595 echo $ECHO_N "checking for ONCORE Motorola VP/UT Oncore GPS... $ECHO_C" >&6
12596 # Check whether --enable-ONCORE or --disable-ONCORE was given.
12597 if test "${enable_ONCORE+set}" = set; then
12598   enableval="$enable_ONCORE"
12599   ntp_ok=$enableval
12600 else
12601   ntp_ok=$ntp_eac
12602 fi;
12603 case "$ac_cv_var_oncore_ok" in
12604  no) ntp_ok=no ;;
12605 esac
12606 if test "$ntp_ok" = "yes"; then
12607     ntp_refclock=yes
12608     cat >>confdefs.h <<\EOF
12609 #define CLOCK_ONCORE 1
12610 EOF
12611
12612 fi
12613 echo "$as_me:12613: result: $ntp_ok" >&5
12614 echo "${ECHO_T}$ntp_ok" >&6
12615
12616 echo "$as_me:12616: checking for Palisade clock" >&5
12617 echo $ECHO_N "checking for Palisade clock... $ECHO_C" >&6
12618 # Check whether --enable-PALISADE or --disable-PALISADE was given.
12619 if test "${enable_PALISADE+set}" = set; then
12620   enableval="$enable_PALISADE"
12621   ntp_ok=$enableval
12622 else
12623   case "$ac_cv_header_termios_h" in
12624     yes)
12625         ntp_ok=$ntp_eac
12626         ;;
12627     *) ntp_ok=no
12628         ;;
12629     esac
12630 fi;
12631
12632 if test "$ntp_ok" = "yes"; then
12633     ntp_refclock=yes
12634     cat >>confdefs.h <<\EOF
12635 #define CLOCK_PALISADE 1
12636 EOF
12637
12638 fi
12639 echo "$as_me:12639: result: $ntp_ok" >&5
12640 echo "${ECHO_T}$ntp_ok" >&6
12641
12642 echo "$as_me:12642: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
12643 echo $ECHO_N "checking PST/Traconex 1020 WWV/WWVH receiver... $ECHO_C" >&6
12644 # Check whether --enable-PST or --disable-PST was given.
12645 if test "${enable_PST+set}" = set; then
12646   enableval="$enable_PST"
12647   ntp_ok=$enableval
12648 else
12649   ntp_ok=$ntp_eac
12650 fi;
12651 if test "$ntp_ok" = "yes"; then
12652     ntp_refclock=yes
12653     cat >>confdefs.h <<\EOF
12654 #define CLOCK_PST 1
12655 EOF
12656
12657 fi
12658 echo "$as_me:12658: result: $ntp_ok" >&5
12659 echo "${ECHO_T}$ntp_ok" >&6
12660
12661 # Not Ultrix
12662 echo "$as_me:12662: checking Rockwell Jupiter GPS receiver" >&5
12663 echo $ECHO_N "checking Rockwell Jupiter GPS receiver... $ECHO_C" >&6
12664 # Check whether --enable-JUPITER or --disable-JUPITER was given.
12665 if test "${enable_JUPITER+set}" = set; then
12666   enableval="$enable_JUPITER"
12667   ntp_ok=$enableval
12668 else
12669   case "$ac_cv_var_ppsclock" in
12670 #     yes) ntp_ok=$ntp_eac
12671 #        ;;
12672      *) ntp_ok=no
12673         ;;
12674     esac
12675 fi;
12676 if test "$ntp_ok" = "yes"; then
12677     ntp_refclock=yes
12678     cat >>confdefs.h <<\EOF
12679 #define CLOCK_JUPITER 1
12680 EOF
12681
12682 fi
12683 echo "$as_me:12683: result: $ntp_ok" >&5
12684 echo "${ECHO_T}$ntp_ok" >&6
12685 case "$ntp_ok$target" in
12686  yes*-*-ultrix*) { echo "$as_me:12686: WARNING: *** But the expected answer is... no ***" >&5
12687 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12688 esac
12689
12690 # Requires modem control
12691 echo "$as_me:12691: checking PTB modem service" >&5
12692 echo $ECHO_N "checking PTB modem service... $ECHO_C" >&6
12693 # Check whether --enable-PTBACTS or --disable-PTBACTS was given.
12694 if test "${enable_PTBACTS+set}" = set; then
12695   enableval="$enable_PTBACTS"
12696   ntp_ok=$enableval
12697 else
12698   cat >conftest.$ac_ext <<_ACEOF
12699 #line 12699 "configure"
12700 #include "confdefs.h"
12701 #include <termios.h>
12702 #ifdef HAVE_SYS_IOCTL_H
12703 #include <sys/ioctl.h>
12704 #endif
12705 #ifdef TIOCMBIS
12706          yes
12707 #endif
12708
12709 _ACEOF
12710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12711   egrep "yes" >/dev/null 2>&1; then
12712   ntp_ok=$ntp_eac
12713 else
12714   ntp_ok=no
12715 fi
12716 rm -f conftest*
12717
12718 fi;
12719 if test "$ntp_ok" = "yes"; then
12720     ntp_refclock=yes
12721     cat >>confdefs.h <<\EOF
12722 #define CLOCK_PTBACTS 1
12723 EOF
12724
12725 fi
12726 echo "$as_me:12726: result: $ntp_ok" >&5
12727 echo "${ECHO_T}$ntp_ok" >&6
12728
12729 echo "$as_me:12729: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
12730 echo $ECHO_N "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ECHO_C" >&6
12731 # Check whether --enable-TPRO or --disable-TPRO was given.
12732 if test "${enable_TPRO+set}" = set; then
12733   enableval="$enable_TPRO"
12734   ntp_ok=$enableval
12735 else
12736   case "$ac_cv_header_sys_tpro_h" in
12737      yes)
12738         ntp_ok=$ntp_eac
12739         ;;
12740      *) ntp_ok=no
12741         ;;
12742     esac
12743 fi;
12744 if test "$ntp_ok" = "yes"; then
12745     ntp_refclock=yes
12746     cat >>confdefs.h <<\EOF
12747 #define CLOCK_TPRO 1
12748 EOF
12749
12750 fi
12751 echo "$as_me:12751: result: $ntp_ok" >&5
12752 echo "${ECHO_T}$ntp_ok" >&6
12753 case "$ntp_ok$ac_cv_header_sys_tpro" in
12754  yesno) { echo "$as_me:12754: WARNING: *** But the expected answer is... no ***" >&5
12755 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12756 esac
12757
12758 echo "$as_me:12758: checking TRAK 8810 GPS receiver" >&5
12759 echo $ECHO_N "checking TRAK 8810 GPS receiver... $ECHO_C" >&6
12760 # Check whether --enable-TRAK or --disable-TRAK was given.
12761 if test "${enable_TRAK+set}" = set; then
12762   enableval="$enable_TRAK"
12763   ntp_ok=$enableval
12764 else
12765   ntp_ok=$ntp_eac
12766 fi;
12767 if test "$ntp_ok" = "yes"; then
12768     ntp_refclock=yes
12769     cat >>confdefs.h <<\EOF
12770 #define CLOCK_TRAK 1
12771 EOF
12772
12773 fi
12774 echo "$as_me:12774: result: $ntp_ok" >&5
12775 echo "${ECHO_T}$ntp_ok" >&6
12776
12777 echo "$as_me:12777: checking Chrono-log K-series WWVB receiver" >&5
12778 echo $ECHO_N "checking Chrono-log K-series WWVB receiver... $ECHO_C" >&6
12779 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given.
12780 if test "${enable_CHRONOLOG+set}" = set; then
12781   enableval="$enable_CHRONOLOG"
12782   ntp_ok=$enableval
12783 else
12784   ntp_ok=$ntp_eac
12785 fi;
12786 if test "$ntp_ok" = "yes"; then
12787     ntp_refclock=yes
12788     cat >>confdefs.h <<\EOF
12789 #define CLOCK_CHRONOLOG 1
12790 EOF
12791
12792 fi
12793 echo "$as_me:12793: result: $ntp_ok" >&5
12794 echo "${ECHO_T}$ntp_ok" >&6
12795
12796 echo "$as_me:12796: checking Dumb generic hh:mm:ss local clock" >&5
12797 echo $ECHO_N "checking Dumb generic hh:mm:ss local clock... $ECHO_C" >&6
12798 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given.
12799 if test "${enable_DUMBCLOCK+set}" = set; then
12800   enableval="$enable_DUMBCLOCK"
12801   ntp_ok=$enableval
12802 else
12803   ntp_ok=$ntp_eac
12804 fi;
12805 if test "$ntp_ok" = "yes"; then
12806     ntp_refclock=yes
12807     cat >>confdefs.h <<\EOF
12808 #define CLOCK_DUMBCLOCK 1
12809 EOF
12810
12811 fi
12812 echo "$as_me:12812: result: $ntp_ok" >&5
12813 echo "${ECHO_T}$ntp_ok" >&6
12814
12815 echo "$as_me:12815: checking Conrad parallel port radio clock" >&5
12816 echo $ECHO_N "checking Conrad parallel port radio clock... $ECHO_C" >&6
12817 # Check whether --enable-PCF or --disable-PCF was given.
12818 if test "${enable_PCF+set}" = set; then
12819   enableval="$enable_PCF"
12820   ntp_ok=$enableval
12821 else
12822   ntp_ok=$ntp_eac
12823 fi;
12824 if test "$ntp_ok" = "yes"; then
12825     ntp_refclock=yes
12826     cat >>confdefs.h <<\EOF
12827 #define CLOCK_PCF 1
12828 EOF
12829
12830 fi
12831 echo "$as_me:12831: result: $ntp_ok" >&5
12832 echo "${ECHO_T}$ntp_ok" >&6
12833
12834 echo "$as_me:12834: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
12835 echo $ECHO_N "checking Spectracom 8170/Netclock/2 WWVB receiver... $ECHO_C" >&6
12836 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given.
12837 if test "${enable_SPECTRACOM+set}" = set; then
12838   enableval="$enable_SPECTRACOM"
12839   ntp_ok=$enableval
12840 else
12841   ntp_ok=$ntp_eac
12842 fi;
12843 if test "$ntp_ok" = "yes"; then
12844     ntp_refclock=yes
12845     cat >>confdefs.h <<\EOF
12846 #define CLOCK_SPECTRACOM 1
12847 EOF
12848
12849 fi
12850 echo "$as_me:12850: result: $ntp_ok" >&5
12851 echo "${ECHO_T}$ntp_ok" >&6
12852
12853 # Not on a vax-dec-bsd
12854 echo "$as_me:12854: checking Kinemetrics/TrueTime receivers" >&5
12855 echo $ECHO_N "checking Kinemetrics/TrueTime receivers... $ECHO_C" >&6
12856 # Check whether --enable-TRUETIME or --disable-TRUETIME was given.
12857 if test "${enable_TRUETIME+set}" = set; then
12858   enableval="$enable_TRUETIME"
12859   ntp_ok=$enableval
12860 else
12861   case "$target" in
12862      vax-dec-bsd)
12863         ntp_ok=no
12864         ;;
12865      *)
12866         ntp_ok=$ntp_eac
12867         ;;
12868     esac
12869 fi;
12870 if test "$ntp_ok" = "yes"; then
12871     ntp_refclock=yes
12872     cat >>confdefs.h <<\EOF
12873 #define CLOCK_TRUETIME 1
12874 EOF
12875
12876 fi
12877 echo "$as_me:12877: result: $ntp_ok" >&5
12878 echo "${ECHO_T}$ntp_ok" >&6
12879 case "$ntp_ok$target" in
12880  yesvax-dec-bsd) { echo "$as_me:12880: WARNING: *** But the expected answer is... no ***" >&5
12881 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12882 esac
12883
12884 echo "$as_me:12884: checking Ultralink M320 WWVB receiver" >&5
12885 echo $ECHO_N "checking Ultralink M320 WWVB receiver... $ECHO_C" >&6
12886 # Check whether --enable-ULINK or --disable-ULINK was given.
12887 if test "${enable_ULINK+set}" = set; then
12888   enableval="$enable_ULINK"
12889   ntp_ok=$enableval
12890 else
12891   ntp_ok=$ntp_eac
12892 fi;
12893 if test "$ntp_ok" = "yes"; then
12894     ntp_refclock=yes
12895     cat >>confdefs.h <<\EOF
12896 #define CLOCK_ULINK 1
12897 EOF
12898
12899 fi
12900 echo "$as_me:12900: result: $ntp_ok" >&5
12901 echo "${ECHO_T}$ntp_ok" >&6
12902
12903 echo "$as_me:12903: checking WWV receiver" >&5
12904 echo $ECHO_N "checking WWV receiver... $ECHO_C" >&6
12905 # Check whether --enable-WWV or --disable-WWV was given.
12906 if test "${enable_WWV+set}" = set; then
12907   enableval="$enable_WWV"
12908   ntp_ok=$enableval
12909 else
12910   case "$ntp_eac$ntp_canaudio" in
12911      *no*)      ntp_ok=no  ;;
12912      *)         ntp_ok=yes ;;
12913     esac
12914 fi;
12915 if test "$ntp_ok" = "yes"; then
12916     ntp_refclock=yes
12917     cat >>confdefs.h <<\EOF
12918 #define CLOCK_WWV 1
12919 EOF
12920
12921 fi
12922 echo "$as_me:12922: result: $ntp_ok" >&5
12923 echo "${ECHO_T}$ntp_ok" >&6
12924 case "$ntp_ok$ntp_canaudio" in
12925  yesno) { echo "$as_me:12925: WARNING: *** But the expected answer is... no ***" >&5
12926 echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
12927 esac
12928
12929 # Requires modem control
12930 echo "$as_me:12930: checking USNO modem service" >&5
12931 echo $ECHO_N "checking USNO modem service... $ECHO_C" >&6
12932 # Check whether --enable-USNO or --disable-USNO was given.
12933 if test "${enable_USNO+set}" = set; then
12934   enableval="$enable_USNO"
12935   ntp_ok=$enableval
12936 else
12937   cat >conftest.$ac_ext <<_ACEOF
12938 #line 12938 "configure"
12939 #include "confdefs.h"
12940 #include <termios.h>
12941 #ifdef HAVE_SYS_IOCTL_H
12942 #include <sys/ioctl.h>
12943 #endif
12944 #ifdef TIOCMBIS
12945          yes
12946 #endif
12947
12948 _ACEOF
12949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12950   egrep "yes" >/dev/null 2>&1; then
12951   ntp_ok=$ntp_eac
12952 else
12953   ntp_ok=no
12954 fi
12955 rm -f conftest*
12956
12957 fi;
12958 if test "$ntp_ok" = "yes"; then
12959     ntp_refclock=yes
12960     cat >>confdefs.h <<\EOF
12961 #define CLOCK_USNO 1
12962 EOF
12963
12964 fi
12965 echo "$as_me:12965: result: $ntp_ok" >&5
12966 echo "${ECHO_T}$ntp_ok" >&6
12967
12968 echo "$as_me:12968: checking for default inclusion of all suitable PARSE clocks" >&5
12969 echo $ECHO_N "checking for default inclusion of all suitable PARSE clocks... $ECHO_C" >&6
12970 # Check whether --enable-parse-clocks or --disable-parse-clocks was given.
12971 if test "${enable_parse_clocks+set}" = set; then
12972   enableval="$enable_parse_clocks"
12973   ntp_eapc=$enableval
12974 else
12975   case "$ntp_eac" in
12976      yes) ntp_eapc=$ntp_canparse ;;
12977      *) ntp_eapc=no ;;
12978     esac
12979     ntp_eapc=no
12980 fi;
12981 echo "$as_me:12981: result: $ntp_eapc" >&5
12982 echo "${ECHO_T}$ntp_eapc" >&6
12983
12984 case "$ntp_eac$ntp_eapc$ntp_canparse" in
12985  noyes*)
12986     { { echo "$as_me:12986: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&5
12987 echo "$as_me: error: \"--enable-parse-clocks\" requires \"--enable-all-clocks\"." >&2;}
12988    { (exit 1); exit 1; }; }
12989     ;;
12990  yesyesno)
12991     { { echo "$as_me:12991: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&5
12992 echo "$as_me: error: You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" >&2;}
12993    { (exit 1); exit 1; }; }
12994     ;;
12995  *) ;;
12996 esac
12997
12998 ntp_libparse=no
12999 ntp_parseutil=no
13000 ntp_rawdcf=no
13001
13002 echo "$as_me:13002: checking Diem Computime Radio Clock" >&5
13003 echo $ECHO_N "checking Diem Computime Radio Clock... $ECHO_C" >&6
13004 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given.
13005 if test "${enable_COMPUTIME+set}" = set; then
13006   enableval="$enable_COMPUTIME"
13007   ntp_ok=$enableval
13008 else
13009   ntp_ok=$ntp_eapc
13010 fi;
13011 if test "$ntp_ok" = "yes"; then
13012     ntp_libparse=yes
13013     ntp_refclock=yes
13014     cat >>confdefs.h <<\EOF
13015 #define CLOCK_COMPUTIME 1
13016 EOF
13017
13018 fi
13019 echo "$as_me:13019: result: $ntp_ok" >&5
13020 echo "${ECHO_T}$ntp_ok" >&6
13021 case "$ntp_ok$ntp_canparse" in
13022  yesno)
13023     { { echo "$as_me:13023: error: That's a parse clock and this system doesn't support it!" >&5
13024 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13025    { (exit 1); exit 1; }; }
13026     ;;
13027 esac
13028
13029 echo "$as_me:13029: checking ELV/DCF7000 clock" >&5
13030 echo $ECHO_N "checking ELV/DCF7000 clock... $ECHO_C" >&6
13031 # Check whether --enable-DCF7000 or --disable-DCF7000 was given.
13032 if test "${enable_DCF7000+set}" = set; then
13033   enableval="$enable_DCF7000"
13034   ntp_ok=$enableval
13035 else
13036   ntp_ok=$ntp_eapc
13037 fi;
13038 if test "$ntp_ok" = "yes"; then
13039     ntp_libparse=yes
13040     ntp_refclock=yes
13041     cat >>confdefs.h <<\EOF
13042 #define CLOCK_DCF7000 1
13043 EOF
13044
13045 fi
13046 echo "$as_me:13046: result: $ntp_ok" >&5
13047 echo "${ECHO_T}$ntp_ok" >&6
13048 case "$ntp_ok$ntp_canparse" in
13049  yesno)
13050     { { echo "$as_me:13050: error: That's a parse clock and this system doesn't support it!" >&5
13051 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13052    { (exit 1); exit 1; }; }
13053     ;;
13054 esac
13055
13056 echo "$as_me:13056: checking HOPF 6021 clock" >&5
13057 echo $ECHO_N "checking HOPF 6021 clock... $ECHO_C" >&6
13058 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given.
13059 if test "${enable_HOPF6021+set}" = set; then
13060   enableval="$enable_HOPF6021"
13061   ntp_ok=$enableval
13062 else
13063   ntp_ok=$ntp_eapc
13064 fi;
13065 if test "$ntp_ok" = "yes"; then
13066     ntp_libparse=yes
13067     ntp_refclock=yes
13068     cat >>confdefs.h <<\EOF
13069 #define CLOCK_HOPF6021 1
13070 EOF
13071
13072 fi
13073 echo "$as_me:13073: result: $ntp_ok" >&5
13074 echo "${ECHO_T}$ntp_ok" >&6
13075 case "$ntp_ok$ntp_canparse" in
13076  yesno)
13077     { { echo "$as_me:13077: error: That's a parse clock and this system doesn't support it!" >&5
13078 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13079    { (exit 1); exit 1; }; }
13080     ;;
13081 esac
13082
13083 echo "$as_me:13083: checking Meinberg clocks" >&5
13084 echo $ECHO_N "checking Meinberg clocks... $ECHO_C" >&6
13085 # Check whether --enable-MEINBERG or --disable-MEINBERG was given.
13086 if test "${enable_MEINBERG+set}" = set; then
13087   enableval="$enable_MEINBERG"
13088   ntp_ok=$enableval
13089 else
13090   ntp_ok=$ntp_eapc
13091 fi;
13092 if test "$ntp_ok" = "yes"; then
13093     ntp_libparse=yes
13094     ntp_refclock=yes
13095     cat >>confdefs.h <<\EOF
13096 #define CLOCK_MEINBERG 1
13097 EOF
13098
13099 fi
13100 echo "$as_me:13100: result: $ntp_ok" >&5
13101 echo "${ECHO_T}$ntp_ok" >&6
13102 case "$ntp_ok$ntp_canparse" in
13103  yesno)
13104     { { echo "$as_me:13104: error: That's a parse clock and this system doesn't support it!" >&5
13105 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13106    { (exit 1); exit 1; }; }
13107     ;;
13108 esac
13109
13110 echo "$as_me:13110: checking DCF77 raw time code" >&5
13111 echo $ECHO_N "checking DCF77 raw time code... $ECHO_C" >&6
13112 # Check whether --enable-RAWDCF or --disable-RAWDCF was given.
13113 if test "${enable_RAWDCF+set}" = set; then
13114   enableval="$enable_RAWDCF"
13115   ntp_ok=$enableval
13116 else
13117   ntp_ok=$ntp_eapc
13118 fi;
13119 if test "$ntp_ok" = "yes"; then
13120     ntp_libparse=yes
13121     ntp_parseutil=yes
13122     ntp_refclock=yes
13123     ntp_rawdcf=yes
13124     cat >>confdefs.h <<\EOF
13125 #define CLOCK_RAWDCF 1
13126 EOF
13127
13128 fi
13129 echo "$as_me:13129: result: $ntp_ok" >&5
13130 echo "${ECHO_T}$ntp_ok" >&6
13131 case "$ntp_ok$ntp_canparse" in
13132  yesno)
13133     { { echo "$as_me:13133: error: That's a parse clock and this system doesn't support it!" >&5
13134 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13135    { (exit 1); exit 1; }; }
13136     ;;
13137 esac
13138
13139 case "$ntp_rawdcf" in
13140  yes)
13141     echo "$as_me:13141: checking if we must enable parity for RAWDCF" >&5
13142 echo $ECHO_N "checking if we must enable parity for RAWDCF... $ECHO_C" >&6
13143 if test "${ac_cv_var_rawdcf_parity+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   ans=no
13147     case "$target" in
13148      *-*-linux*)
13149         ans=yes
13150         ;;
13151     esac
13152     ac_cv_var_rawdcf_parity=$ans
13153 fi
13154 echo "$as_me:13154: result: $ac_cv_var_rawdcf_parity" >&5
13155 echo "${ECHO_T}$ac_cv_var_rawdcf_parity" >&6
13156     case "$ac_cv_var_rawdcf_parity" in
13157      yes) cat >>confdefs.h <<\EOF
13158 #define RAWDCF_NO_IGNPAR 1
13159 EOF
13160  ;;
13161     esac
13162     ;;
13163
13164  *) # HMS: Is this a good idea?
13165     ac_cv_var_rawdcf_parity=no
13166     ;;
13167 esac
13168
13169 echo "$as_me:13169: checking RCC 8000 clock" >&5
13170 echo $ECHO_N "checking RCC 8000 clock... $ECHO_C" >&6
13171 # Check whether --enable-RCC8000 or --disable-RCC8000 was given.
13172 if test "${enable_RCC8000+set}" = set; then
13173   enableval="$enable_RCC8000"
13174   ntp_ok=$enableval
13175 else
13176   ntp_ok=$ntp_eapc
13177 fi;
13178 if test "$ntp_ok" = "yes"; then
13179     ntp_libparse=yes
13180     ntp_refclock=yes
13181     cat >>confdefs.h <<\EOF
13182 #define CLOCK_RCC8000 1
13183 EOF
13184
13185 fi
13186 echo "$as_me:13186: result: $ntp_ok" >&5
13187 echo "${ECHO_T}$ntp_ok" >&6
13188 case "$ntp_ok$ntp_canparse" in
13189  yesno)
13190     { { echo "$as_me:13190: error: That's a parse clock and this system doesn't support it!" >&5
13191 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13192    { (exit 1); exit 1; }; }
13193     ;;
13194 esac
13195
13196 echo "$as_me:13196: checking Schmid DCF77 clock" >&5
13197 echo $ECHO_N "checking Schmid DCF77 clock... $ECHO_C" >&6
13198 # Check whether --enable-SCHMID or --disable-SCHMID was given.
13199 if test "${enable_SCHMID+set}" = set; then
13200   enableval="$enable_SCHMID"
13201   ntp_ok=$enableval
13202 else
13203   ntp_ok=$ntp_eapc
13204 fi;
13205 if test "$ntp_ok" = "yes"; then
13206     ntp_libparse=yes
13207     ntp_refclock=yes
13208     cat >>confdefs.h <<\EOF
13209 #define CLOCK_SCHMID 1
13210 EOF
13211
13212 fi
13213 echo "$as_me:13213: result: $ntp_ok" >&5
13214 echo "${ECHO_T}$ntp_ok" >&6
13215 case "$ntp_ok$ntp_canparse" in
13216  yesno)
13217     { { echo "$as_me:13217: error: That's a parse clock and this system doesn't support it!" >&5
13218 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13219    { (exit 1); exit 1; }; }
13220     ;;
13221 esac
13222
13223 echo "$as_me:13223: checking Trimble GPS receiver/TAIP protocol" >&5
13224 echo $ECHO_N "checking Trimble GPS receiver/TAIP protocol... $ECHO_C" >&6
13225 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given.
13226 if test "${enable_TRIMTAIP+set}" = set; then
13227   enableval="$enable_TRIMTAIP"
13228   ntp_ok=$enableval
13229 else
13230   ntp_ok=$ntp_eapc
13231 fi;
13232 if test "$ntp_ok" = "yes"; then
13233     ntp_libparse=yes
13234     ntp_refclock=yes
13235     cat >>confdefs.h <<\EOF
13236 #define CLOCK_TRIMTAIP 1
13237 EOF
13238
13239 fi
13240 echo "$as_me:13240: result: $ntp_ok" >&5
13241 echo "${ECHO_T}$ntp_ok" >&6
13242 case "$ntp_ok$ntp_canparse" in
13243  yesno)
13244     { { echo "$as_me:13244: error: That's a parse clock and this system doesn't support it!" >&5
13245 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13246    { (exit 1); exit 1; }; }
13247     ;;
13248 esac
13249
13250 echo "$as_me:13250: checking Trimble GPS receiver/TSIP protocol" >&5
13251 echo $ECHO_N "checking Trimble GPS receiver/TSIP protocol... $ECHO_C" >&6
13252 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given.
13253 if test "${enable_TRIMTSIP+set}" = set; then
13254   enableval="$enable_TRIMTSIP"
13255   ntp_ok=$enableval
13256 else
13257   ntp_ok=$ntp_eapc
13258 fi;
13259 if test "$ntp_ok" = "yes"; then
13260     ntp_libparse=yes
13261     ntp_refclock=yes
13262     cat >>confdefs.h <<\EOF
13263 #define CLOCK_TRIMTSIP 1
13264 EOF
13265
13266 fi
13267 echo "$as_me:13267: result: $ntp_ok" >&5
13268 echo "${ECHO_T}$ntp_ok" >&6
13269 case "$ntp_ok$ntp_canparse" in
13270  yesno)
13271     { { echo "$as_me:13271: error: That's a parse clock and this system doesn't support it!" >&5
13272 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13273    { (exit 1); exit 1; }; }
13274     ;;
13275 esac
13276
13277 echo "$as_me:13277: checking WHARTON 400A Series clock" >&5
13278 echo $ECHO_N "checking WHARTON 400A Series clock... $ECHO_C" >&6
13279 # Check whether --enable-WHARTON or --disable-WHARTON was given.
13280 if test "${enable_WHARTON+set}" = set; then
13281   enableval="$enable_WHARTON"
13282   ntp_ok=$enableval
13283 else
13284   ntp_ok=$ntp_eapc
13285 fi;
13286 if test "$ntp_ok" = "yes"; then
13287     ntp_libparse=yes
13288     ntp_refclock=yes
13289     cat >>confdefs.h <<\EOF
13290 #define CLOCK_WHARTON_400A 1
13291 EOF
13292
13293 fi
13294 echo "$as_me:13294: result: $ntp_ok" >&5
13295 echo "${ECHO_T}$ntp_ok" >&6
13296 case "$ntp_ok$ntp_canparse" in
13297  yesno)
13298     { { echo "$as_me:13298: error: That's a parse clock and this system doesn't support it!" >&5
13299 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13300    { (exit 1); exit 1; }; }
13301     ;;
13302 esac
13303
13304 echo "$as_me:13304: checking VARITEXT clock" >&5
13305 echo $ECHO_N "checking VARITEXT clock... $ECHO_C" >&6
13306 # Check whether --enable-VARITEXT or --disable-VARITEXT was given.
13307 if test "${enable_VARITEXT+set}" = set; then
13308   enableval="$enable_VARITEXT"
13309   ntp_ok=$enableval
13310 else
13311   ntp_ok=$ntp_eapc
13312 fi;
13313 if test "$ntp_ok" = "yes"; then
13314     ntp_libparse=yes
13315     ntp_refclock=yes
13316     cat >>confdefs.h <<\EOF
13317 #define CLOCK_VARITEXT 1
13318 EOF
13319
13320 fi
13321 echo "$as_me:13321: result: $ntp_ok" >&5
13322 echo "${ECHO_T}$ntp_ok" >&6
13323 case "$ntp_ok$ntp_canparse" in
13324  yesno)
13325     { { echo "$as_me:13325: error: That's a parse clock and this system doesn't support it!" >&5
13326 echo "$as_me: error: That's a parse clock and this system doesn't support it!" >&2;}
13327    { (exit 1); exit 1; }; }
13328     ;;
13329 esac
13330
13331 echo "$as_me:13331: checking if we need to make and use the parse libraries" >&5
13332 echo $ECHO_N "checking if we need to make and use the parse libraries... $ECHO_C" >&6
13333 ans=no
13334 case "$ntp_libparse" in
13335  yes)
13336     ans=yes
13337     cat >>confdefs.h <<\EOF
13338 #define CLOCK_PARSE 1
13339 EOF
13340
13341     LIBPARSE=../libparse/libparse.a
13342     MAKE_LIBPARSE=libparse.a
13343     MAKE_CHECK_Y2K=check_y2k
13344     cat >>confdefs.h <<\EOF
13345 #define PPS_SAMPLE 1
13346 EOF
13347
13348     cat >>confdefs.h <<\EOF
13349 #define CLOCK_ATOM 1
13350 EOF
13351
13352     ;;
13353 esac
13354 echo "$as_me:13354: result: $ans" >&5
13355 echo "${ECHO_T}$ans" >&6
13356
13357 echo "$as_me:13357: checking for openssl library directory" >&5
13358 echo $ECHO_N "checking for openssl library directory... $ECHO_C" >&6
13359
13360 # Check whether --with-openssl-libdir or --without-openssl-libdir was given.
13361 if test "${with_openssl_libdir+set}" = set; then
13362   withval="$with_openssl_libdir"
13363   ans=$withval
13364 else
13365   ans=yes
13366 fi;
13367 case "$ans" in
13368  no) ;;
13369  yes) # Look in:
13370     ans="/usr/lib /usr/local/lib /usr/local/ssl/lib"
13371     ;;
13372  *) # Look where they said
13373     ;;
13374 esac
13375 case "$ans" in
13376  no) ;;
13377  *) # Look for libcrypto.a and libssl.a:
13378     for i in $ans no
13379     do
13380         test -f $i/libcrypto.a -a -f $i/libssl.a && break
13381     done
13382     case "$i" in
13383      no)
13384         ans=no
13385         OPENSSL_LIB=
13386         ;;
13387      *) ans=$i
13388         OPENSSL_LIB=$ans
13389         ;;
13390     esac
13391     ;;
13392 esac
13393 echo "$as_me:13393: result: $ans" >&5
13394 echo "${ECHO_T}$ans" >&6
13395
13396 echo "$as_me:13396: checking for openssl include directory" >&5
13397 echo $ECHO_N "checking for openssl include directory... $ECHO_C" >&6
13398
13399 # Check whether --with-openssl-incdir or --without-openssl-incdir was given.
13400 if test "${with_openssl_incdir+set}" = set; then
13401   withval="$with_openssl_incdir"
13402   ans=$withval
13403 else
13404   ans=yes
13405 fi;
13406 case "$ans" in
13407  no) ;;
13408  yes) # look in:
13409     ans="/usr/include /usr/local/include /usr/local/ssl/include"
13410     ;;
13411  *) # Look where they said
13412     ;;
13413 esac
13414 case "$ans" in
13415  no) ;;
13416  *) # look for openssl/opensslconf.h:
13417     for i in $ans no
13418     do
13419         test -f $i/openssl/opensslconf.h && break
13420     done
13421     case "$i" in
13422      no)
13423         ans=no
13424         OPENSSL_INC=
13425         ;;
13426      *) ans=$i
13427         OPENSSL_INC=$ans
13428         ;;
13429     esac
13430     ;;
13431 esac
13432 echo "$as_me:13432: result: $ans" >&5
13433 echo "${ECHO_T}$ans" >&6
13434
13435 echo "$as_me:13435: checking for the level of crypto support" >&5
13436 echo $ECHO_N "checking for the level of crypto support... $ECHO_C" >&6
13437
13438 # Check whether --with-crypto or --without-crypto was given.
13439 if test "${with_crypto+set}" = set; then
13440   withval="$with_crypto"
13441   ans=$withval
13442 else
13443   ans=yes
13444 fi;
13445 case "$ans" in
13446  no) ;;
13447  yes|rsaref|openssl)
13448     case "$ans" in
13449      yes|rsaref) # Just "rsaref" when OpenSSL is ready
13450         ans=no
13451         ;;
13452      *)
13453         if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
13454         then
13455             ans=no
13456         else
13457             # We have OpenSSL inc/lib - use them.
13458             ans=openssl
13459             CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
13460             LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
13461             LIBS="$LIBS -lcrypto"
13462             cat >>confdefs.h <<\EOF
13463 #define DES 1
13464 EOF
13465
13466 cat >>confdefs.h <<\EOF
13467 #define OPENSSL
13468 EOF
13469
13470 cat >>confdefs.h <<\EOF
13471 #define PUBKEY
13472 EOF
13473
13474         fi
13475         ;;
13476     esac
13477
13478     case "$ans" in
13479      no)
13480         if test -f $srcdir/rsaref2/source/digit.c
13481         then
13482             ans=rsaref
13483             RSAOBJS=digit.o
13484             RSASRCS="digit.c digit.h"
13485             RSADIR=rsaref2
13486         fi
13487         if test -f $srcdir/rsaeuro1/source/rsaeuro.h
13488         then
13489             ans=rsaref
13490             RSAOBJS="md4c.o shsc.o"
13491             RSASRCS="md4c.c shsc.c"
13492             RSADIR=rsaeuro1
13493         fi
13494         if test "$ans" = "rsaref"; then
13495             LIBRSAREF=../librsaref/librsaref.a
13496             MAKE_LIBRSAREF=librsaref.a
13497             cat >>confdefs.h <<\EOF
13498 #define DES 1
13499 EOF
13500
13501             cat >>confdefs.h <<\EOF
13502 #define PUBKEY 1
13503 EOF
13504
13505 cat >>confdefs.h <<\EOF
13506 #define RSAREF
13507 EOF
13508
13509         fi
13510         ;;
13511     esac
13512     ;;
13513 esac
13514
13515 case "$ans" in
13516  no) ;;
13517  *)
13518
13519 cat >>confdefs.h <<\EOF
13520 #define AUTOKEY
13521 EOF
13522
13523     AUTOKEY=1
13524     ;;
13525 esac
13526 echo "$as_me:13526: result: $ans" >&5
13527 echo "${ECHO_T}$ans" >&6
13528
13529 echo "$as_me:13529: checking if we want to compile with ElectricFence" >&5
13530 echo $ECHO_N "checking if we want to compile with ElectricFence... $ECHO_C" >&6
13531
13532 # Check whether --with-electricfence or --without-electricfence was given.
13533 if test "${with_electricfence+set}" = set; then
13534   withval="$with_electricfence"
13535   ans=$withval
13536 else
13537   ans=no
13538 fi;
13539 case "$ans" in
13540  no) ;;
13541  *)
13542     LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
13543     EF_PROGS="eftest tstheap"
13544
13545     EF_LIBS=libefence.a
13546
13547     ans=yes
13548     ;;
13549 esac
13550 echo "$as_me:13550: result: $ans" >&5
13551 echo "${ECHO_T}$ans" >&6
13552
13553 echo "$as_me:13553: checking if we can make dcf parse utilities" >&5
13554 echo $ECHO_N "checking if we can make dcf parse utilities... $ECHO_C" >&6
13555 ans=no
13556 if test "$ntp_parseutil" = "yes"; then
13557     case "$target" in
13558      *-*-sunos4*|*-*-solaris2*|*-*-linux*)
13559         ans="dcfd testdcf"
13560         DCFD=dcfd
13561         TESTDCF=testdcf
13562         ;;
13563     esac
13564 fi
13565 echo "$as_me:13565: result: $ans" >&5
13566 echo "${ECHO_T}$ans" >&6
13567
13568 echo "$as_me:13568: checking if we can build kernel streams modules for parse" >&5
13569 echo $ECHO_N "checking if we can build kernel streams modules for parse... $ECHO_C" >&6
13570 ans=no
13571 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
13572  yesyes)
13573     case "$target" in
13574      sparc-*-sunos4*)
13575         case "$ac_cv_var_kernel_pll" in
13576         yes)
13577             cat >>confdefs.h <<\EOF
13578 #define PPS_SYNC 1
13579 EOF
13580
13581             ;;
13582         esac
13583         ans=parsestreams
13584         MAKE_PARSEKMODULE=parsestreams.loadable_module.o
13585         ;;
13586      sparc-*-solaris2*)
13587         ans=parsesolaris
13588         MAKE_PARSEKMODULE=parse
13589         ;;
13590     esac
13591     ;;
13592 esac
13593 echo "$as_me:13593: result: $ans" >&5
13594 echo "${ECHO_T}$ans" >&6
13595
13596 echo "$as_me:13596: checking if we need basic refclock support" >&5
13597 echo $ECHO_N "checking if we need basic refclock support... $ECHO_C" >&6
13598 if test "$ntp_refclock" = "yes"; then
13599     cat >>confdefs.h <<\EOF
13600 #define REFCLOCK 1
13601 EOF
13602
13603 fi
13604 echo "$as_me:13604: result: $ntp_refclock" >&5
13605 echo "${ECHO_T}$ntp_refclock" >&6
13606
13607 echo "$as_me:13607: checking if we want HP-UX adjtimed support" >&5
13608 echo $ECHO_N "checking if we want HP-UX adjtimed support... $ECHO_C" >&6
13609 case "$target" in
13610  *-*-hpux[56789]*)
13611     ans=yes
13612     ;;
13613  *) ans=no
13614     ;;
13615 esac
13616 if test "$ans" = "yes"; then
13617     MAKE_ADJTIMED=adjtimed
13618     cat >>confdefs.h <<\EOF
13619 #define NEED_HPUX_ADJTIME 1
13620 EOF
13621
13622 fi
13623 echo "$as_me:13623: result: $ans" >&5
13624 echo "${ECHO_T}$ans" >&6
13625
13626 echo "$as_me:13626: checking if we can read kmem" >&5
13627 echo $ECHO_N "checking if we can read kmem... $ECHO_C" >&6
13628 if test "${ac_cv_var_can_kmem+set}" = set; then
13629   echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631   # Check whether --enable-kmem or --disable-kmem was given.
13632 if test "${enable_kmem+set}" = set; then
13633   enableval="$enable_kmem"
13634   ans=$enableval
13635 else
13636   case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
13637      *yes*)
13638         ans=yes
13639         ;;
13640      *) ans=no
13641         ;;
13642     esac
13643     case "$target" in
13644      *-*-aix*)
13645         #ans=no
13646         ;;
13647      *-*-domainos)      # Won't be found...
13648         ans=no
13649         ;;
13650      *-*-hpux*)
13651         #ans=no
13652         ;;
13653      *-*-irix[456]*)
13654         ans=no
13655         ;;
13656      *-*-linux*)
13657         ans=no
13658         ;;
13659      *-*-winnt3.5)
13660         ans=no
13661         ;;
13662     esac
13663
13664 fi;
13665 ac_cv_var_can_kmem=$ans
13666 fi
13667 echo "$as_me:13667: result: $ac_cv_var_can_kmem" >&5
13668 echo "${ECHO_T}$ac_cv_var_can_kmem" >&6
13669
13670 case "$ac_cv_var_can_kmem" in
13671  *yes*) ;;
13672  *) cat >>confdefs.h <<\EOF
13673 #define NOKMEM 1
13674 EOF
13675  ;;
13676 esac
13677
13678 echo "$as_me:13678: checking if adjtime is accurate" >&5
13679 echo $ECHO_N "checking if adjtime is accurate... $ECHO_C" >&6
13680 if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then
13681   echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683   # Check whether --enable-accurate-adjtime or --disable-accurate-adjtime was given.
13684 if test "${enable_accurate_adjtime+set}" = set; then
13685   enableval="$enable_accurate_adjtime"
13686   ans=$enableval
13687 else
13688   case "$target" in
13689       i386-sequent-ptx*)
13690          ans=no
13691          ;;
13692       i386-unknown-osf1*)
13693          ans=yes
13694          ;;
13695       mips-sgi-irix[456]*)
13696          ans=yes
13697          ;;
13698       *-fujitsu-uxp*)
13699          ans=yes
13700          ;;
13701       *-ibm-aix4*)
13702          ans=yes
13703          ;;
13704       *-*-linux*)
13705          ans=yes
13706          ;;
13707       *-*-solaris2.[01]*)
13708          ans=no
13709          ;;
13710       *-*-solaris2*)
13711          ans=yes
13712          ;;
13713       *) ans=no
13714          ;;
13715      esac
13716
13717 fi;
13718 ac_cv_var_adjtime_is_accurate=$ans
13719 fi
13720 echo "$as_me:13720: result: $ac_cv_var_adjtime_is_accurate" >&5
13721 echo "${ECHO_T}$ac_cv_var_adjtime_is_accurate" >&6
13722 case "$ac_cv_var_adjtime_is_accurate" in
13723  yes) cat >>confdefs.h <<\EOF
13724 #define ADJTIME_IS_ACCURATE 1
13725 EOF
13726  ;;
13727 esac
13728
13729 echo "$as_me:13729: checking the name of 'tick' in the kernel" >&5
13730 echo $ECHO_N "checking the name of 'tick' in the kernel... $ECHO_C" >&6
13731 if test "${ac_cv_var_nlist_tick+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   ans=_tick
13735 case "$target" in
13736  m68*-hp-hpux*) # HP9000/300?
13737     ans=_old_tick
13738     ;;
13739  *-apple-aux[23]*)
13740     ans=tick
13741     ;;
13742  *-hp-hpux*)
13743     ans=old_tick
13744     ;;
13745  *-ibm-aix[34]*)
13746     ans=no
13747     ;;
13748  *-*-ptx*)
13749     ans=tick
13750     ;;
13751  *-*-sco3.2v[45]*)
13752     ans=no
13753     ;;
13754  *-*-solaris2*)
13755     ans=nsec_per_tick
13756     ;;
13757  *-*-sysv4*)
13758     ans=tick
13759     ;;
13760 esac
13761 ac_cv_var_nlist_tick=$ans
13762 fi
13763 echo "$as_me:13763: result: $ac_cv_var_nlist_tick" >&5
13764 echo "${ECHO_T}$ac_cv_var_nlist_tick" >&6
13765 case "$ac_cv_var_nlist_tick" in
13766  ''|no) ;;      # HMS: I think we can only get 'no' here...
13767  *) cat >>confdefs.h <<EOF
13768 #define K_TICK_NAME "$ac_cv_var_nlist_tick"
13769 EOF
13770  ;;
13771 esac
13772 #
13773 echo "$as_me:13773: checking for the units of 'tick'" >&5
13774 echo $ECHO_N "checking for the units of 'tick'... $ECHO_C" >&6
13775 if test "${ac_cv_var_tick_nano+set}" = set; then
13776   echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778   ans=usec
13779 case "$target" in
13780  *-*-solaris2*)
13781     ans=nsec
13782     ;;
13783 esac
13784 ac_cv_var_tick_nano=$ans
13785 fi
13786 echo "$as_me:13786: result: $ac_cv_var_tick_nano" >&5
13787 echo "${ECHO_T}$ac_cv_var_tick_nano" >&6
13788 case "$ac_cv_var_tick_nano" in
13789  nsec)
13790     cat >>confdefs.h <<\EOF
13791 #define TICK_NANO 1
13792 EOF
13793
13794     ;;
13795 esac
13796 #
13797 echo "$as_me:13797: checking the name of 'tickadj' in the kernel" >&5
13798 echo $ECHO_N "checking the name of 'tickadj' in the kernel... $ECHO_C" >&6
13799 if test "${ac_cv_var_nlist_tickadj+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   ans=_tickadj
13803 case "$target" in
13804  m68*-hp-hpux*) # HP9000/300?
13805     ans=_tickadj
13806     ;;
13807  *-apple-aux[23]*)
13808     ans=tickadj
13809     ;;
13810  *-hp-hpux10*)
13811     ans=no
13812     ;;
13813  *-hp-hpux9*)
13814     ans=no
13815     ;;
13816  *-hp-hpux*)
13817     ans=tickadj
13818     ;;
13819  *-*-aix*)
13820     ans=tickadj
13821     ;;
13822  *-*-ptx*)
13823     ans=tickadj
13824     ;;
13825  *-*-sco3.2v4*)
13826     ans=no
13827     ;;
13828  *-*-sco3.2v5.0*)
13829     ans=clock_drift
13830     ;;
13831  *-*-solaris2*)
13832     ans=no      # hrestime_adj
13833     ;;
13834  *-*-sysv4*)
13835     ans=tickadj
13836     ;;
13837 esac
13838 ac_cv_var_nlist_tickadj=$ans
13839 fi
13840 echo "$as_me:13840: result: $ac_cv_var_nlist_tickadj" >&5
13841 echo "${ECHO_T}$ac_cv_var_nlist_tickadj" >&6
13842 case "$ac_cv_var_nlist_tickadj" in
13843  ''|no) ;;      # HMS: I think we can only get 'no' here...
13844  *) cat >>confdefs.h <<EOF
13845 #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
13846 EOF
13847  ;;
13848 esac
13849 #
13850 echo "$as_me:13850: checking for the units of 'tickadj'" >&5
13851 echo $ECHO_N "checking for the units of 'tickadj'... $ECHO_C" >&6
13852 if test "${ac_cv_var_tickadj_nano+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   ans=usec
13856 case "$target" in
13857  *-*-solaris2*)
13858     ans=nsec
13859     ;;
13860 esac
13861 ac_cv_var_tickadj_nano=$ans
13862 fi
13863 echo "$as_me:13863: result: $ac_cv_var_tickadj_nano" >&5
13864 echo "${ECHO_T}$ac_cv_var_tickadj_nano" >&6
13865 case "$ac_cv_var_tickadj_nano" in
13866  nsec)
13867     cat >>confdefs.h <<\EOF
13868 #define TICKADJ_NANO 1
13869 EOF
13870
13871     ;;
13872 esac
13873 #
13874 echo "$as_me:13874: checking half-heartedly for 'dosynctodr' in the kernel" >&5
13875 echo $ECHO_N "checking half-heartedly for 'dosynctodr' in the kernel... $ECHO_C" >&6
13876 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   case "$target" in
13880  *-apple-aux[23]*)
13881     ans=no
13882     ;;
13883  *-sni-sysv*)
13884     ans=dosynctodr
13885     ;;
13886  *-*-aix*)
13887     ans=dosynctodr
13888     ;;
13889  *-*-hpux*)
13890     ans=no
13891     ;;
13892  *-*-nextstep*)
13893     ans=_dosynctodr
13894     ;;
13895  *-*-ptx*)
13896     ans=doresettodr
13897     ;;
13898  *-*-sco3.2v4*)
13899     ans=no
13900     ;;
13901  *-*-sco3.2v5*)
13902     ans=track_rtc
13903     ;;
13904  *-*-solaris2*)
13905     ans=dosynctodr
13906     ;;
13907  *-*-sysv4*)
13908     ans=doresettodr
13909     ;;
13910  *)
13911     ans=_dosynctodr
13912     ;;
13913 esac
13914 ac_cv_var_nlist_dosynctodr=$ans
13915 fi
13916 echo "$as_me:13916: result: $ac_cv_var_nlist_dosynctodr" >&5
13917 echo "${ECHO_T}$ac_cv_var_nlist_dosynctodr" >&6
13918 case "$ac_cv_var_nlist_dosynctodr" in
13919  no) ;;
13920  *)  cat >>confdefs.h <<EOF
13921 #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
13922 EOF
13923
13924      ;;
13925 esac
13926 #
13927 echo "$as_me:13927: checking half-heartedly for 'noprintf' in the kernel" >&5
13928 echo $ECHO_N "checking half-heartedly for 'noprintf' in the kernel... $ECHO_C" >&6
13929 if test "${ac_cv_var_nlist_noprintf+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   case "$target" in
13933  *-apple-aux[23]*)
13934     ans=no
13935     ;;
13936  *-sni-sysv*)
13937     ans=noprintf
13938     ;;
13939  *-*-aix*)
13940     ans=noprintf
13941     ;;
13942  *-*-hpux*)
13943     ans=no
13944     ;;
13945  *-*-ptx*)
13946     ans=noprintf
13947     ;;
13948  *-*-nextstep*)
13949     ans=_noprintf
13950     ;;
13951  *-*-solaris2*)
13952     ans=noprintf
13953     ;;
13954  *-*-sysv4*)
13955     ans=noprintf
13956     ;;
13957  *)
13958     ans=_noprintf
13959     ;;
13960 esac
13961 ac_cv_var_nlist_noprintf=$ans
13962 fi
13963 echo "$as_me:13963: result: $ac_cv_var_nlist_noprintf" >&5
13964 echo "${ECHO_T}$ac_cv_var_nlist_noprintf" >&6
13965 case "$ac_cv_var_nlist_noprintf" in
13966  no) ;;
13967  *)  cat >>confdefs.h <<EOF
13968 #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
13969 EOF
13970
13971      ;;
13972 esac
13973
13974 echo "$as_me:13974: checking for a default value for 'tick'" >&5
13975 echo $ECHO_N "checking for a default value for 'tick'... $ECHO_C" >&6
13976 if test "${ac_cv_var_tick+set}" = set; then
13977   echo $ECHO_N "(cached) $ECHO_C" >&6
13978 else
13979   # Check whether --enable-tick or --disable-tick was given.
13980 if test "${enable_tick+set}" = set; then
13981   enableval="$enable_tick"
13982   ans=$enableval
13983 else
13984   ans=no
13985      case "$target" in
13986       XXX-*-pc-cygwin*)
13987          ;;
13988       *-univel-sysv*)
13989          ans=10000
13990          ;;
13991       *-*-irix*)
13992          ans=10000
13993          ;;
13994       *-*-linux*)
13995          ans=txc.tick
13996          ;;
13997       *-*-winnt3.5)
13998          ans='(every / 10)'
13999          ;;
14000       *)
14001          ans='1000000L/hz'
14002          ;;
14003      esac
14004 fi;
14005 ac_cv_var_tick=$ans
14006 fi
14007 echo "$as_me:14007: result: $ac_cv_var_tick" >&5
14008 echo "${ECHO_T}$ac_cv_var_tick" >&6
14009 case "$ac_cv_var_tick" in
14010  ''|no) ;;      # HMS: I think we can only get 'no' here...
14011  *) cat >>confdefs.h <<EOF
14012 #define PRESET_TICK $ac_cv_var_tick
14013 EOF
14014  ;;
14015 esac
14016
14017 echo "$as_me:14017: checking for a default value for 'tickadj'" >&5
14018 echo $ECHO_N "checking for a default value for 'tickadj'... $ECHO_C" >&6
14019 if test "${ac_cv_var_tickadj+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   # Check whether --enable-tickadj or --disable-tickadj was given.
14023 if test "${enable_tickadj+set}" = set; then
14024   enableval="$enable_tickadj"
14025   ans=$enableval
14026 else
14027   ans='500/hz'
14028   case "$target" in
14029    *-fujitsu-uxp*)
14030       case "$ac_cv_var_adjtime_is_accurate" in
14031        yes) ans='tick/16' ;;
14032       esac
14033       ;;
14034    XXX-*-pc-cygwin*)
14035       ans=no
14036       ;;
14037    *-univel-sysv*)
14038       ans=80
14039       ;;
14040    *-*-aix*)
14041       case "$ac_cv_var_can_kmem" in
14042        no) ans=1000 ;;
14043       esac
14044       ;;
14045    *-*-domainos)        # Skippy: won't be found...
14046       case "$ac_cv_var_can_kmem" in
14047        no) ans=668 ;;
14048       esac
14049       ;;
14050    *-*-hpux*)
14051       case "$ac_cv_var_adjtime_is_accurate" in
14052        yes) ans='tick/16' ;;
14053       esac
14054       ;;
14055    *-*-irix*)
14056       ans=150
14057       ;;
14058    *-*-sco3.2v5.0*)
14059       ans=10000L/hz
14060       ;;
14061    *-*-solaris2*)
14062       case "$ac_cv_var_adjtime_is_accurate" in
14063        yes)
14064           #ans='tick/16'
14065           ;;
14066       esac
14067       ;;
14068    *-*-winnt3.5)
14069       ans=50
14070       ;;
14071   esac
14072 fi;
14073 ac_cv_var_tickadj=$ans
14074 fi
14075 echo "$as_me:14075: result: $ac_cv_var_tickadj" >&5
14076 echo "${ECHO_T}$ac_cv_var_tickadj" >&6
14077 case "$ac_cv_var_tickadj" in
14078  ''|no) ;;      # HMS: I think we can only get 'no' here...
14079  *) cat >>confdefs.h <<EOF
14080 #define PRESET_TICKADJ $ac_cv_var_tickadj
14081 EOF
14082  ;;
14083 esac
14084
14085 # Newer versions of ReliantUNIX round adjtime() values down to
14086 # 1/100s (system tick). Sigh ...
14087 # Unfortunately, there is no easy way to know if particular release
14088 # has this "feature" or any obvious way to test for it.
14089 case "$target" in
14090  mips-sni-sysv4*) cat >>confdefs.h <<\EOF
14091 #define RELIANTUNIX_CLOCK 1
14092 EOF
14093  ;;
14094 esac
14095
14096 case "$target" in
14097  *-*-sco3.2v5*) cat >>confdefs.h <<\EOF
14098 #define SCO5_CLOCK 1
14099 EOF
14100  ;;
14101 esac
14102
14103 ac_cv_make_tickadj=yes
14104 case "$ac_cv_var_can_kmem$ac_cv_var_tick$ac_cv_var_tickadj" in
14105  nonono)        # Don't read KMEM, no presets.  Bogus.
14106     { echo "$as_me:14106: WARNING: Can't read kmem" >&5
14107 echo "$as_me: WARNING: Can't read kmem" >&2;}
14108     ac_cv_make_tickadj=no
14109     ;;
14110  nono*)         # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
14111     { echo "$as_me:14111: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&5
14112 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK.  No tickadj." >&2;}
14113     ac_cv_make_tickadj=no
14114     ;;
14115  no*no)         # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Bogus.
14116     { echo "$as_me:14116: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&5
14117 echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ.  No tickadj." >&2;}
14118     ac_cv_make_tickadj=no
14119     ;;
14120  no*)           # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ.  Cool.
14121     ;;
14122  yesnono)       # Read KMEM, no presets.  Cool.
14123     ;;
14124  yesno*)        # Read KMEM, no PRESET_TICK but PRESET_TICKADJ.  Bogus.
14125     { echo "$as_me:14125: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&5
14126 echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK.  Please report this." >&2;}
14127     ;;
14128  yes*no)        # Read KMEM, PRESET_TICK but no PRESET_TICKADJ.  Cool.
14129     ;;
14130  yes*)          # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
14131     ;;
14132  *)             # Generally bogus.
14133     { { echo "$as_me:14133: error: This shouldn't happen." >&5
14134 echo "$as_me: error: This shouldn't happen." >&2;}
14135    { (exit 1); exit 1; }; }
14136     ;;
14137 esac
14138
14139 echo "$as_me:14139: checking if we want and can make the ntptime utility" >&5
14140 echo $ECHO_N "checking if we want and can make the ntptime utility... $ECHO_C" >&6
14141 if test "${ac_cv_make_ntptime+set}" = set; then
14142   echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144   case "$target" in
14145  *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
14146      yesyes)
14147         ans=yes
14148         ;;
14149      *)
14150         ans=no
14151         ;;
14152     esac
14153     ;;
14154 esac
14155 ac_cv_make_ntptime=$ans
14156 fi
14157 echo "$as_me:14157: result: $ac_cv_make_ntptime" >&5
14158 echo "${ECHO_T}$ac_cv_make_ntptime" >&6
14159 case "$ac_cv_make_ntptime" in
14160  yes)
14161     MAKE_NTPTIME=ntptime
14162     ;;
14163 esac
14164
14165 case "$target" in
14166  mips-sni-sysv4*)
14167     # tickadj is pretty useless on newer versions of ReliantUNIX
14168     # Do not bother
14169     ac_cv_make_tickadj=no
14170     ;;
14171  *-*-irix*)
14172     ac_cv_make_tickadj=no
14173     ;;
14174  *-*-solaris2*)
14175     # DLM says tickadj is a no-no starting with solaris2.5
14176     case "$target" in
14177      *-*-solaris2.0-4*) ;;
14178      *) ac_cv_make_tickadj=no ;;
14179     esac
14180     ;;
14181 esac
14182 echo "$as_me:14182: checking if we want and can make the tickadj utility" >&5
14183 echo $ECHO_N "checking if we want and can make the tickadj utility... $ECHO_C" >&6
14184 if test "${ac_cv_make_tickadj+set}" = set; then
14185   echo $ECHO_N "(cached) $ECHO_C" >&6
14186 else
14187   ac_cv_make_tickadj=yes
14188 fi
14189 echo "$as_me:14189: result: $ac_cv_make_tickadj" >&5
14190 echo "${ECHO_T}$ac_cv_make_tickadj" >&6
14191 case "$ac_cv_make_tickadj" in
14192  yes)
14193     MAKE_TICKADJ=tickadj
14194     ;;
14195 esac
14196
14197 echo "$as_me:14197: checking if we want and can make the timetrim utility" >&5
14198 echo $ECHO_N "checking if we want and can make the timetrim utility... $ECHO_C" >&6
14199 if test "${ac_cv_make_timetrim+set}" = set; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   case "$target" in
14203  *-*-irix*)
14204     ac_cv_make_timetrim=yes
14205     ;;
14206  *)
14207     ac_cv_make_timetrim=no
14208     ;;
14209 esac
14210 fi
14211 echo "$as_me:14211: result: $ac_cv_make_timetrim" >&5
14212 echo "${ECHO_T}$ac_cv_make_timetrim" >&6
14213 case "$ac_cv_make_timetrim" in
14214  yes)
14215     MAKE_TIMETRIM=timetrim
14216     ;;
14217 esac
14218
14219 echo "$as_me:14219: checking if we want UDP wildcard delivery" >&5
14220 echo $ECHO_N "checking if we want UDP wildcard delivery... $ECHO_C" >&6
14221 if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 else
14224   # Check whether --enable-udp-wildcard or --disable-udp-wildcard was given.
14225 if test "${enable_udp_wildcard+set}" = set; then
14226   enableval="$enable_udp_wildcard"
14227   ans=$enableval
14228 else
14229   ans=no
14230      case "$target" in
14231       *-fujitsu-uxp*)
14232          ans=yes
14233          ;;
14234       *-univel-sysv*)
14235          ans=yes
14236          ;;
14237       *-*-aix3.2*)
14238          ans=yes
14239          ;;
14240       *-*-aix4*)
14241          ans=yes
14242          ;;
14243       *-*-bsdi*)
14244          ans=yes
14245          ;;
14246       *-*-domainos)
14247          ans=yes
14248          ;;
14249       *-*-freebsd*)
14250         ans=yes
14251         ;;
14252       *-*-hpux*)
14253          ans=yes
14254          ;;
14255       *-*-irix6*)
14256          ans=yes
14257          ;;
14258       *-*-linux*)
14259          ans=yes
14260          ;;
14261       *-*-osf*)
14262          ans=yes
14263          ;;
14264       *-*-ptx*)
14265          ans=yes
14266          ;;
14267       *-*-solaris2*)
14268          ans=yes
14269          ;;
14270       *-*-sunos4*)
14271          ans=yes
14272          ;;
14273      esac
14274 fi;
14275 ac_cv_var_udp_wildcard_delivery=$ans
14276 fi
14277 echo "$as_me:14277: result: $ac_cv_var_udp_wildcard_delivery" >&5
14278 echo "${ECHO_T}$ac_cv_var_udp_wildcard_delivery" >&6
14279 case "$ac_cv_var_udp_wildcard_delivery" in
14280  yes) cat >>confdefs.h <<\EOF
14281 #define UDP_WILDCARD_DELIVERY 1
14282 EOF
14283  ;;
14284 esac
14285
14286 case "$host" in
14287  $target)
14288     ;;
14289  *) case "$target" in
14290      *-*-vxworks*)
14291         LDFLAGS="$LDFLAGS -r"
14292         ;;
14293     esac
14294     ;;
14295 esac
14296
14297 echo "$as_me:14297: checking if we should always slew the time" >&5
14298 echo $ECHO_N "checking if we should always slew the time... $ECHO_C" >&6
14299 if test "${ac_cv_var_slew_always+set}" = set; then
14300   echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302   # Check whether --enable-slew-always or --disable-slew-always was given.
14303 if test "${enable_slew_always+set}" = set; then
14304   enableval="$enable_slew_always"
14305   ans=$enableval
14306 else
14307   case "$target" in
14308       *-apple-aux[23]*)
14309          ans=yes
14310          ;;
14311       *-*-bsdi[012]*)
14312          ans=no
14313          ;;
14314       *-*-bsdi*)
14315          ans=yes
14316          ;;
14317       *-*-openvms*)     # HMS: won't be found
14318          ans=yes
14319          ;;
14320       *) ans=no
14321          ;;
14322      esac
14323
14324 fi;
14325 ac_cv_var_slew_always=$ans
14326 fi
14327 echo "$as_me:14327: result: $ac_cv_var_slew_always" >&5
14328 echo "${ECHO_T}$ac_cv_var_slew_always" >&6
14329 case "$ac_cv_var_slew_always" in
14330  yes) cat >>confdefs.h <<\EOF
14331 #define SLEWALWAYS 1
14332 EOF
14333  ;;
14334 esac
14335
14336 echo "$as_me:14336: checking if we should step and slew the time" >&5
14337 echo $ECHO_N "checking if we should step and slew the time... $ECHO_C" >&6
14338 if test "${ac_cv_var_step_slew+set}" = set; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   # Check whether --enable-step-slew or --disable-step-slew was given.
14342 if test "${enable_step_slew+set}" = set; then
14343   enableval="$enable_step_slew"
14344   ans=$enableval
14345 else
14346   case "$target" in
14347       *-sni-sysv*)
14348          ans=yes
14349          ;;
14350       *-univel-sysv*)
14351          ans=no
14352          ;;
14353       *-*-ptx*)
14354          ans=yes
14355          ;;
14356       *-*-solaris2.[012]*)
14357          ans=yes
14358          ;;
14359       *-*-sysv4*)       # HMS: Does this catch Fujitsu UXP?
14360          ans=yes
14361          ;;
14362       *) ans=no
14363          ;;
14364      esac
14365
14366 fi;
14367 ac_cv_var_step_slew=$ans
14368 fi
14369 echo "$as_me:14369: result: $ac_cv_var_step_slew" >&5
14370 echo "${ECHO_T}$ac_cv_var_step_slew" >&6
14371 case "$ac_cv_var_step_slew" in
14372  yes) cat >>confdefs.h <<\EOF
14373 #define STEP_SLEW 1
14374 EOF
14375  ;;
14376 esac
14377
14378 echo "$as_me:14378: checking if ntpdate should step the time" >&5
14379 echo $ECHO_N "checking if ntpdate should step the time... $ECHO_C" >&6
14380 if test "${ac_cv_var_ntpdate_step+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   # Check whether --enable-ntpdate-step or --disable-ntpdate-step was given.
14384 if test "${enable_ntpdate_step+set}" = set; then
14385   enableval="$enable_ntpdate_step"
14386   ans=$enableval
14387 else
14388   case "$target" in
14389       *-apple-aux[23]*)
14390          ans=yes
14391          ;;
14392       *) ans=no
14393          ;;
14394      esac
14395
14396 fi;
14397 ac_cv_var_ntpdate_step=$ans
14398 fi
14399 echo "$as_me:14399: result: $ac_cv_var_ntpdate_step" >&5
14400 echo "${ECHO_T}$ac_cv_var_ntpdate_step" >&6
14401 case "$ac_cv_var_ntpdate_step" in
14402  yes) cat >>confdefs.h <<\EOF
14403 #define FORCE_NTPDATE_STEP 1
14404 EOF
14405  ;;
14406 esac
14407
14408 echo "$as_me:14408: checking if we should sync TODR clock every hour" >&5
14409 echo $ECHO_N "checking if we should sync TODR clock every hour... $ECHO_C" >&6
14410 if test "${ac_cv_var_sync_todr+set}" = set; then
14411   echo $ECHO_N "(cached) $ECHO_C" >&6
14412 else
14413   # Check whether --enable-hourly-todr-sync or --disable-hourly-todr-sync was given.
14414 if test "${enable_hourly_todr_sync+set}" = set; then
14415   enableval="$enable_hourly_todr_sync"
14416   ans=$enableval
14417 else
14418   case "$target" in
14419       *-*-nextstep*)
14420          ans=yes
14421          ;;
14422       *-*-openvms*)     # HMS: won't be found
14423          ans=yes
14424          ;;
14425       *) ans=no
14426          ;;
14427      esac
14428 fi;
14429 ac_cv_var_sync_todr=$ans
14430 fi
14431 echo "$as_me:14431: result: $ac_cv_var_sync_todr" >&5
14432 echo "${ECHO_T}$ac_cv_var_sync_todr" >&6
14433 case "$ac_cv_var_sync_todr" in
14434  yes) cat >>confdefs.h <<\EOF
14435 #define DOSYNCTODR 1
14436 EOF
14437  ;;
14438 esac
14439
14440 echo "$as_me:14440: checking if we should avoid kernel FLL bug" >&5
14441 echo $ECHO_N "checking if we should avoid kernel FLL bug... $ECHO_C" >&6
14442 if test "${ac_cv_var_kernel_fll_bug+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445   # Check whether --enable-kernel-fll-bug or --disable-kernel-fll-bug was given.
14446 if test "${enable_kernel_fll_bug+set}" = set; then
14447   enableval="$enable_kernel_fll_bug"
14448   ans=$enableval
14449 else
14450   case "$target" in
14451      *-*-solaris2.6)
14452          unamev=`uname -v`
14453          case "$unamev" in
14454           Generic_105181-*)
14455              old_IFS="$IFS"
14456              IFS="-"
14457              set $unamev
14458              IFS="$old_IFS"
14459              if test "$2" -ge 17
14460              then
14461                 # Generic_105181-17 and higher
14462                 ans=no
14463              else
14464                 ans=yes
14465              fi
14466              ;;
14467           *) ans=yes
14468              ;;
14469          esac
14470          ;;
14471      *-*-solaris2.7)
14472          unamev=`uname -v`
14473          case "$unamev" in
14474           Generic_106541-*)
14475              old_IFS="$IFS"
14476              IFS="-"
14477              set $unamev
14478              IFS="$old_IFS"
14479              if test "$2" -ge 07
14480              then
14481                 # Generic_106541-07 and higher
14482                 ans=no
14483              else
14484                 ans=yes
14485              fi
14486              ;;
14487           *) ans=yes
14488              ;;
14489          esac
14490          ;;
14491      *) ans=no
14492          ;;
14493     esac
14494
14495 fi;
14496 ac_cv_var_kernel_fll_bug=$ans
14497 fi
14498 echo "$as_me:14498: result: $ac_cv_var_kernel_fll_bug" >&5
14499 echo "${ECHO_T}$ac_cv_var_kernel_fll_bug" >&6
14500 case "$ac_cv_var_kernel_fll_bug" in
14501  yes) cat >>confdefs.h <<\EOF
14502 #define KERNEL_FLL_BUG 1
14503 EOF
14504  ;;
14505 esac
14506
14507 case "$host" in
14508  $target)
14509     ;;
14510  *) case "$target" in
14511      *-*-vxworks*)
14512         LDFLAGS="$LDFLAGS -r"
14513         ;;
14514     esac
14515     ;;
14516 esac
14517
14518         ac_expanded=`(
14519             test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14520             test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
14521             eval echo \""$sysconfdir"\"
14522         )`
14523
14524 cat >>confdefs.h <<EOF
14525 #define NTP_KEYSDIR "$ac_expanded"
14526 EOF
14527
14528 # This is necessary so that .o files in LIBOBJS are also built via
14529 # the ANSI2KNR-filtering rules.
14530 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
14531
14532 ac_config_files="$ac_config_files Makefile adjtimed/Makefile clockstuff/Makefile ElectricFence/Makefile include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile scripts/Makefile scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary util/Makefile"
14533
14534 ac_config_commands="$ac_config_commands default"
14535
14536 cat >confcache <<\_ACEOF
14537 # This file is a shell script that caches the results of configure
14538 # tests run on this system so they can be shared between configure
14539 # scripts and configure runs, see configure's option --config-cache.
14540 # It is not useful on other systems.  If it contains results you don't
14541 # want to keep, you may remove or edit it.
14542 #
14543 # config.status only pays attention to the cache file if you give it
14544 # the --recheck option to rerun configure.
14545 #
14546 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14548 # following values.
14549
14550 _ACEOF
14551
14552 # The following way of writing the cache mishandles newlines in values,
14553 # but we know of no workaround that is simple, portable, and efficient.
14554 # So, don't put newlines in cache variables' values.
14555 # Ultrix sh set writes to stderr and can't be redirected directly,
14556 # and sets the high bit in the cache file unless we assign to the vars.
14557 {
14558   (set) 2>&1 |
14559     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14560     *ac_space=\ *)
14561       # `set' does not quote correctly, so add quotes (double-quote
14562       # substitution turns \\\\ into \\, and sed turns \\ into \).
14563       sed -n \
14564         "s/'/'\\\\''/g;
14565           s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14566       ;;
14567     *)
14568       # `set' quotes correctly as required by POSIX, so do not add quotes.
14569       sed -n \
14570         "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14571       ;;
14572     esac;
14573 } |
14574   sed '
14575      t clear
14576      : clear
14577      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14578      t end
14579      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14580      : end' >>confcache
14581 if cmp -s $cache_file confcache; then :; else
14582   if test -w $cache_file; then
14583     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14584     cat confcache >$cache_file
14585   else
14586     echo "not updating unwritable cache $cache_file"
14587   fi
14588 fi
14589 rm -f confcache
14590
14591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14592 # Let make expand exec_prefix.
14593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14594
14595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14597 # trailing colons and then remove the whole line if VPATH becomes empty
14598 # (actually we leave an empty line to preserve line numbers).
14599 if test "x$srcdir" = x.; then
14600   ac_vpsub='/^[         ]*VPATH[        ]*=/{
14601 s/:*\$(srcdir):*/:/;
14602 s/:*\${srcdir}:*/:/;
14603 s/:*@srcdir@:*/:/;
14604 s/^\([^=]*=[    ]*\):*/\1/;
14605 s/:*$//;
14606 s/^[^=]*=[      ]*$//;
14607 }'
14608 fi
14609
14610 DEFS=-DHAVE_CONFIG_H
14611
14612 : ${CONFIG_STATUS=./config.status}
14613 ac_clean_files_save=$ac_clean_files
14614 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14615 { echo "$as_me:14615: creating $CONFIG_STATUS" >&5
14616 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14617 cat >$CONFIG_STATUS <<_ACEOF
14618 #! $SHELL
14619 # Generated automatically by configure.
14620 # Run this file to recreate the current configuration.
14621 # Compiler output produced by configure, useful for debugging
14622 # configure, is in config.log if it exists.
14623
14624 debug=false
14625 SHELL=\${CONFIG_SHELL-$SHELL}
14626 ac_cs_invocation="\$0 \$@"
14627
14628 _ACEOF
14629
14630 cat >>$CONFIG_STATUS <<\_ACEOF
14631 # Be Bourne compatible
14632 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14633   emulate sh
14634   NULLCMD=:
14635 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14636   set -o posix
14637 fi
14638
14639 # Name of the executable.
14640 as_me=`echo "$0" |sed 's,.*[\\/],,'`
14641
14642 if expr a : '\(a\)' >/dev/null 2>&1; then
14643   as_expr=expr
14644 else
14645   as_expr=false
14646 fi
14647
14648 rm -f conf$$ conf$$.exe conf$$.file
14649 echo >conf$$.file
14650 if ln -s conf$$.file conf$$ 2>/dev/null; then
14651   # We could just check for DJGPP; but this test a) works b) is more generic
14652   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14653   if test -f conf$$.exe; then
14654     # Don't use ln at all; we don't have any links
14655     as_ln_s='cp -p'
14656   else
14657     as_ln_s='ln -s'
14658   fi
14659 elif ln conf$$.file conf$$ 2>/dev/null; then
14660   as_ln_s=ln
14661 else
14662   as_ln_s='cp -p'
14663 fi
14664 rm -f conf$$ conf$$.exe conf$$.file
14665
14666 as_executable_p="test -f"
14667
14668 # Support unset when possible.
14669 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14670   as_unset=unset
14671 else
14672   as_unset=false
14673 fi
14674
14675 # NLS nuisances.
14676 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
14677 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
14678 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
14679 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
14680 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
14681 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
14682 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
14683 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
14684
14685 # IFS
14686 # We need space, tab and new line, in precisely that order.
14687 as_nl='
14688 '
14689 IFS="   $as_nl"
14690
14691 # CDPATH.
14692 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
14693
14694 exec 6>&1
14695
14696 _ACEOF
14697
14698 # Files that config.status was made for.
14699 if test -n "$ac_config_files"; then
14700   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14701 fi
14702
14703 if test -n "$ac_config_headers"; then
14704   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14705 fi
14706
14707 if test -n "$ac_config_links"; then
14708   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14709 fi
14710
14711 if test -n "$ac_config_commands"; then
14712   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14713 fi
14714
14715 cat >>$CONFIG_STATUS <<\EOF
14716
14717 ac_cs_usage="\
14718 \`$as_me' instantiates files from templates according to the
14719 current configuration.
14720
14721 Usage: $0 [OPTIONS] [FILE]...
14722
14723   -h, --help       print this help, then exit
14724   -V, --version    print version number, then exit
14725   -d, --debug      don't remove temporary files
14726       --recheck    update $as_me by reconfiguring in the same conditions
14727   --file=FILE[:TEMPLATE]
14728                    instantiate the configuration file FILE
14729   --header=FILE[:TEMPLATE]
14730                    instantiate the configuration header FILE
14731
14732 Configuration files:
14733 $config_files
14734
14735 Configuration headers:
14736 $config_headers
14737
14738 Configuration commands:
14739 $config_commands
14740
14741 Report bugs to <bug-autoconf@gnu.org>."
14742 EOF
14743
14744 cat >>$CONFIG_STATUS <<EOF
14745 ac_cs_version="\\
14746 config.status
14747 configured by $0, generated by GNU Autoconf 2.50,
14748   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14749
14750 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14751 Free Software Foundation, Inc.
14752 This config.status script is free software; the Free Software Foundation
14753 gives unlimited permission to copy, distribute and modify it."
14754 srcdir=$srcdir
14755 INSTALL="$INSTALL"
14756 EOF
14757
14758 cat >>$CONFIG_STATUS <<\EOF
14759 # If no file are specified by the user, then we need to provide default
14760 # value.  By we need to know if files were specified by the user.
14761 ac_need_defaults=:
14762 while test $# != 0
14763 do
14764   case $1 in
14765   --*=*)
14766     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14767     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14768     shift
14769     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14770     shift
14771     ;;
14772   -*);;
14773   *) # This is not an option, so the user has probably given explicit
14774      # arguments.
14775      ac_need_defaults=false;;
14776   esac
14777
14778   case $1 in
14779   # Handling of the options.
14780 EOF
14781 cat >>$CONFIG_STATUS <<EOF
14782   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14783     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14784     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14785 EOF
14786 cat >>$CONFIG_STATUS <<\EOF
14787   --version | --vers* | -V )
14788     echo "$ac_cs_version"; exit 0 ;;
14789   --he | --h)
14790     # Conflict between --help and --header
14791     { { echo "$as_me:14791: error: ambiguous option: $1
14792 Try \`$0 --help' for more information." >&5
14793 echo "$as_me: error: ambiguous option: $1
14794 Try \`$0 --help' for more information." >&2;}
14795    { (exit 1); exit 1; }; };;
14796   --help | --hel | -h )
14797     echo "$ac_cs_usage"; exit 0 ;;
14798   --debug | --d* | -d )
14799     debug=: ;;
14800   --file | --fil | --fi | --f )
14801     shift
14802     CONFIG_FILES="$CONFIG_FILES $1"
14803     ac_need_defaults=false;;
14804   --header | --heade | --head | --hea )
14805     shift
14806     CONFIG_HEADERS="$CONFIG_HEADERS $1"
14807     ac_need_defaults=false;;
14808
14809   # Handling of arguments.
14810   'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14811   'adjtimed/Makefile' ) CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
14812   'clockstuff/Makefile' ) CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
14813   'ElectricFence/Makefile' ) CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
14814   'include/Makefile' ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14815   'kernel/Makefile' ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
14816   'kernel/sys/Makefile' ) CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
14817   'libntp/Makefile' ) CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
14818   'libparse/Makefile' ) CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
14819   'librsaref/Makefile' ) CONFIG_FILES="$CONFIG_FILES librsaref/Makefile" ;;
14820   'ntpd/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
14821   'ntpdc/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
14822   'ntpdate/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
14823   'ntpq/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
14824   'ntptrace/Makefile' ) CONFIG_FILES="$CONFIG_FILES ntptrace/Makefile" ;;
14825   'parseutil/Makefile' ) CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
14826   'scripts/Makefile' ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14827   'scripts/calc_tickadj' ) CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
14828   'scripts/checktime' ) CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
14829   'scripts/freq_adj' ) CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
14830   'scripts/mkver' ) CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
14831   'scripts/ntp-wait' ) CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
14832   'scripts/ntpsweep' ) CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
14833   'scripts/ntpver' ) CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
14834   'scripts/plot_summary' ) CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
14835   'scripts/summary' ) CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
14836   'util/Makefile' ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14837   'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14838   'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
14839   'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14840   'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14841
14842   # This is an error.
14843   -*) { { echo "$as_me:14843: error: unrecognized option: $1
14844 Try \`$0 --help' for more information." >&5
14845 echo "$as_me: error: unrecognized option: $1
14846 Try \`$0 --help' for more information." >&2;}
14847    { (exit 1); exit 1; }; } ;;
14848   *) { { echo "$as_me:14848: error: invalid argument: $1" >&5
14849 echo "$as_me: error: invalid argument: $1" >&2;}
14850    { (exit 1); exit 1; }; };;
14851   esac
14852   shift
14853 done
14854
14855 exec 5>>config.log
14856 cat >&5 << _ACEOF
14857
14858 ## ----------------------- ##
14859 ## Running config.status.  ##
14860 ## ----------------------- ##
14861
14862 This file was extended by $as_me 2.50, executed with
14863   > $ac_cs_invocation
14864 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14865
14866 _ACEOF
14867 EOF
14868
14869 cat >>$CONFIG_STATUS <<\EOF
14870 # If the user did not use the arguments to specify the items to instantiate,
14871 # then the envvar interface is used.  Set only those that are not.
14872 # We use the long form for the default assignment because of an extremely
14873 # bizarre bug on SunOS 4.1.3.
14874 if $ac_need_defaults; then
14875   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14876   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14877   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14878 fi
14879
14880 # Create a temporary directory, and hook for its removal unless debugging.
14881 $debug ||
14882 {
14883   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14884   trap '{ (exit $?); exit $?; }' 1 2 13 15
14885 }
14886
14887 # Create a (secure) tmp directory for tmp files.
14888 : ${TMPDIR=/tmp}
14889 {
14890   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14891   test -n "$tmp" && test -d "$tmp"
14892 }  ||
14893 {
14894   tmp=$TMPDIR/cs$$-$RANDOM
14895   (umask 077 && mkdir $tmp)
14896 } ||
14897 {
14898    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14899    { (exit 1); exit 1; }
14900 }
14901
14902 EOF
14903
14904 cat >>$CONFIG_STATUS <<EOF
14905 #
14906 # INIT-COMMANDS section.
14907 #
14908
14909 am_indx=1
14910   for am_file in config.h; do
14911     case " $CONFIG_HEADERS " in
14912     *" $am_file "*)
14913       echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
14914       ;;
14915     esac
14916     am_indx=\`expr \$am_indx + 1\`
14917   done
14918 AMDEP="$AMDEP"
14919 ac_aux_dir="$ac_aux_dir"
14920
14921 EOF
14922
14923 cat >>$CONFIG_STATUS <<EOF
14924
14925 #
14926 # CONFIG_FILES section.
14927 #
14928
14929 # No need to generate the scripts if there are no CONFIG_FILES.
14930 # This happens for instance when ./config.status config.h
14931 if test -n "\$CONFIG_FILES"; then
14932   # Protect against being on the right side of a sed subst in config.status.
14933   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14934    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14935 s,@SHELL@,$SHELL,;t t
14936 s,@exec_prefix@,$exec_prefix,;t t
14937 s,@prefix@,$prefix,;t t
14938 s,@program_transform_name@,$program_transform_name,;t t
14939 s,@bindir@,$bindir,;t t
14940 s,@sbindir@,$sbindir,;t t
14941 s,@libexecdir@,$libexecdir,;t t
14942 s,@datadir@,$datadir,;t t
14943 s,@sysconfdir@,$sysconfdir,;t t
14944 s,@sharedstatedir@,$sharedstatedir,;t t
14945 s,@localstatedir@,$localstatedir,;t t
14946 s,@libdir@,$libdir,;t t
14947 s,@includedir@,$includedir,;t t
14948 s,@oldincludedir@,$oldincludedir,;t t
14949 s,@infodir@,$infodir,;t t
14950 s,@mandir@,$mandir,;t t
14951 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14952 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14953 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14954 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14955 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14956 s,@ECHO_C@,$ECHO_C,;t t
14957 s,@ECHO_N@,$ECHO_N,;t t
14958 s,@ECHO_T@,$ECHO_T,;t t
14959 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14960 s,@DEFS@,$DEFS,;t t
14961 s,@LIBS@,$LIBS,;t t
14962 s,@build@,$build,;t t
14963 s,@build_cpu@,$build_cpu,;t t
14964 s,@build_vendor@,$build_vendor,;t t
14965 s,@build_os@,$build_os,;t t
14966 s,@host@,$host,;t t
14967 s,@host_cpu@,$host_cpu,;t t
14968 s,@host_vendor@,$host_vendor,;t t
14969 s,@host_os@,$host_os,;t t
14970 s,@target@,$target,;t t
14971 s,@target_cpu@,$target_cpu,;t t
14972 s,@target_vendor@,$target_vendor,;t t
14973 s,@target_os@,$target_os,;t t
14974 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14975 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14976 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14977 s,@PACKAGE@,$PACKAGE,;t t
14978 s,@VERSION@,$VERSION,;t t
14979 s,@ACLOCAL@,$ACLOCAL,;t t
14980 s,@AUTOCONF@,$AUTOCONF,;t t
14981 s,@AUTOMAKE@,$AUTOMAKE,;t t
14982 s,@AUTOHEADER@,$AUTOHEADER,;t t
14983 s,@MAKEINFO@,$MAKEINFO,;t t
14984 s,@AMTAR@,$AMTAR,;t t
14985 s,@install_sh@,$install_sh,;t t
14986 s,@STRIP@,$STRIP,;t t
14987 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14988 s,@INSTALL_STRIP_PROGRAM_ENV@,$INSTALL_STRIP_PROGRAM_ENV,;t t
14989 s,@AWK@,$AWK,;t t
14990 s,@SET_MAKE@,$SET_MAKE,;t t
14991 s,@AMDEP@,$AMDEP,;t t
14992 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14993 s,@DEPDIR@,$DEPDIR,;t t
14994 s,@CC@,$CC,;t t
14995 s,@CFLAGS@,$CFLAGS,;t t
14996 s,@LDFLAGS@,$LDFLAGS,;t t
14997 s,@CPPFLAGS@,$CPPFLAGS,;t t
14998 s,@ac_ct_CC@,$ac_ct_CC,;t t
14999 s,@EXEEXT@,$EXEEXT,;t t
15000 s,@OBJEXT@,$OBJEXT,;t t
15001 s,@CPP@,$CPP,;t t
15002 s,@_am_include@,$_am_include,;t t
15003 s,@CCDEPMODE@,$CCDEPMODE,;t t
15004 s,@LN_S@,$LN_S,;t t
15005 s,@RANLIB@,$RANLIB,;t t
15006 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15007 s,@PATH_SH@,$PATH_SH,;t t
15008 s,@PATH_PERL@,$PATH_PERL,;t t
15009 s,@U@,$U,;t t
15010 s,@ANSI2KNR@,$ANSI2KNR,;t t
15011 s,@LIBOBJS@,$LIBOBJS,;t t
15012 s,@LIBPARSE@,$LIBPARSE,;t t
15013 s,@MAKE_LIBPARSE@,$MAKE_LIBPARSE,;t t
15014 s,@MAKE_LIBPARSE_KERNEL@,$MAKE_LIBPARSE_KERNEL,;t t
15015 s,@MAKE_CHECK_Y2K@,$MAKE_CHECK_Y2K,;t t
15016 s,@RSAOBJS@,$RSAOBJS,;t t
15017 s,@RSASRCS@,$RSASRCS,;t t
15018 s,@RSADIR@,$RSADIR,;t t
15019 s,@RSAREF@,$RSAREF,;t t
15020 s,@LIBRSAREF@,$LIBRSAREF,;t t
15021 s,@MAKE_LIBRSAREF@,$MAKE_LIBRSAREF,;t t
15022 s,@OPENSSL@,$OPENSSL,;t t
15023 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
15024 s,@OPENSSL_LIB@,$OPENSSL_LIB,;t t
15025 s,@MAKE_NTP_GENKEYS@,$MAKE_NTP_GENKEYS,;t t
15026 s,@AUTOKEY@,$AUTOKEY,;t t
15027 s,@EF_PROGS@,$EF_PROGS,;t t
15028 s,@EF_LIBS@,$EF_LIBS,;t t
15029 s,@TESTDCF@,$TESTDCF,;t t
15030 s,@DCFD@,$DCFD,;t t
15031 s,@MAKE_PARSEKMODULE@,$MAKE_PARSEKMODULE,;t t
15032 s,@PROPDELAY@,$PROPDELAY,;t t
15033 s,@CHUTEST@,$CHUTEST,;t t
15034 s,@CLKTEST@,$CLKTEST,;t t
15035 s,@MAKE_ADJTIMED@,$MAKE_ADJTIMED,;t t
15036 s,@MAKE_NTPTIME@,$MAKE_NTPTIME,;t t
15037 s,@MAKE_TICKADJ@,$MAKE_TICKADJ,;t t
15038 s,@MAKE_TIMETRIM@,$MAKE_TIMETRIM,;t t
15039 CEOF
15040
15041 EOF
15042
15043   cat >>$CONFIG_STATUS <<\EOF
15044   # Split the substitutions into bite-sized pieces for seds with
15045   # small command number limits, like on Digital OSF/1 and HP-UX.
15046   ac_max_sed_lines=48
15047   ac_sed_frag=1 # Number of current file.
15048   ac_beg=1 # First line for current file.
15049   ac_end=$ac_max_sed_lines # Line after last line for current file.
15050   ac_more_lines=:
15051   ac_sed_cmds=
15052   while $ac_more_lines; do
15053     if test $ac_beg -gt 1; then
15054       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15055     else
15056       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15057     fi
15058     if test ! -s $tmp/subs.frag; then
15059       ac_more_lines=false
15060     else
15061       # The purpose of the label and of the branching condition is to
15062       # speed up the sed processing (if there are no `@' at all, there
15063       # is no need to browse any of the substitutions).
15064       # These are the two extra sed commands mentioned above.
15065       (echo ':t
15066   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15067       if test -z "$ac_sed_cmds"; then
15068         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15069       else
15070         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15071       fi
15072       ac_sed_frag=`expr $ac_sed_frag + 1`
15073       ac_beg=$ac_end
15074       ac_end=`expr $ac_end + $ac_max_sed_lines`
15075     fi
15076   done
15077   if test -z "$ac_sed_cmds"; then
15078     ac_sed_cmds=cat
15079   fi
15080 fi # test -n "$CONFIG_FILES"
15081
15082 EOF
15083 cat >>$CONFIG_STATUS <<\EOF
15084 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15085   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15086   case $ac_file in
15087   - | *:- | *:-:* ) # input from stdin
15088         cat >$tmp/stdin
15089         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15090         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15091   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15092         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15093   * )   ac_file_in=$ac_file.in ;;
15094   esac
15095
15096   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15097   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15098          X"$ac_file" : 'X\(//\)[^/]' \| \
15099          X"$ac_file" : 'X\(//\)$' \| \
15100          X"$ac_file" : 'X\(/\)' \| \
15101          .     : '\(.\)' 2>/dev/null ||
15102 echo X"$ac_file" |
15103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15104           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15105           /^X\(\/\/\)$/{ s//\1/; q; }
15106           /^X\(\/\).*/{ s//\1/; q; }
15107           s/.*/./; q'`
15108   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15109     { case "$ac_dir" in
15110   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15111   *)                      as_incr_dir=.;;
15112 esac
15113 as_dummy="$ac_dir"
15114 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15115   case $as_mkdir_dir in
15116     # Skip DOS drivespec
15117     ?:) as_incr_dir=$as_mkdir_dir ;;
15118     *)
15119       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15120       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15121     ;;
15122   esac
15123 done; }
15124
15125     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15126     # A "../" for each directory in $ac_dir_suffix.
15127     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
15128   else
15129     ac_dir_suffix= ac_dots=
15130   fi
15131
15132   case $srcdir in
15133   .)  ac_srcdir=.
15134       if test -z "$ac_dots"; then
15135          ac_top_srcdir=.
15136       else
15137          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
15138       fi ;;
15139   [\\/]* | ?:[\\/]* )
15140       ac_srcdir=$srcdir$ac_dir_suffix;
15141       ac_top_srcdir=$srcdir ;;
15142   *) # Relative path.
15143     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
15144     ac_top_srcdir=$ac_dots$srcdir ;;
15145   esac
15146
15147   case $INSTALL in
15148   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15149   *) ac_INSTALL=$ac_dots$INSTALL ;;
15150   esac
15151
15152   if test x"$ac_file" != x-; then
15153     { echo "$as_me:15153: creating $ac_file" >&5
15154 echo "$as_me: creating $ac_file" >&6;}
15155     rm -f "$ac_file"
15156   fi
15157   # Let's still pretend it is `configure' which instantiates (i.e., don't
15158   # use $as_me), people would be surprised to read:
15159   #    /* config.h.  Generated automatically by config.status.  */
15160   configure_input="Generated automatically from `echo $ac_file_in |
15161                                                  sed 's,.*/,,'` by configure."
15162
15163   # First look for the input files in the build tree, otherwise in the
15164   # src tree.
15165   ac_file_inputs=`IFS=:
15166     for f in $ac_file_in; do
15167       case $f in
15168       -) echo $tmp/stdin ;;
15169       [\\/$]*)
15170          # Absolute (can't be DOS-style, as IFS=:)
15171          test -f "$f" || { { echo "$as_me:15171: error: cannot find input file: $f" >&5
15172 echo "$as_me: error: cannot find input file: $f" >&2;}
15173    { (exit 1); exit 1; }; }
15174          echo $f;;
15175       *) # Relative
15176          if test -f "$f"; then
15177            # Build tree
15178            echo $f
15179          elif test -f "$srcdir/$f"; then
15180            # Source tree
15181            echo $srcdir/$f
15182          else
15183            # /dev/null tree
15184            { { echo "$as_me:15184: error: cannot find input file: $f" >&5
15185 echo "$as_me: error: cannot find input file: $f" >&2;}
15186    { (exit 1); exit 1; }; }
15187          fi;;
15188       esac
15189     done` || { (exit 1); exit 1; }
15190 EOF
15191 cat >>$CONFIG_STATUS <<EOF
15192   sed "$ac_vpsub
15193 $extrasub
15194 EOF
15195 cat >>$CONFIG_STATUS <<\EOF
15196 :t
15197 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15198 s,@configure_input@,$configure_input,;t t
15199 s,@srcdir@,$ac_srcdir,;t t
15200 s,@top_srcdir@,$ac_top_srcdir,;t t
15201 s,@INSTALL@,$ac_INSTALL,;t t
15202 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15203   rm -f $tmp/stdin
15204   if test x"$ac_file" != x-; then
15205     mv $tmp/out $ac_file
15206   else
15207     cat $tmp/out
15208     rm -f $tmp/out
15209   fi
15210
15211 done
15212 EOF
15213 cat >>$CONFIG_STATUS <<\EOF
15214
15215 #
15216 # CONFIG_HEADER section.
15217 #
15218
15219 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15220 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15221 #
15222 # ac_d sets the value in "#define NAME VALUE" lines.
15223 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15224 ac_dB='[        ].*$,\1#\2'
15225 ac_dC=' '
15226 ac_dD=',;t'
15227 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15228 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15229 ac_uB='$,\1#\2define\3'
15230 ac_uC=' '
15231 ac_uD=',;t'
15232
15233 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15234   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15235   case $ac_file in
15236   - | *:- | *:-:* ) # input from stdin
15237         cat >$tmp/stdin
15238         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15239         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15240   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15241         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15242   * )   ac_file_in=$ac_file.in ;;
15243   esac
15244
15245   test x"$ac_file" != x- && { echo "$as_me:15245: creating $ac_file" >&5
15246 echo "$as_me: creating $ac_file" >&6;}
15247
15248   # First look for the input files in the build tree, otherwise in the
15249   # src tree.
15250   ac_file_inputs=`IFS=:
15251     for f in $ac_file_in; do
15252       case $f in
15253       -) echo $tmp/stdin ;;
15254       [\\/$]*)
15255          # Absolute (can't be DOS-style, as IFS=:)
15256          test -f "$f" || { { echo "$as_me:15256: error: cannot find input file: $f" >&5
15257 echo "$as_me: error: cannot find input file: $f" >&2;}
15258    { (exit 1); exit 1; }; }
15259          echo $f;;
15260       *) # Relative
15261          if test -f "$f"; then
15262            # Build tree
15263            echo $f
15264          elif test -f "$srcdir/$f"; then
15265            # Source tree
15266            echo $srcdir/$f
15267          else
15268            # /dev/null tree
15269            { { echo "$as_me:15269: error: cannot find input file: $f" >&5
15270 echo "$as_me: error: cannot find input file: $f" >&2;}
15271    { (exit 1); exit 1; }; }
15272          fi;;
15273       esac
15274     done` || { (exit 1); exit 1; }
15275   # Remove the trailing spaces.
15276   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
15277
15278 EOF
15279
15280 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15281 # `conftest.undefs', that substitutes the proper values into
15282 # config.h.in to produce config.h.  The first handles `#define'
15283 # templates, and the second `#undef' templates.
15284 # And first: Protect against being on the right side of a sed subst in
15285 # config.status.  Protect against being in an unquoted here document
15286 # in config.status.
15287 rm -f conftest.defines conftest.undefs
15288 # Using a here document instead of a string reduces the quoting nightmare.
15289 # Putting comments in sed scripts is not portable.
15290 #
15291 # `end' is used to avoid that the second main sed command (meant for
15292 # 0-ary CPP macros) applies to n-ary macro definitions.
15293 # See the Autoconf documentation for `clear'.
15294 cat >confdef2sed.sed <<\EOF
15295 s/[\\&,]/\\&/g
15296 s,[\\$`],\\&,g
15297 t clear
15298 : clear
15299 s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
15300 t end
15301 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15302 : end
15303 EOF
15304 # If some macros were called several times there might be several times
15305 # the same #defines, which is useless.  Nevertheless, we may not want to
15306 # sort them, since we want the *last* AC-DEFINE to be honored.
15307 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15308 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15309 rm -f confdef2sed.sed
15310
15311 # This sed command replaces #undef with comments.  This is necessary, for
15312 # example, in the case of _POSIX_SOURCE, which is predefined and required
15313 # on some systems where configure will not decide to define it.
15314 cat >>conftest.undefs <<\EOF
15315 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15316 EOF
15317
15318 # Break up conftest.defines because some shells have a limit on the size
15319 # of here documents, and old seds have small limits too (100 cmds).
15320 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15321 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15322 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15323 echo '  :' >>$CONFIG_STATUS
15324 rm -f conftest.tail
15325 while grep . conftest.defines >/dev/null
15326 do
15327   # Write a limited-size here document to $tmp/defines.sed.
15328   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15329   # Speed up: don't consider the non `#define' lines.
15330   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
15331   # Work around the forget-to-reset-the-flag bug.
15332   echo 't clr' >>$CONFIG_STATUS
15333   echo ': clr' >>$CONFIG_STATUS
15334   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15335   echo 'CEOF
15336   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15337   rm -f $tmp/in
15338   mv $tmp/out $tmp/in
15339 ' >>$CONFIG_STATUS
15340   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15341   rm -f conftest.defines
15342   mv conftest.tail conftest.defines
15343 done
15344 rm -f conftest.defines
15345 echo '  fi # egrep' >>$CONFIG_STATUS
15346 echo >>$CONFIG_STATUS
15347
15348 # Break up conftest.undefs because some shells have a limit on the size
15349 # of here documents, and old seds have small limits too (100 cmds).
15350 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15351 rm -f conftest.tail
15352 while grep . conftest.undefs >/dev/null
15353 do
15354   # Write a limited-size here document to $tmp/undefs.sed.
15355   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15356   # Speed up: don't consider the non `#undef'
15357   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15358   # Work around the forget-to-reset-the-flag bug.
15359   echo 't clr' >>$CONFIG_STATUS
15360   echo ': clr' >>$CONFIG_STATUS
15361   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15362   echo 'CEOF
15363   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15364   rm -f $tmp/in
15365   mv $tmp/out $tmp/in
15366 ' >>$CONFIG_STATUS
15367   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15368   rm -f conftest.undefs
15369   mv conftest.tail conftest.undefs
15370 done
15371 rm -f conftest.undefs
15372
15373 cat >>$CONFIG_STATUS <<\EOF
15374   # Let's still pretend it is `configure' which instantiates (i.e., don't
15375   # use $as_me), people would be surprised to read:
15376   #    /* config.h.  Generated automatically by config.status.  */
15377   if test x"$ac_file" = x-; then
15378     echo "/* Generated automatically by configure.  */" >$tmp/config.h
15379   else
15380     echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
15381   fi
15382   cat $tmp/in >>$tmp/config.h
15383   rm -f $tmp/in
15384   if test x"$ac_file" != x-; then
15385     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15386       { echo "$as_me:15386: $ac_file is unchanged" >&5
15387 echo "$as_me: $ac_file is unchanged" >&6;}
15388     else
15389       ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15390          X"$ac_file" : 'X\(//\)[^/]' \| \
15391          X"$ac_file" : 'X\(//\)$' \| \
15392          X"$ac_file" : 'X\(/\)' \| \
15393          .     : '\(.\)' 2>/dev/null ||
15394 echo X"$ac_file" |
15395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15396           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15397           /^X\(\/\/\)$/{ s//\1/; q; }
15398           /^X\(\/\).*/{ s//\1/; q; }
15399           s/.*/./; q'`
15400       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15401         { case "$ac_dir" in
15402   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15403   *)                      as_incr_dir=.;;
15404 esac
15405 as_dummy="$ac_dir"
15406 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15407   case $as_mkdir_dir in
15408     # Skip DOS drivespec
15409     ?:) as_incr_dir=$as_mkdir_dir ;;
15410     *)
15411       as_incr_dir=$as_incr_dir/$as_mkdir_dir
15412       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15413     ;;
15414   esac
15415 done; }
15416
15417       fi
15418       rm -f $ac_file
15419       mv $tmp/config.h $ac_file
15420     fi
15421   else
15422     cat $tmp/config.h
15423     rm -f $tmp/config.h
15424   fi
15425 done
15426 EOF
15427 cat >>$CONFIG_STATUS <<\EOF
15428
15429 #
15430 # CONFIG_COMMANDS section.
15431 #
15432 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15433   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15434   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15435
15436   case $ac_dest in
15437     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp >      stamp-h ;;
15438     default-2 )
15439 test x"$AMDEP" != x"" ||
15440 for mf in $CONFIG_FILES; do
15441   case "$mf" in
15442   Makefile) dirpart=.;;
15443   */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
15444   *) continue;;
15445   esac
15446   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15447   # Extract the definition of DEP_FILES from the Makefile without
15448   # running `make'.
15449   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15450   test -z "$DEPDIR" && continue
15451   # When using ansi2knr, U may be empty or an underscore; expand it
15452   U=`sed -n -e '/^U = / s///p' < "$mf"`
15453   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15454   # We invoke sed twice because it is the simplest approach to
15455   # changing $(DEPDIR) to its actual value in the expansion.
15456   for file in `sed -n -e '
15457     /^DEP_FILES = .*\\\\$/ {
15458       s/^DEP_FILES = //
15459       :loop
15460         s/\\\\$//
15461         p
15462         n
15463         /\\\\$/ b loop
15464       p
15465     }
15466     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15467        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15468     # Make sure the directory exists.
15469     test -f "$dirpart/$file" && continue
15470     fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
15471     $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
15472     # echo "creating $dirpart/$file"
15473     echo '# dummy' > "$dirpart/$file"
15474   done
15475 done
15476  ;;
15477     default ) chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary ;;
15478   esac
15479 done
15480 EOF
15481
15482 cat >>$CONFIG_STATUS <<\EOF
15483
15484 { (exit 0); exit 0; }
15485 EOF
15486 chmod +x $CONFIG_STATUS
15487 ac_clean_files=$ac_clean_files_save
15488
15489 # configure is writing to config.log, and then calls config.status.
15490 # config.status does its own redirection, appending to config.log.
15491 # Unfortunately, on DOS this fails, as config.log is still kept open
15492 # by configure, so config.status won't be able to write to it; its
15493 # output is simply discarded.  So we exec the FD to /dev/null,
15494 # effectively closing config.log, so it can be properly (re)opened and
15495 # appended to by config.status.  When coming back to configure, we
15496 # need to make the FD available again.
15497 if test "$no_create" != yes; then
15498   ac_cs_success=:
15499   exec 5>/dev/null
15500   $SHELL $CONFIG_STATUS || ac_cs_success=false
15501   exec 5>>config.log
15502   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15503   # would make configure fail if this is the last instruction.
15504   $ac_cs_success || { (exit 1); exit 1; }
15505 fi
15506
15507 #test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])