From: Harlan Stenn Date: Sat, 17 Jun 2000 07:08:24 +0000 (-0000) Subject: Many files: X-Git-Tag: NTP_4_0_99_K~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcbda4be1a5f65a3b6ca40dd9412b0497530bfcb;p=thirdparty%2Fntp.git Many files: * ntpdc/ntpdc.c (getcmds): * configure.in: Readline support. From: Aaron Sherman * ntpd/refclock_ulink331.c: Added. Sent in by Doug Grosso * ntpd/Makefile.am (ntpd_SOURCES): Added refclock_ulink331.c bk: 394b23e8YCAwTxxQaXJQXtsHRcCTKA --- diff --git a/ChangeLog b/ChangeLog index 20550b511b..ce31266020 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 2000-06-17 Harlan Stenn + * ntpdc/ntpdc.c (getcmds): + * configure.in: + Readline support. + From: Aaron Sherman + + * ntpd/refclock_ulink331.c: Added. + Sent in by Doug Grosso + * ntpd/Makefile.am (ntpd_SOURCES): Added refclock_ulink331.c + * libntp/snprintf.c: Added stdio.h From: Marc Brett diff --git a/NEWS b/NEWS index 131033e86b..7295d75234 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +* ulink331 driver (needs integration) * Crypto/authentication rewrite * WINNT builds with MD5 by default * WINNT no longer requires Perl for building with Visual C++ 6.0 diff --git a/config.h.in b/config.h.in index 19b09ca776..87cc3fdcb4 100644 --- a/config.h.in +++ b/config.h.in @@ -527,6 +527,9 @@ /* Define if you have the `posix4' library (-lposix4). */ #undef HAVE_LIBPOSIX4 +/* Define if you have the `readline' library (-lreadline). */ +#undef HAVE_LIBREADLINE + /* Define if you have the `rt' library (-lrt). */ #undef HAVE_LIBRT diff --git a/configure b/configure index c23c2037db..f82fa63838 100755 --- a/configure +++ b/configure @@ -2532,15 +2532,61 @@ fi fi +echo $ac_n "checking for readline in -lreadline... $ac_c" 1>&6 +echo "configure:2537: checking for readline in -lreadline" 1>&5 +if test "${ac_cv_lib_readline_readline+set}" = set; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lreadline $LIBS" +cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_lib_readline_readline=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_lib_readline_readline=no +fi +rm -f conftest* + +LIBS="$ac_save_LIBS" +fi +echo "$ac_t""$ac_cv_lib_readline_readline" 1>&6 +if test $ac_cv_lib_readline_readline = yes; then + cat >>confdefs.h <&6 -echo "configure:2537: checking for sched_setscheduler in -lrt" 1>&5 +echo "configure:2583: checking for sched_setscheduler in -lrt" 1>&5 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lrt $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_rt_sched_setscheduler=yes else @@ -2578,14 +2624,14 @@ EOF else echo $ac_n "checking for sched_setscheduler in -lposix4... $ac_c" 1>&6 -echo "configure:2582: checking for sched_setscheduler in -lposix4" 1>&5 +echo "configure:2628: checking for sched_setscheduler in -lposix4" 1>&5 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lposix4 $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_posix4_sched_setscheduler=yes else @@ -2626,12 +2672,12 @@ fi fi echo $ac_n "checking for setsockopt... $ac_c" 1>&6 -echo "configure:2630: checking for setsockopt" 1>&5 +echo "configure:2676: checking for setsockopt" 1>&5 if test "${ac_cv_func_setsockopt+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_setsockopt=yes else @@ -2676,14 +2722,14 @@ if test $ac_cv_func_setsockopt = yes; then : else echo $ac_n "checking for setsockopt in -lsocket... $ac_c" 1>&6 -echo "configure:2680: checking for setsockopt in -lsocket" 1>&5 +echo "configure:2726: checking for setsockopt in -lsocket" 1>&5 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsocket $LIBS" cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_lib_socket_setsockopt=yes else @@ -2724,12 +2770,12 @@ fi fi echo $ac_n "checking for ANSI C header files... $ac_c" 1>&6 -echo "configure:2728: checking for ANSI C header files" 1>&5 +echo "configure:2774: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #include @@ -2738,7 +2784,7 @@ else EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2755,7 +2801,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext < @@ -2774,7 +2820,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext < @@ -2796,7 +2842,7 @@ if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < #if ((' ' & 0x0FF) == 0x020) @@ -2821,7 +2867,7 @@ main () exit (0); } EOF -if { (eval echo configure:2825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -2848,18 +2894,18 @@ for ac_header in bstring.h errno.h fcntl.h ieeefp.h memory.h netdb.h poll.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:2852: checking for $ac_header" 1>&5 +echo "configure:2898: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2886,18 +2932,18 @@ for ac_header in resolv.h sched.h sgtty.h stdlib.h string.h termio.h termios.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:2890: checking for $ac_header" 1>&5 +echo "configure:2936: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2924,18 +2970,18 @@ for ac_header in timepps.h timex.h unistd.h utmp.h utmpx.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:2928: checking for $ac_header" 1>&5 +echo "configure:2974: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2962,18 +3008,18 @@ for ac_header in arpa/nameser.h net/if.h netinet/in_systm.h netinet/in.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:2966: checking for $ac_header" 1>&5 +echo "configure:3012: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3000,18 +3046,18 @@ for ac_header in netinfo/ni.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3004: checking for $ac_header" 1>&5 +echo "configure:3050: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3041,18 +3087,18 @@ for ac_header in sun/audioio.h sys/audioio.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3045: checking for $ac_header" 1>&5 +echo "configure:3091: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3079,18 +3125,18 @@ for ac_header in sys/clkdefs.h sys/file.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3083: checking for $ac_header" 1>&5 +echo "configure:3129: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3119,18 +3165,18 @@ case "$target" in do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3123: checking for $ac_header" 1>&5 +echo "configure:3169: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3159,18 +3205,18 @@ for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3163: checking for $ac_header" 1>&5 +echo "configure:3209: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3197,18 +3243,18 @@ for ac_header in sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3201: checking for $ac_header" 1>&5 +echo "configure:3247: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3237,18 +3283,18 @@ case "$target" in do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3241: checking for $ac_header" 1>&5 +echo "configure:3287: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3277,18 +3323,18 @@ for ac_header in sys/select.h sys/sockio.h sys/stat.h sys/stream.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3281: checking for $ac_header" 1>&5 +echo "configure:3327: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3315,18 +3361,18 @@ for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3319: checking for $ac_header" 1>&5 +echo "configure:3365: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3353,18 +3399,18 @@ for ac_header in sys/time.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3357: checking for $ac_header" 1>&5 +echo "configure:3403: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3388,7 +3434,7 @@ fi done cat >conftest.$ac_ext < #ifdef PPS_API_VERS_1 @@ -3403,18 +3449,18 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3407: checking for $ac_header" 1>&5 +echo "configure:3453: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3444,18 +3490,18 @@ for ac_header in sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3448: checking for $ac_header" 1>&5 +echo "configure:3494: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3479,12 +3525,12 @@ fi done echo $ac_n "checking whether time.h and sys/time.h may both be included... $ac_c" 1>&6 -echo "configure:3483: checking whether time.h and sys/time.h may both be included" 1>&5 +echo "configure:3529: checking whether time.h and sys/time.h may both be included" 1>&5 if test "${ac_cv_header_time+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #include @@ -3498,7 +3544,7 @@ struct tm *tp; return 0; } EOF -if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -3523,18 +3569,18 @@ case "$target" in do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3527: checking for $ac_header" 1>&5 +echo "configure:3573: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3563,18 +3609,18 @@ done do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3567: checking for $ac_header" 1>&5 +echo "configure:3613: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3601,18 +3647,18 @@ done esac echo $ac_n "checking for nlist.h... $ac_c" 1>&6 -echo "configure:3605: checking for nlist.h" 1>&5 +echo "configure:3651: checking for nlist.h" 1>&5 if test "${ac_cv_header_nlist_h+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3633,12 +3679,12 @@ if test $ac_cv_header_nlist_h = yes; then EOF echo $ac_n "checking for n_un in struct nlist... $ac_c" 1>&6 -echo "configure:3637: checking for n_un in struct nlist" 1>&5 +echo "configure:3683: checking for n_un in struct nlist" 1>&5 if test "${ac_cv_struct_nlist_n_un+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < int @@ -3649,7 +3695,7 @@ struct nlist n; n.n_un.n_name = 0; return 0; } EOF -if { (eval echo configure:3653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_nlist_n_un=yes else @@ -3671,12 +3717,12 @@ fi fi echo $ac_n "checking for basic volatile support... $ac_c" 1>&6 -echo "configure:3675: checking for basic volatile support" 1>&5 +echo "configure:3721: checking for basic volatile support" 1>&5 if test "${ac_cv_c_volatile+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_volatile=yes else @@ -3719,7 +3765,7 @@ case "$target" in echo $ac_n "checking for ${CC-cc} option to accept ANSI C... $ac_c" 1>&6 -echo "configure:3723: checking for ${CC-cc} option to accept ANSI C" 1>&5 +echo "configure:3769: checking for ${CC-cc} option to accept ANSI C" 1>&5 if test "${am_cv_prog_cc_stdc+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3736,7 +3782,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO do CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext < #include @@ -3777,7 +3823,7 @@ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; return 0; } EOF -if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_prog_cc_stdc="$ac_arg"; break else @@ -3801,7 +3847,7 @@ case "x$am_cv_prog_cc_stdc" in esac echo $ac_n "checking for function prototypes... $ac_c" 1>&6 -echo "configure:3805: checking for function prototypes" 1>&5 +echo "configure:3851: checking for function prototypes" 1>&5 if test "$am_cv_prog_cc_stdc" != no; then echo "$ac_t""yes" 1>&6 cat >>confdefs.h <<\EOF @@ -3814,12 +3860,12 @@ else U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. echo $ac_n "checking for ANSI C header files... $ac_c" 1>&6 -echo "configure:3818: checking for ANSI C header files" 1>&5 +echo "configure:3864: checking for ANSI C header files" 1>&5 if test "${ac_cv_header_stdc+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #include @@ -3828,7 +3874,7 @@ else EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3845,7 +3891,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext < @@ -3864,7 +3910,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext < @@ -3886,7 +3932,7 @@ if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext < #if ((' ' & 0x0FF) == 0x020) @@ -3911,7 +3957,7 @@ main () exit (0); } EOF -if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -3938,18 +3984,18 @@ fi do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` echo $ac_n "checking for $ac_header... $ac_c" 1>&6 -echo "configure:3942: checking for $ac_header" 1>&5 +echo "configure:3988: checking for $ac_header" 1>&5 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3977,12 +4023,12 @@ fi ;; esac echo $ac_n "checking if C compiler permits function prototypes... $ac_c" 1>&6 -echo "configure:3981: checking if C compiler permits function prototypes" 1>&5 +echo "configure:4027: checking if C compiler permits function prototypes" 1>&5 if test "${ac_cv_have_prototypes+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_have_prototypes=yes else @@ -4017,7 +4063,7 @@ EOF fi echo $ac_n "checking for ${CC-cc} option to accept ANSI C... $ac_c" 1>&6 -echo "configure:4021: checking for ${CC-cc} option to accept ANSI C" 1>&5 +echo "configure:4067: checking for ${CC-cc} option to accept ANSI C" 1>&5 if test "${ac_cv_prog_cc_stdc+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4034,7 +4080,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO do CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext < #include @@ -4072,7 +4118,7 @@ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; return 0; } EOF -if { (eval echo configure:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_prog_cc_stdc="$ac_arg"; break else @@ -4094,12 +4140,12 @@ case "x$ac_cv_prog_cc_stdc" in esac echo $ac_n "checking for an ANSI C conforming const... $ac_c" 1>&6 -echo "configure:4098: checking for an ANSI C conforming const" 1>&5 +echo "configure:4144: checking for an ANSI C conforming const" 1>&5 if test "${ac_cv_c_const+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -4178,14 +4224,14 @@ fi case "$host" in $target) echo $ac_n "checking whether byte ordering is bigendian... $ac_c" 1>&6 -echo "configure:4182: checking whether byte ordering is bigendian" 1>&5 +echo "configure:4228: checking whether byte ordering is bigendian" 1>&5 if test "${ac_cv_c_bigendian+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat >conftest.$ac_ext < #include @@ -4201,11 +4247,11 @@ main () return 0; } EOF -if { (eval echo configure:4205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat >conftest.$ac_ext < #include @@ -4221,7 +4267,7 @@ main () return 0; } EOF -if { (eval echo configure:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -4241,7 +4287,7 @@ if test "$cross_compiling" = yes; then { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; } else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_bigendian=no else @@ -4296,12 +4342,12 @@ EOF ;; esac echo $ac_n "checking return type of signal handlers... $ac_c" 1>&6 -echo "configure:4300: checking return type of signal handlers" 1>&5 +echo "configure:4346: checking return type of signal handlers" 1>&5 if test "${ac_cv_type_signal+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #include @@ -4322,7 +4368,7 @@ int i; return 0; } EOF -if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -4339,12 +4385,12 @@ cat >>confdefs.h <&6 -echo "configure:4343: checking for off_t" 1>&5 +echo "configure:4389: checking for off_t" 1>&5 if test "${ac_cv_type_off_t+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_off_t=yes else @@ -4380,12 +4426,12 @@ EOF fi echo $ac_n "checking for size_t... $ac_c" 1>&6 -echo "configure:4384: checking for size_t" 1>&5 +echo "configure:4430: checking for size_t" 1>&5 if test "${ac_cv_type_size_t+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_size_t=yes else @@ -4421,12 +4467,12 @@ EOF fi echo $ac_n "checking for time_t... $ac_c" 1>&6 -echo "configure:4425: checking for time_t" 1>&5 +echo "configure:4471: checking for time_t" 1>&5 if test "${ac_cv_type_time_t+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_time_t=yes else @@ -4462,12 +4508,12 @@ EOF fi echo $ac_n "checking whether struct tm is in sys/time.h or time.h... $ac_c" 1>&6 -echo "configure:4466: checking whether struct tm is in sys/time.h or time.h" 1>&5 +echo "configure:4512: checking whether struct tm is in sys/time.h or time.h" 1>&5 if test "${ac_cv_struct_tm+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #include @@ -4480,7 +4526,7 @@ struct tm *tp; tp->tm_sec; return 0; } EOF -if { (eval echo configure:4484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -4500,7 +4546,7 @@ EOF fi echo $ac_n "checking for a fallback value for HZ... $ac_c" 1>&6 -echo "configure:4504: checking for a fallback value for HZ" 1>&5 +echo "configure:4550: checking for a fallback value for HZ" 1>&5 if test "${ac_cv_var_default_hz+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4520,7 +4566,7 @@ cat >>confdefs.h <&6 -echo "configure:4524: checking if we need to override the system's value for HZ" 1>&5 +echo "configure:4570: checking if we need to override the system's value for HZ" 1>&5 if test "${ac_cv_var_override_hz+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4551,13 +4597,13 @@ EOF esac echo $ac_n "checking struct sigaction for sa_sigaction... $ac_c" 1>&6 -echo "configure:4555: checking struct sigaction for sa_sigaction" 1>&5 +echo "configure:4601: checking struct sigaction for sa_sigaction" 1>&5 if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < int @@ -4568,7 +4614,7 @@ struct sigaction act; act.sa_sigaction = 0; return 0; } EOF -if { (eval echo configure:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_sigaction_has_sa_sigaction=yes else @@ -4591,12 +4637,12 @@ EOF fi echo $ac_n "checking for struct ppsclockev... $ac_c" 1>&6 -echo "configure:4595: checking for struct ppsclockev" 1>&5 +echo "configure:4641: checking for struct ppsclockev" 1>&5 if test "${ac_cv_struct_ppsclockev+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -4619,7 +4665,7 @@ return pce->serial; return 0; } EOF -if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_ppsclockev=yes else @@ -4640,12 +4686,12 @@ EOF fi echo $ac_n "checking struct sockaddr for sa_len... $ac_c" 1>&6 -echo "configure:4644: checking struct sockaddr for sa_len" 1>&5 +echo "configure:4690: checking struct sockaddr for sa_len" 1>&5 if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -4660,7 +4706,7 @@ return ps->sa_len; return 0; } EOF -if { (eval echo configure:4664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_sockaddr_has_sa_len=yes else @@ -4681,12 +4727,12 @@ EOF fi echo $ac_n "checking struct clockinfo for hz... $ac_c" 1>&6 -echo "configure:4685: checking struct clockinfo for hz" 1>&5 +echo "configure:4731: checking struct clockinfo for hz" 1>&5 if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -4700,7 +4746,7 @@ return pc->hz; return 0; } EOF -if { (eval echo configure:4704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_clockinfo_has_hz=yes else @@ -4721,12 +4767,12 @@ EOF fi echo $ac_n "checking struct clockinfo for tickadj... $ac_c" 1>&6 -echo "configure:4725: checking struct clockinfo for tickadj" 1>&5 +echo "configure:4771: checking struct clockinfo for tickadj" 1>&5 if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -4740,7 +4786,7 @@ return pc->tickadj; return 0; } EOF -if { (eval echo configure:4744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_clockinfo_has_tickadj=yes else @@ -4761,12 +4807,12 @@ EOF fi echo $ac_n "checking for struct ntptimeval... $ac_c" 1>&6 -echo "configure:4765: checking for struct ntptimeval" 1>&5 +echo "configure:4811: checking for struct ntptimeval" 1>&5 if test "${ac_cv_struct_ntptimeval+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -4779,7 +4825,7 @@ struct ntptimeval n; return 0; } EOF -if { (eval echo configure:4783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_ntptimeval=yes else @@ -4799,12 +4845,12 @@ EOF fi echo $ac_n "checking struct ntptimeval for time.tv_nsec... $ac_c" 1>&6 -echo "configure:4803: checking struct ntptimeval for time.tv_nsec" 1>&5 +echo "configure:4849: checking struct ntptimeval for time.tv_nsec" 1>&5 if test "${ac_cv_struct_ntptimeval_tv_nsec+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <time.tv_nsec; return 0; } EOF -if { (eval echo configure:4835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_ntptimeval_tv_nsec=yes else @@ -4852,12 +4898,12 @@ EOF fi echo $ac_n "checking for struct timespec in struct ntptimeval... $ac_c" 1>&6 -echo "configure:4856: checking for struct timespec in struct ntptimeval" 1>&5 +echo "configure:4902: checking for struct timespec in struct ntptimeval" 1>&5 if test "${ac_cv_struct_ntptimeval_timespec+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #include @@ -4869,7 +4915,7 @@ struct ntptimeval n; n.time.tv_nsec = 0; return 0; } EOF -if { (eval echo configure:4873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_ntptimeval_timespec=yes else @@ -4889,14 +4935,14 @@ EOF fi echo $ac_n "checking for inline... $ac_c" 1>&6 -echo "configure:4893: checking for inline" 1>&5 +echo "configure:4939: checking for inline" 1>&5 if test "${ac_cv_c_inline+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -4935,14 +4981,14 @@ EOF esac echo $ac_n "checking whether char is unsigned... $ac_c" 1>&6 -echo "configure:4939: checking whether char is unsigned" 1>&5 +echo "configure:4985: checking whether char is unsigned" 1>&5 if test "${ac_cv_c_char_unsigned+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else if test "$GCC" = yes; then # GCC predefines this symbol on systems where it applies. cat >conftest.$ac_ext <&2; exit 1; } else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_char_unsigned=yes else @@ -5002,7 +5048,7 @@ fi case "$host" in $target) echo $ac_n "checking size of signed char... $ac_c" 1>&6 -echo "configure:5006: checking size of signed char" 1>&5 +echo "configure:5052: checking size of signed char" 1>&5 if test "${ac_cv_sizeof_signed_char+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5010,7 +5056,7 @@ else { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; } else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_signed_char=`cat conftestval` else @@ -5046,7 +5092,7 @@ EOF *) case "$target" in *-*-vxworks*) echo $ac_n "checking size of signed char... $ac_c" 1>&6 -echo "configure:5050: checking size of signed char" 1>&5 +echo "configure:5096: checking size of signed char" 1>&5 if test "${ac_cv_sizeof_signed_char+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5054,7 +5100,7 @@ else ac_cv_sizeof_signed_char=1 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_signed_char=`cat conftestval` else @@ -5096,7 +5142,7 @@ esac case "$host" in $target) echo $ac_n "checking size of int... $ac_c" 1>&6 -echo "configure:5100: checking size of int" 1>&5 +echo "configure:5146: checking size of int" 1>&5 if test "${ac_cv_sizeof_int+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5104,7 +5150,7 @@ else { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; } else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -5140,7 +5186,7 @@ EOF *) case "$target" in *-*-vxworks*) echo $ac_n "checking size of int... $ac_c" 1>&6 -echo "configure:5144: checking size of int" 1>&5 +echo "configure:5190: checking size of int" 1>&5 if test "${ac_cv_sizeof_int+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5148,7 +5194,7 @@ else ac_cv_sizeof_int=4 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_int=`cat conftestval` else @@ -5190,7 +5236,7 @@ esac case "$host" in $target) echo $ac_n "checking size of long... $ac_c" 1>&6 -echo "configure:5194: checking size of long" 1>&5 +echo "configure:5240: checking size of long" 1>&5 if test "${ac_cv_sizeof_long+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5198,7 +5244,7 @@ else { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; } else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -5234,7 +5280,7 @@ EOF *) case "$target" in *-*-vxworks*) echo $ac_n "checking size of long... $ac_c" 1>&6 -echo "configure:5238: checking size of long" 1>&5 +echo "configure:5284: checking size of long" 1>&5 if test "${ac_cv_sizeof_long+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5242,7 +5288,7 @@ else ac_cv_sizeof_long=4 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_sizeof_long=`cat conftestval` else @@ -5282,12 +5328,12 @@ EOF esac echo $ac_n "checking for s_char... $ac_c" 1>&6 -echo "configure:5286: checking for s_char" 1>&5 +echo "configure:5332: checking for s_char" 1>&5 if test "${ac_cv_type_s_char+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_s_char=yes else @@ -5351,12 +5397,12 @@ EOF ;; esac echo $ac_n "checking for uid_t in sys/types.h... $ac_c" 1>&6 -echo "configure:5355: checking for uid_t in sys/types.h" 1>&5 +echo "configure:5401: checking for uid_t in sys/types.h" 1>&5 if test "${ac_cv_type_uid_t+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -5390,12 +5436,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5394: checking for $ac_func" 1>&5 +echo "configure:5440: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5458,12 +5504,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5462: checking for $ac_func" 1>&5 +echo "configure:5508: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5518,12 +5564,12 @@ for ac_func in daemon getbootfile getdtablesize getrusage do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5522: checking for $ac_func" 1>&5 +echo "configure:5568: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5576,12 +5622,12 @@ for ac_func in gettimeofday do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5580: checking for $ac_func" 1>&5 +echo "configure:5626: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5637,12 +5683,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5641: checking for $ac_func" 1>&5 +echo "configure:5687: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5697,12 +5743,12 @@ for ac_func in hstrerror K_open kvm_open memcpy memmove memset do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5701: checking for $ac_func" 1>&5 +echo "configure:5747: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5759,12 +5805,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5763: checking for $ac_func" 1>&5 +echo "configure:5809: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5819,12 +5865,12 @@ for ac_func in mktime do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5823: checking for $ac_func" 1>&5 +echo "configure:5869: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5892,12 +5938,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5896: checking for $ac_func" 1>&5 +echo "configure:5942: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -5950,12 +5996,12 @@ done do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:5954: checking for $ac_func" 1>&5 +echo "configure:6000: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6009,12 +6055,12 @@ done do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6013: checking for $ac_func" 1>&5 +echo "configure:6059: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6069,12 +6115,12 @@ for ac_func in mrand48 srand48 nice nlist do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6073: checking for $ac_func" 1>&5 +echo "configure:6119: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6131,12 +6177,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6135: checking for $ac_func" 1>&5 +echo "configure:6181: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6191,12 +6237,12 @@ for ac_func in plock pututline pututxline rtprio do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6195: checking for $ac_func" 1>&5 +echo "configure:6241: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6251,12 +6297,12 @@ case "$ac_cv_func_mrand48" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6255: checking for $ac_func" 1>&5 +echo "configure:6301: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6320,12 +6366,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6324: checking for $ac_func" 1>&5 +echo "configure:6370: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6380,12 +6426,12 @@ for ac_func in setlinebuf do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6384: checking for $ac_func" 1>&5 +echo "configure:6430: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6438,12 +6484,12 @@ for ac_func in setpgid setpriority setsid settimeofday setvbuf sigaction do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6442: checking for $ac_func" 1>&5 +echo "configure:6488: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6496,12 +6542,12 @@ for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6500: checking for $ac_func" 1>&5 +echo "configure:6546: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6554,12 +6600,12 @@ for ac_func in snprintf strerror do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6558: checking for $ac_func" 1>&5 +echo "configure:6604: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6624,12 +6670,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6628: checking for $ac_func" 1>&5 +echo "configure:6674: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6688,12 +6734,12 @@ case "$target" in do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6692: checking for $ac_func" 1>&5 +echo "configure:6738: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6748,12 +6794,12 @@ for ac_func in uname updwtmp updwtmpx vsprintf do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` echo $ac_n "checking for $ac_func... $ac_c" 1>&6 -echo "configure:6752: checking for $ac_func" 1>&5 +echo "configure:6798: checking for $ac_func" 1>&5 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "$ac_ac_var=yes" else @@ -6803,12 +6849,12 @@ fi done echo $ac_n "checking number of arguments to gettimeofday()... $ac_c" 1>&6 -echo "configure:6807: checking number of arguments to gettimeofday()" 1>&5 +echo "configure:6853: checking number of arguments to gettimeofday()" 1>&5 if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < int @@ -6822,7 +6868,7 @@ settimeofday((struct timeval*)0,(struct timezone*)0); return 0; } EOF -if { (eval echo configure:6826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_Xettimeofday_nargs=2 else @@ -6843,12 +6889,12 @@ EOF fi echo $ac_n "checking number of arguments taken by setpgrp()... $ac_c" 1>&6 -echo "configure:6847: checking number of arguments taken by setpgrp()" 1>&5 +echo "configure:6893: checking number of arguments taken by setpgrp()" 1>&5 if test "${ac_cv_func_setpgrp_nargs+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_setpgrp_nargs=2 else @@ -6890,12 +6936,12 @@ save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS -I$srcdir/include" echo $ac_n "checking argument pointer type of qsort()'s compare function and base... $ac_c" 1>&6 -echo "configure:6894: checking argument pointer type of qsort()'s compare function and base" 1>&5 +echo "configure:6940: checking argument pointer type of qsort()'s compare function and base" 1>&5 if test "${ac_cv_func_qsort_argtype+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_func_qsort_argtype=void else @@ -6947,12 +6993,12 @@ esac CFLAGS=$save_CFLAGS echo $ac_n "checking if we need to declare 'errno'... $ac_c" 1>&6 -echo "configure:6951: checking if we need to declare 'errno'" 1>&5 +echo "configure:6997: checking if we need to declare 'errno'" 1>&5 if test "${ac_cv_decl_errno+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -6965,7 +7011,7 @@ errno = 0; return 0; } EOF -if { (eval echo configure:6969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_errno=no else @@ -6985,12 +7031,12 @@ EOF esac echo $ac_n "checking if we may declare 'h_errno'... $ac_c" 1>&6 -echo "configure:6989: checking if we may declare 'h_errno'" 1>&5 +echo "configure:7035: checking if we may declare 'h_errno'" 1>&5 if test "${ac_cv_decl_h_errno+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef HAVE_NETINET_IN_H @@ -7013,7 +7059,7 @@ extern int h_errno; return 0; } EOF -if { (eval echo configure:7017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_h_errno=yes else @@ -7033,12 +7079,12 @@ EOF esac echo $ac_n "checking if declaring 'char *sys_errlist[]' is ok... $ac_c" 1>&6 -echo "configure:7037: checking [if declaring 'char *sys_errlist[]' is ok]" 1>&5 +echo "configure:7083: checking [if declaring 'char *sys_errlist[]' is ok]" 1>&5 if test "${ac_cv_decl_sys_errlist+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef HAVE_ERRNO_H @@ -7053,7 +7099,7 @@ extern char *sys_errlist[]; return 0; } EOF -if { (eval echo configure:7057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_errlist=yes else @@ -7073,12 +7119,12 @@ EOF esac echo $ac_n "checking if declaring 'syscall()' is ok... $ac_c" 1>&6 -echo "configure:7077: checking if declaring 'syscall()' is ok" 1>&5 +echo "configure:7123: checking if declaring 'syscall()' is ok" 1>&5 if test "${ac_cv_decl_syscall+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:7151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_syscall=yes else @@ -7387,7 +7433,7 @@ EOF esac echo $ac_n "checking if we should use a streams device for ifconfig... $ac_c" 1>&6 -echo "configure:7391: checking if we should use a streams device for ifconfig" 1>&5 +echo "configure:7437: checking if we should use a streams device for ifconfig" 1>&5 if test "${ac_cv_var_use_streams_device_for_ifconfig+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7396,7 +7442,7 @@ fi echo "$ac_t""$ac_cv_var_use_streams_device_for_ifconfig" 1>&6 echo $ac_n "checking if we need extra room for SO_RCVBUF... $ac_c" 1>&6 -echo "configure:7400: checking if we need extra room for SO_RCVBUF" 1>&5 +echo "configure:7446: checking if we need extra room for SO_RCVBUF" 1>&5 if test "${ac_cv_var_rcvbuf_slop+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7417,7 +7463,7 @@ EOF esac echo $ac_n "checking if we will open the broadcast socket... $ac_c" 1>&6 -echo "configure:7421: checking if we will open the broadcast socket" 1>&5 +echo "configure:7467: checking if we will open the broadcast socket" 1>&5 if test "${ac_cv_var_open_bcast_socket+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7441,7 +7487,7 @@ EOF esac echo $ac_n "checking if we want the HPUX version of FindConfig()... $ac_c" 1>&6 -echo "configure:7445: checking if we want the HPUX version of FindConfig()" 1>&5 +echo "configure:7491: checking if we want the HPUX version of FindConfig()" 1>&5 if test "${ac_cv_var_hpux_findconfig+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7462,7 +7508,7 @@ EOF esac echo $ac_n "checking if process groups are set with -pid... $ac_c" 1>&6 -echo "configure:7466: checking if process groups are set with -pid" 1>&5 +echo "configure:7512: checking if process groups are set with -pid" 1>&5 if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7497,7 +7543,7 @@ EOF esac echo $ac_n "checking if we need a ctty for F_SETOWN... $ac_c" 1>&6 -echo "configure:7501: checking if we need a ctty for F_SETOWN" 1>&5 +echo "configure:7547: checking if we need a ctty for F_SETOWN" 1>&5 if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7532,7 +7578,7 @@ esac ntp_warning='GRONK' echo $ac_n "checking if we'll use clock_settime or settimeofday or stime... $ac_c" 1>&6 -echo "configure:7536: checking if we'll use clock_settime or settimeofday or stime" 1>&5 +echo "configure:7582: checking if we'll use clock_settime or settimeofday or stime" 1>&5 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in yes*) ntp_warning='' @@ -7561,7 +7607,7 @@ case "$ntp_warning" in esac echo $ac_n "checking if we have a losing syscall()... $ac_c" 1>&6 -echo "configure:7565: checking if we have a losing syscall()" 1>&5 +echo "configure:7611: checking if we have a losing syscall()" 1>&5 if test "${ac_cv_var_syscall_bug+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7583,7 +7629,7 @@ EOF esac echo $ac_n "checking for Streams/TLI... $ac_c" 1>&6 -echo "configure:7587: checking for Streams/TLI" 1>&5 +echo "configure:7633: checking for Streams/TLI" 1>&5 if test "${ac_cv_var_streams_tli+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7611,12 +7657,12 @@ EOF esac echo $ac_n "checking for SIGIO... $ac_c" 1>&6 -echo "configure:7615: checking for SIGIO" 1>&5 +echo "configure:7661: checking for SIGIO" 1>&5 if test "${ac_cv_hdr_def_sigio+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef SIGIO @@ -7638,7 +7684,7 @@ fi echo "$ac_t""$ac_cv_hdr_def_sigio" 1>&6 echo $ac_n "checking if we want to use signalled IO... $ac_c" 1>&6 -echo "configure:7642: checking if we want to use signalled IO" 1>&5 +echo "configure:7688: checking if we want to use signalled IO" 1>&5 if test "${ac_cv_var_signalled_io+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7688,12 +7734,12 @@ EOF esac echo $ac_n "checking for SIGPOLL... $ac_c" 1>&6 -echo "configure:7692: checking for SIGPOLL" 1>&5 +echo "configure:7738: checking for SIGPOLL" 1>&5 if test "${ac_cv_hdr_def_sigpoll+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef SIGPOLL @@ -7715,12 +7761,12 @@ fi echo "$ac_t""$ac_cv_hdr_def_sigpoll" 1>&6 echo $ac_n "checking for SIGSYS... $ac_c" 1>&6 -echo "configure:7719: checking for SIGSYS" 1>&5 +echo "configure:7765: checking for SIGSYS" 1>&5 if test "${ac_cv_hdr_def_sigsys+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef SIGSYS @@ -7742,7 +7788,7 @@ fi echo "$ac_t""$ac_cv_hdr_def_sigsys" 1>&6 echo $ac_n "checking if we can use SIGPOLL for UDP I/O... $ac_c" 1>&6 -echo "configure:7746: checking if we can use SIGPOLL for UDP I/O" 1>&5 +echo "configure:7792: checking if we can use SIGPOLL for UDP I/O" 1>&5 if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7796,7 +7842,7 @@ EOF esac echo $ac_n "checking if we can use SIGPOLL for TTY I/O... $ac_c" 1>&6 -echo "configure:7800: checking if we can use SIGPOLL for TTY I/O" 1>&5 +echo "configure:7846: checking if we can use SIGPOLL for TTY I/O" 1>&5 if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7852,12 +7898,12 @@ esac case "$ac_cv_header_sys_sio_h" in yes) echo $ac_n "checking sys/sio.h for TIOCDCDTIMESTAMP... $ac_c" 1>&6 -echo "configure:7856: checking sys/sio.h for TIOCDCDTIMESTAMP" 1>&5 +echo "configure:7902: checking sys/sio.h for TIOCDCDTIMESTAMP" 1>&5 if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef TIOCDCDTIMESTAMP @@ -7887,7 +7933,7 @@ case "$ac_cv_hdr_def_tiocdcdtimestamp" in esac echo $ac_n "checking if nlist() values might require extra indirection... $ac_c" 1>&6 -echo "configure:7891: checking if nlist() values might require extra indirection" 1>&5 +echo "configure:7937: checking if nlist() values might require extra indirection" 1>&5 if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7908,7 +7954,7 @@ EOF esac echo $ac_n "checking for a minimum recommended value of tickadj... $ac_c" 1>&6 -echo "configure:7912: checking for a minimum recommended value of tickadj" 1>&5 +echo "configure:7958: checking for a minimum recommended value of tickadj" 1>&5 if test "${ac_cv_var_min_rec_tickadj+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7930,7 +7976,7 @@ EOF esac echo $ac_n "checking if the TTY code permits PARENB and IGNPAR... $ac_c" 1>&6 -echo "configure:7934: checking if the TTY code permits PARENB and IGNPAR" 1>&5 +echo "configure:7980: checking if the TTY code permits PARENB and IGNPAR" 1>&5 if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -7954,7 +8000,7 @@ EOF esac echo $ac_n "checking if we're including debugging code... $ac_c" 1>&6 -echo "configure:7958: checking if we're including debugging code" 1>&5 +echo "configure:8004: checking if we're including debugging code" 1>&5 # Check whether --enable-debugging or --disable-debugging was given. if test "${enable_debugging+set}" = set; then enableval="$enable_debugging" @@ -7972,7 +8018,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for a the number of minutes in a DST adjustment... $ac_c" 1>&6 -echo "configure:7976: checking for a the number of minutes in a DST adjustment" 1>&5 +echo "configure:8022: checking for a the number of minutes in a DST adjustment" 1>&5 # Check whether --enable-dst_minutes or --disable-dst_minutes was given. if test "${enable_dst_minutes+set}" = set; then enableval="$enable_dst_minutes" @@ -7988,7 +8034,7 @@ EOF echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we have the tty_clk line discipline/streams module... $ac_c" 1>&6 -echo "configure:7992: checking if we have the tty_clk line discipline/streams module" 1>&5 +echo "configure:8038: checking if we have the tty_clk line discipline/streams module" 1>&5 if test "${ac_cv_var_tty_clk+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8005,7 +8051,7 @@ EOF esac echo $ac_n "checking for the ppsclock streams module... $ac_c" 1>&6 -echo "configure:8009: checking for the ppsclock streams module" 1>&5 +echo "configure:8055: checking for the ppsclock streams module" 1>&5 if test "${ac_cv_var_ppsclock+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8020,7 +8066,7 @@ EOF esac echo $ac_n "checking for kernel multicast support... $ac_c" 1>&6 -echo "configure:8024: checking for kernel multicast support" 1>&5 +echo "configure:8070: checking for kernel multicast support" 1>&5 if test "${ac_cv_var_mcast+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8028,7 +8074,7 @@ else case "$target" in i386-sequent-sysv4) ;; *) cat >conftest.$ac_ext < #ifdef IP_ADD_MEMBERSHIP @@ -8054,7 +8100,7 @@ EOF esac echo $ac_n "checking availability of ntp_{adj,get}time()... $ac_c" 1>&6 -echo "configure:8058: checking [availability of ntp_{adj,get}time()]" 1>&5 +echo "configure:8104: checking [availability of ntp_{adj,get}time()]" 1>&5 if test "${ac_cv_var_ntp_syscalls+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8068,7 +8114,7 @@ else ac_cv_var_ntp_syscalls=libc ;; *) cat >conftest.$ac_ext < #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime) @@ -8107,12 +8153,12 @@ EOF esac echo $ac_n "checking if sys/timex.h has STA_FLL... $ac_c" 1>&6 -echo "configure:8111: checking if sys/timex.h has STA_FLL" 1>&5 +echo "configure:8157: checking if sys/timex.h has STA_FLL" 1>&5 if test "${ac_cv_var_sta_fll+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < #ifdef STA_FLL @@ -8134,7 +8180,7 @@ fi echo "$ac_t""$ac_cv_var_sta_fll" 1>&6 echo $ac_n "checking if we have kernel PLL support... $ac_c" 1>&6 -echo "configure:8138: checking if we have kernel PLL support" 1>&5 +echo "configure:8184: checking if we have kernel PLL support" 1>&5 if test "${ac_cv_var_kernel_pll+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8157,7 +8203,7 @@ EOF esac echo $ac_n "checking if SIOCGIFCONF returns buffer size in the buffer... $ac_c" 1>&6 -echo "configure:8161: checking if SIOCGIFCONF returns buffer size in the buffer" 1>&5 +echo "configure:8207: checking if SIOCGIFCONF returns buffer size in the buffer" 1>&5 if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -8185,10 +8231,10 @@ esac # Check for ioctls TIOCGPPSEV echo $ac_n "checking ioctl TIOCGPPSEV... $ac_c" 1>&6 -echo "configure:8189: checking ioctl TIOCGPPSEV" 1>&5 +echo "configure:8235: checking ioctl TIOCGPPSEV" 1>&5 if test "$ac_cv_header_termios_h" = "yes"; then cat >conftest.$ac_ext < #ifdef TIOCGPPSEV @@ -8220,10 +8266,10 @@ echo "$ac_t""$ntp_ok" 1>&6 # Check for ioctls TIOCSPPS echo $ac_n "checking ioctl TIOCSPPS... $ac_c" 1>&6 -echo "configure:8224: checking ioctl TIOCSPPS" 1>&5 +echo "configure:8270: checking ioctl TIOCSPPS" 1>&5 if test "$ac_cv_header_termios_h" = "yes"; then cat >conftest.$ac_ext < #ifdef TIOCSPPS @@ -8255,10 +8301,10 @@ echo "$ac_t""$ntp_ok" 1>&6 # Check for ioctls CIOGETEV echo $ac_n "checking ioctl CIOGETEV... $ac_c" 1>&6 -echo "configure:8259: checking ioctl CIOGETEV" 1>&5 +echo "configure:8305: checking ioctl CIOGETEV" 1>&5 if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then cat >conftest.$ac_ext < #ifdef CIOGETEV @@ -8308,18 +8354,18 @@ esac # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG echo $ac_n "checking for linux/serial.h... $ac_c" 1>&6 -echo "configure:8312: checking for linux/serial.h" 1>&5 +echo "configure:8358: checking for linux/serial.h" 1>&5 if test "${ac_cv_header_linux_serial_h+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8336,11 +8382,11 @@ fi echo "$ac_t""$ac_cv_header_linux_serial_h" 1>&6 echo $ac_n "checking ioctl TIOCGSERIAL... $ac_c" 1>&6 -echo "configure:8340: checking ioctl TIOCGSERIAL" 1>&5 +echo "configure:8386: checking ioctl TIOCGSERIAL" 1>&5 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in yesyes) cat >conftest.$ac_ext < typedef int u_int; @@ -8383,7 +8429,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Check for SHMEM_STATUS support echo $ac_n "checking SHMEM_STATUS support... $ac_c" 1>&6 -echo "configure:8387: checking SHMEM_STATUS support" 1>&5 +echo "configure:8433: checking SHMEM_STATUS support" 1>&5 case "$ac_cv_header_sys_mman_h" in yes) ntp_ok=yes ;; *) ntp_ok=no ;; @@ -8400,7 +8446,7 @@ ntp_refclock=no # HPUX only, and by explicit request echo $ac_n "checking Datum/Bancomm bc635/VME interface... $ac_c" 1>&6 -echo "configure:8404: checking Datum/Bancomm bc635/VME interface" 1>&5 +echo "configure:8450: checking Datum/Bancomm bc635/VME interface" 1>&5 # Check whether --enable-BANCOMM or --disable-BANCOMM was given. if test "${enable_BANCOMM+set}" = set; then enableval="$enable_BANCOMM" @@ -8424,7 +8470,7 @@ esac #HPUX only, and only by explicit request echo $ac_n "checking TrueTime GPS receiver/VME interface... $ac_c" 1>&6 -echo "configure:8428: checking TrueTime GPS receiver/VME interface" 1>&5 +echo "configure:8474: checking TrueTime GPS receiver/VME interface" 1>&5 # Check whether --enable-GPSVME or --disable-GPSVME was given. if test "${enable_GPSVME+set}" = set; then enableval="$enable_GPSVME" @@ -8447,7 +8493,7 @@ case "$ntp_ok$target" in esac echo $ac_n "checking for PCL720 clock support... $ac_c" 1>&6 -echo "configure:8451: checking for PCL720 clock support" 1>&5 +echo "configure:8497: checking for PCL720 clock support" 1>&5 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in yesyesyes) cat >>confdefs.h <<\EOF @@ -8463,7 +8509,7 @@ esac echo "$ac_t""$ans" 1>&6 echo $ac_n "checking for SHM clock attached thru shared memory... $ac_c" 1>&6 -echo "configure:8467: checking for SHM clock attached thru shared memory" 1>&5 +echo "configure:8513: checking for SHM clock attached thru shared memory" 1>&5 # Check whether --enable-SHM or --disable-SHM was given. if test "${enable_SHM+set}" = set; then enableval="$enable_SHM" @@ -8482,7 +8528,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for default inclusion of all suitable non-PARSE clocks... $ac_c" 1>&6 -echo "configure:8486: checking for default inclusion of all suitable non-PARSE clocks" 1>&5 +echo "configure:8532: checking for default inclusion of all suitable non-PARSE clocks" 1>&5 # Check whether --enable-all-clocks or --disable-all-clocks was given. if test "${enable_all_clocks+set}" = set; then enableval="$enable_all_clocks" @@ -8494,7 +8540,7 @@ fi echo "$ac_t""$ntp_eac" 1>&6 echo $ac_n "checking if we have support for PARSE clocks... $ac_c" 1>&6 -echo "configure:8498: checking if we have support for PARSE clocks" 1>&5 +echo "configure:8544: checking if we have support for PARSE clocks" 1>&5 case "$ac_cv_header_termio_h$ac_cv_header_termios_h" in *yes*) ntp_canparse=yes @@ -8505,7 +8551,7 @@ esac echo "$ac_t""$ntp_canparse" 1>&6 echo $ac_n "checking if we have support for audio clocks... $ac_c" 1>&6 -echo "configure:8509: checking if we have support for audio clocks" 1>&5 +echo "configure:8555: checking if we have support for audio clocks" 1>&5 case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h" in *yes*) ntp_canaudio=yes ;; *) ntp_canaudio=no ;; @@ -8513,12 +8559,12 @@ esac echo "$ac_t""$ntp_canaudio" 1>&6 echo $ac_n "checking for struct audio_info.monitor_gain... $ac_c" 1>&6 -echo "configure:8517: checking for struct audio_info.monitor_gain" 1>&5 +echo "configure:8563: checking for struct audio_info.monitor_gain" 1>&5 if test "${ac_cv_member_struct_audio_info_monitor_gain+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -8536,7 +8582,7 @@ foo.monitor_gain; return 0; } EOF -if { (eval echo configure:8540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_audio_info_monitor_gain=yes else @@ -8556,12 +8602,12 @@ EOF fi echo $ac_n "checking for struct audio_info.output_muted... $ac_c" 1>&6 -echo "configure:8560: checking for struct audio_info.output_muted" 1>&5 +echo "configure:8606: checking for struct audio_info.output_muted" 1>&5 if test "${ac_cv_member_struct_audio_info_output_muted+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -8579,7 +8625,7 @@ foo.output_muted; return 0; } EOF -if { (eval echo configure:8583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_audio_info_output_muted=yes else @@ -8599,12 +8645,12 @@ EOF fi echo $ac_n "checking for struct audio_info.blocksize... $ac_c" 1>&6 -echo "configure:8603: checking for struct audio_info.blocksize" 1>&5 +echo "configure:8649: checking for struct audio_info.blocksize" 1>&5 if test "${ac_cv_member_struct_audio_info_blocksize+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -8622,7 +8668,7 @@ foo.blocksize; return 0; } EOF -if { (eval echo configure:8626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_audio_info_blocksize=yes else @@ -8642,12 +8688,12 @@ EOF fi echo $ac_n "checking for struct audio_info.hiwat... $ac_c" 1>&6 -echo "configure:8646: checking for struct audio_info.hiwat" 1>&5 +echo "configure:8692: checking for struct audio_info.hiwat" 1>&5 if test "${ac_cv_member_struct_audio_info_hiwat+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -8665,7 +8711,7 @@ foo.hiwat; return 0; } EOF -if { (eval echo configure:8669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_audio_info_hiwat=yes else @@ -8685,12 +8731,12 @@ EOF fi echo $ac_n "checking for struct audio_info.lowat... $ac_c" 1>&6 -echo "configure:8689: checking for struct audio_info.lowat" 1>&5 +echo "configure:8735: checking for struct audio_info.lowat" 1>&5 if test "${ac_cv_member_struct_audio_info_lowat+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -8708,7 +8754,7 @@ foo.lowat; return 0; } EOF -if { (eval echo configure:8712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_audio_info_lowat=yes else @@ -8728,12 +8774,12 @@ EOF fi echo $ac_n "checking for struct audio_info.mode... $ac_c" 1>&6 -echo "configure:8732: checking for struct audio_info.mode" 1>&5 +echo "configure:8778: checking for struct audio_info.mode" 1>&5 if test "${ac_cv_member_struct_audio_info_mode+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else cat >conftest.$ac_ext < @@ -8751,7 +8797,7 @@ foo.mode; return 0; } EOF -if { (eval echo configure:8755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:8801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_member_struct_audio_info_mode=yes else @@ -8772,14 +8818,14 @@ fi # Requires modem control echo $ac_n "checking ACTS modem service... $ac_c" 1>&6 -echo "configure:8776: checking ACTS modem service" 1>&5 +echo "configure:8822: checking ACTS modem service" 1>&5 # Check whether --enable-ACTS or --disable-ACTS was given. if test "${enable_ACTS+set}" = set; then enableval="$enable_ACTS" ntp_ok=$enableval else cat >conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -8812,7 +8858,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Arbiter 1088A/B GPS receiver... $ac_c" 1>&6 -echo "configure:8816: checking Arbiter 1088A/B GPS receiver" 1>&5 +echo "configure:8862: checking Arbiter 1088A/B GPS receiver" 1>&5 # Check whether --enable-ARBITER or --disable-ARBITER was given. if test "${enable_ARBITER+set}" = set; then enableval="$enable_ARBITER" @@ -8831,7 +8877,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Arcron MSF receiver... $ac_c" 1>&6 -echo "configure:8835: checking Arcron MSF receiver" 1>&5 +echo "configure:8881: checking Arcron MSF receiver" 1>&5 # Check whether --enable-ARCRON_MSF or --disable-ARCRON_MSF was given. if test "${enable_ARCRON_MSF+set}" = set; then enableval="$enable_ARCRON_MSF" @@ -8850,7 +8896,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Austron 2200A/2201A GPS receiver... $ac_c" 1>&6 -echo "configure:8854: checking Austron 2200A/2201A GPS receiver" 1>&5 +echo "configure:8900: checking Austron 2200A/2201A GPS receiver" 1>&5 # Check whether --enable-AS2201 or --disable-AS2201 was given. if test "${enable_AS2201+set}" = set; then enableval="$enable_AS2201" @@ -8869,7 +8915,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking PPS interface... $ac_c" 1>&6 -echo "configure:8873: checking PPS interface" 1>&5 +echo "configure:8919: checking PPS interface" 1>&5 # Check whether --enable-ATOM or --disable-ATOM was given. if test "${enable_ATOM+set}" = set; then enableval="$enable_ATOM" @@ -8888,7 +8934,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking CHU modem/decoder... $ac_c" 1>&6 -echo "configure:8892: checking CHU modem/decoder" 1>&5 +echo "configure:8938: checking CHU modem/decoder" 1>&5 # Check whether --enable-CHU or --disable-CHU was given. if test "${enable_CHU+set}" = set; then enableval="$enable_CHU" @@ -8908,7 +8954,7 @@ echo "$ac_t""$ntp_ok" 1>&6 ac_refclock_chu=$ntp_ok echo $ac_n "checking CHU audio/decoder... $ac_c" 1>&6 -echo "configure:8912: checking CHU audio/decoder" 1>&5 +echo "configure:8958: checking CHU audio/decoder" 1>&5 # Check whether --enable-AUDIO-CHU or --disable-AUDIO-CHU was given. if test "${enable_AUDIO_CHU+set}" = set; then enableval="$enable_AUDIO_CHU" @@ -8934,7 +8980,7 @@ esac # Not under HP-UX echo $ac_n "checking Datum Programmable Time System... $ac_c" 1>&6 -echo "configure:8938: checking Datum Programmable Time System" 1>&5 +echo "configure:8984: checking Datum Programmable Time System" 1>&5 # Check whether --enable-DATUM or --disable-DATUM was given. if test "${enable_DATUM+set}" = set; then enableval="$enable_DATUM" @@ -8959,7 +9005,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Forum Graphic GPS... $ac_c" 1>&6 -echo "configure:8963: checking Forum Graphic GPS" 1>&5 +echo "configure:9009: checking Forum Graphic GPS" 1>&5 # Check whether --enable-FG or --disable-FG was given. if test "${enable_FG+set}" = set; then enableval="$enable_FG" @@ -8979,14 +9025,14 @@ echo "$ac_t""$ntp_ok" 1>&6 # Requires modem control echo $ac_n "checking Heath GC-1000 WWV/WWVH receiver... $ac_c" 1>&6 -echo "configure:8983: checking Heath GC-1000 WWV/WWVH receiver" 1>&5 +echo "configure:9029: checking Heath GC-1000 WWV/WWVH receiver" 1>&5 # Check whether --enable-HEATH or --disable-HEATH was given. if test "${enable_HEATH+set}" = set; then enableval="$enable_HEATH" ntp_ok=$enableval else cat >conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -9019,7 +9065,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking HP 58503A GPS receiver... $ac_c" 1>&6 -echo "configure:9023: checking HP 58503A GPS receiver" 1>&5 +echo "configure:9069: checking HP 58503A GPS receiver" 1>&5 # Check whether --enable-HPGPS or --disable-HPGPS was given. if test "${enable_HPGPS+set}" = set; then enableval="$enable_HPGPS" @@ -9038,7 +9084,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Sun IRIG audio decoder... $ac_c" 1>&6 -echo "configure:9042: checking Sun IRIG audio decoder" 1>&5 +echo "configure:9088: checking Sun IRIG audio decoder" 1>&5 # Check whether --enable-IRIG or --disable-IRIG was given. if test "${enable_IRIG+set}" = set; then enableval="$enable_IRIG" @@ -9063,7 +9109,7 @@ case "$ntp_ok$ntp_canaudio" in esac echo $ac_n "checking Leitch CSD 5300 Master Clock System Driver... $ac_c" 1>&6 -echo "configure:9067: checking Leitch CSD 5300 Master Clock System Driver" 1>&5 +echo "configure:9113: checking Leitch CSD 5300 Master Clock System Driver" 1>&5 # Check whether --enable-LEITCH or --disable-LEITCH was given. if test "${enable_LEITCH+set}" = set; then enableval="$enable_LEITCH" @@ -9082,7 +9128,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking local clock reference... $ac_c" 1>&6 -echo "configure:9086: checking local clock reference" 1>&5 +echo "configure:9132: checking local clock reference" 1>&5 # Check whether --enable-LOCAL-CLOCK or --disable-LOCAL-CLOCK was given. if test "${enable_LOCAL_CLOCK+set}" = set; then enableval="$enable_LOCAL_CLOCK" @@ -9101,7 +9147,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking EES M201 MSF receiver... $ac_c" 1>&6 -echo "configure:9105: checking EES M201 MSF receiver" 1>&5 +echo "configure:9151: checking EES M201 MSF receiver" 1>&5 # Check whether --enable-MSFEES or --disable-MSFEES was given. if test "${enable_MSFEES+set}" = set; then enableval="$enable_MSFEES" @@ -9121,7 +9167,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Not Ultrix echo $ac_n "checking Magnavox MX4200 GPS receiver... $ac_c" 1>&6 -echo "configure:9125: checking Magnavox MX4200 GPS receiver" 1>&5 +echo "configure:9171: checking Magnavox MX4200 GPS receiver" 1>&5 # Check whether --enable-MX4200 or --disable-MX4200 was given. if test "${enable_MX4200+set}" = set; then enableval="$enable_MX4200" @@ -9148,7 +9194,7 @@ case "$ntp_ok$target" in esac echo $ac_n "checking NMEA GPS receiver... $ac_c" 1>&6 -echo "configure:9152: checking NMEA GPS receiver" 1>&5 +echo "configure:9198: checking NMEA GPS receiver" 1>&5 # Check whether --enable-NMEA or --disable-NMEA was given. if test "${enable_NMEA+set}" = set; then enableval="$enable_NMEA" @@ -9167,7 +9213,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for ONCORE Motorola VP/UT Oncore GPS... $ac_c" 1>&6 -echo "configure:9171: checking for ONCORE Motorola VP/UT Oncore GPS" 1>&5 +echo "configure:9217: checking for ONCORE Motorola VP/UT Oncore GPS" 1>&5 # Check whether --enable-ONCORE or --disable-ONCORE was given. if test "${enable_ONCORE+set}" = set; then enableval="$enable_ONCORE" @@ -9189,7 +9235,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for Palisade clock... $ac_c" 1>&6 -echo "configure:9193: checking for Palisade clock" 1>&5 +echo "configure:9239: checking for Palisade clock" 1>&5 # Check whether --enable-PALISADE or --disable-PALISADE was given. if test "${enable_PALISADE+set}" = set; then enableval="$enable_PALISADE" @@ -9214,7 +9260,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking PST/Traconex 1020 WWV/WWVH receiver... $ac_c" 1>&6 -echo "configure:9218: checking PST/Traconex 1020 WWV/WWVH receiver" 1>&5 +echo "configure:9264: checking PST/Traconex 1020 WWV/WWVH receiver" 1>&5 # Check whether --enable-PST or --disable-PST was given. if test "${enable_PST+set}" = set; then enableval="$enable_PST" @@ -9234,7 +9280,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Not Ultrix echo $ac_n "checking Rockwell Jupiter GPS receiver... $ac_c" 1>&6 -echo "configure:9238: checking Rockwell Jupiter GPS receiver" 1>&5 +echo "configure:9284: checking Rockwell Jupiter GPS receiver" 1>&5 # Check whether --enable-JUPITER or --disable-JUPITER was given. if test "${enable_JUPITER+set}" = set; then enableval="$enable_JUPITER" @@ -9262,14 +9308,14 @@ esac # Requires modem control echo $ac_n "checking PTB modem service... $ac_c" 1>&6 -echo "configure:9266: checking PTB modem service" 1>&5 +echo "configure:9312: checking PTB modem service" 1>&5 # Check whether --enable-PTBACTS or --disable-PTBACTS was given. if test "${enable_PTBACTS+set}" = set; then enableval="$enable_PTBACTS" ntp_ok=$enableval else cat >conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -9302,7 +9348,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... $ac_c" 1>&6 -echo "configure:9306: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" 1>&5 +echo "configure:9352: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" 1>&5 # Check whether --enable-TPRO or --disable-TPRO was given. if test "${enable_TPRO+set}" = set; then enableval="$enable_TPRO" @@ -9330,7 +9376,7 @@ case "$ntp_ok$ac_cv_header_sys_tpro" in esac echo $ac_n "checking TRAK 8810 GPS receiver... $ac_c" 1>&6 -echo "configure:9334: checking TRAK 8810 GPS receiver" 1>&5 +echo "configure:9380: checking TRAK 8810 GPS receiver" 1>&5 # Check whether --enable-TRAK or --disable-TRAK was given. if test "${enable_TRAK+set}" = set; then enableval="$enable_TRAK" @@ -9349,7 +9395,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Chrono-log K-series WWVB receiver... $ac_c" 1>&6 -echo "configure:9353: checking Chrono-log K-series WWVB receiver" 1>&5 +echo "configure:9399: checking Chrono-log K-series WWVB receiver" 1>&5 # Check whether --enable-CHRONOLOG or --disable-CHRONOLOG was given. if test "${enable_CHRONOLOG+set}" = set; then enableval="$enable_CHRONOLOG" @@ -9368,7 +9414,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Dumb generic hh:mm:ss local clock... $ac_c" 1>&6 -echo "configure:9372: checking Dumb generic hh:mm:ss local clock" 1>&5 +echo "configure:9418: checking Dumb generic hh:mm:ss local clock" 1>&5 # Check whether --enable-DUMBCLOCK or --disable-DUMBCLOCK was given. if test "${enable_DUMBCLOCK+set}" = set; then enableval="$enable_DUMBCLOCK" @@ -9387,7 +9433,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Conrad parallel port radio clock... $ac_c" 1>&6 -echo "configure:9391: checking Conrad parallel port radio clock" 1>&5 +echo "configure:9437: checking Conrad parallel port radio clock" 1>&5 # Check whether --enable-PCF or --disable-PCF was given. if test "${enable_PCF+set}" = set; then enableval="$enable_PCF" @@ -9406,7 +9452,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking Spectracom 8170/Netclock/2 WWVB receiver... $ac_c" 1>&6 -echo "configure:9410: checking Spectracom 8170/Netclock/2 WWVB receiver" 1>&5 +echo "configure:9456: checking Spectracom 8170/Netclock/2 WWVB receiver" 1>&5 # Check whether --enable-SPECTRACOM or --disable-SPECTRACOM was given. if test "${enable_SPECTRACOM+set}" = set; then enableval="$enable_SPECTRACOM" @@ -9426,7 +9472,7 @@ echo "$ac_t""$ntp_ok" 1>&6 # Not on a vax-dec-bsd echo $ac_n "checking Kinemetrics/TrueTime receivers... $ac_c" 1>&6 -echo "configure:9430: checking Kinemetrics/TrueTime receivers" 1>&5 +echo "configure:9476: checking Kinemetrics/TrueTime receivers" 1>&5 # Check whether --enable-TRUETIME or --disable-TRUETIME was given. if test "${enable_TRUETIME+set}" = set; then enableval="$enable_TRUETIME" @@ -9455,7 +9501,7 @@ case "$ntp_ok$target" in esac echo $ac_n "checking Ultralink M320 WWVB receiver... $ac_c" 1>&6 -echo "configure:9459: checking Ultralink M320 WWVB receiver" 1>&5 +echo "configure:9505: checking Ultralink M320 WWVB receiver" 1>&5 # Check whether --enable-ULINK or --disable-ULINK was given. if test "${enable_ULINK+set}" = set; then enableval="$enable_ULINK" @@ -9474,7 +9520,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking WWV receiver... $ac_c" 1>&6 -echo "configure:9478: checking WWV receiver" 1>&5 +echo "configure:9524: checking WWV receiver" 1>&5 # Check whether --enable-WWV or --disable-WWV was given. if test "${enable_WWV+set}" = set; then enableval="$enable_WWV" @@ -9500,14 +9546,14 @@ esac # Requires modem control echo $ac_n "checking USNO modem service... $ac_c" 1>&6 -echo "configure:9504: checking USNO modem service" 1>&5 +echo "configure:9550: checking USNO modem service" 1>&5 # Check whether --enable-USNO or --disable-USNO was given. if test "${enable_USNO+set}" = set; then enableval="$enable_USNO" ntp_ok=$enableval else cat >conftest.$ac_ext < #ifdef HAVE_SYS_IOCTL_H @@ -9540,7 +9586,7 @@ fi echo "$ac_t""$ntp_ok" 1>&6 echo $ac_n "checking for default inclusion of all suitable PARSE clocks... $ac_c" 1>&6 -echo "configure:9544: checking for default inclusion of all suitable PARSE clocks" 1>&5 +echo "configure:9590: checking for default inclusion of all suitable PARSE clocks" 1>&5 # Check whether --enable-parse-clocks or --disable-parse-clocks was given. if test "${enable_parse_clocks+set}" = set; then enableval="$enable_parse_clocks" @@ -9570,7 +9616,7 @@ ntp_parseutil=no ntp_rawdcf=no echo $ac_n "checking Diem Computime Radio Clock... $ac_c" 1>&6 -echo "configure:9574: checking Diem Computime Radio Clock" 1>&5 +echo "configure:9620: checking Diem Computime Radio Clock" 1>&5 # Check whether --enable-COMPUTIME or --disable-COMPUTIME was given. if test "${enable_COMPUTIME+set}" = set; then enableval="$enable_COMPUTIME" @@ -9595,7 +9641,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking ELV/DCF7000 clock... $ac_c" 1>&6 -echo "configure:9599: checking ELV/DCF7000 clock" 1>&5 +echo "configure:9645: checking ELV/DCF7000 clock" 1>&5 # Check whether --enable-DCF7000 or --disable-DCF7000 was given. if test "${enable_DCF7000+set}" = set; then enableval="$enable_DCF7000" @@ -9620,7 +9666,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking HOPF 6021 clock... $ac_c" 1>&6 -echo "configure:9624: checking HOPF 6021 clock" 1>&5 +echo "configure:9670: checking HOPF 6021 clock" 1>&5 # Check whether --enable-HOPF6021 or --disable-HOPF6021 was given. if test "${enable_HOPF6021+set}" = set; then enableval="$enable_HOPF6021" @@ -9645,7 +9691,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Meinberg clocks... $ac_c" 1>&6 -echo "configure:9649: checking Meinberg clocks" 1>&5 +echo "configure:9695: checking Meinberg clocks" 1>&5 # Check whether --enable-MEINBERG or --disable-MEINBERG was given. if test "${enable_MEINBERG+set}" = set; then enableval="$enable_MEINBERG" @@ -9670,7 +9716,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking DCF77 raw time code... $ac_c" 1>&6 -echo "configure:9674: checking DCF77 raw time code" 1>&5 +echo "configure:9720: checking DCF77 raw time code" 1>&5 # Check whether --enable-RAWDCF or --disable-RAWDCF was given. if test "${enable_RAWDCF+set}" = set; then enableval="$enable_RAWDCF" @@ -9699,7 +9745,7 @@ esac case "$ntp_rawdcf" in yes) echo $ac_n "checking if we must enable parity for RAWDCF... $ac_c" 1>&6 -echo "configure:9703: checking if we must enable parity for RAWDCF" 1>&5 +echo "configure:9749: checking if we must enable parity for RAWDCF" 1>&5 if test "${ac_cv_var_rawdcf_parity+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -9726,7 +9772,7 @@ EOF esac echo $ac_n "checking RCC 8000 clock... $ac_c" 1>&6 -echo "configure:9730: checking RCC 8000 clock" 1>&5 +echo "configure:9776: checking RCC 8000 clock" 1>&5 # Check whether --enable-RCC8000 or --disable-RCC8000 was given. if test "${enable_RCC8000+set}" = set; then enableval="$enable_RCC8000" @@ -9751,7 +9797,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Schmid DCF77 clock... $ac_c" 1>&6 -echo "configure:9755: checking Schmid DCF77 clock" 1>&5 +echo "configure:9801: checking Schmid DCF77 clock" 1>&5 # Check whether --enable-SCHMID or --disable-SCHMID was given. if test "${enable_SCHMID+set}" = set; then enableval="$enable_SCHMID" @@ -9776,7 +9822,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Trimble GPS receiver/TAIP protocol... $ac_c" 1>&6 -echo "configure:9780: checking Trimble GPS receiver/TAIP protocol" 1>&5 +echo "configure:9826: checking Trimble GPS receiver/TAIP protocol" 1>&5 # Check whether --enable-TRIMTAIP or --disable-TRIMTAIP was given. if test "${enable_TRIMTAIP+set}" = set; then enableval="$enable_TRIMTAIP" @@ -9801,7 +9847,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking Trimble GPS receiver/TSIP protocol... $ac_c" 1>&6 -echo "configure:9805: checking Trimble GPS receiver/TSIP protocol" 1>&5 +echo "configure:9851: checking Trimble GPS receiver/TSIP protocol" 1>&5 # Check whether --enable-TRIMTSIP or --disable-TRIMTSIP was given. if test "${enable_TRIMTSIP+set}" = set; then enableval="$enable_TRIMTSIP" @@ -9826,7 +9872,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking WHARTON 400A Series clock... $ac_c" 1>&6 -echo "configure:9830: checking WHARTON 400A Series clock" 1>&5 +echo "configure:9876: checking WHARTON 400A Series clock" 1>&5 # Check whether --enable-WHARTON or --disable-WHARTON was given. if test "${enable_WHARTON+set}" = set; then enableval="$enable_WHARTON" @@ -9851,7 +9897,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking VARITEXT clock... $ac_c" 1>&6 -echo "configure:9855: checking VARITEXT clock" 1>&5 +echo "configure:9901: checking VARITEXT clock" 1>&5 # Check whether --enable-VARITEXT or --disable-VARITEXT was given. if test "${enable_VARITEXT+set}" = set; then enableval="$enable_VARITEXT" @@ -9876,7 +9922,7 @@ case "$ntp_ok$ntp_canparse" in esac echo $ac_n "checking if we need to make and use the parse libraries... $ac_c" 1>&6 -echo "configure:9880: checking if we need to make and use the parse libraries" 1>&5 +echo "configure:9926: checking if we need to make and use the parse libraries" 1>&5 ans=no case "$ntp_libparse" in yes) @@ -9901,7 +9947,7 @@ esac echo "$ac_t""$ans" 1>&6 echo $ac_n "checking for the level of crypto support... $ac_c" 1>&6 -echo "configure:9905: checking for the level of crypto support" 1>&5 +echo "configure:9951: checking for the level of crypto support" 1>&5 # Check whether --with-crypto or --without-crypto was given. if test "${with_crypto+set}" = set; then withval="$with_crypto" @@ -9945,7 +9991,7 @@ esac echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we can make dcf parse utilities... $ac_c" 1>&6 -echo "configure:9949: checking if we can make dcf parse utilities" 1>&5 +echo "configure:9995: checking if we can make dcf parse utilities" 1>&5 ans=no if test "$ntp_parseutil" = "yes"; then case "$target" in @@ -9959,7 +10005,7 @@ fi echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we can build kernel streams modules for parse... $ac_c" 1>&6 -echo "configure:9963: checking if we can build kernel streams modules for parse" 1>&5 +echo "configure:10009: checking if we can build kernel streams modules for parse" 1>&5 ans=no case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in yesyes) @@ -9986,7 +10032,7 @@ esac echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we need basic refclock support... $ac_c" 1>&6 -echo "configure:9990: checking if we need basic refclock support" 1>&5 +echo "configure:10036: checking if we need basic refclock support" 1>&5 if test "$ntp_refclock" = "yes"; then cat >>confdefs.h <<\EOF #define REFCLOCK 1 @@ -9998,7 +10044,7 @@ echo "$ac_t""$ntp_refclock" 1>&6 echo $ac_n "checking if we want HP-UX adjtimed support... $ac_c" 1>&6 -echo "configure:10002: checking if we want HP-UX adjtimed support" 1>&5 +echo "configure:10048: checking if we want HP-UX adjtimed support" 1>&5 case "$target" in *-*-hpux[56789]*) ans=yes @@ -10016,7 +10062,7 @@ fi echo "$ac_t""$ans" 1>&6 echo $ac_n "checking if we can read kmem... $ac_c" 1>&6 -echo "configure:10020: checking if we can read kmem" 1>&5 +echo "configure:10066: checking if we can read kmem" 1>&5 if test "${ac_cv_var_can_kmem+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10068,7 +10114,7 @@ EOF esac echo $ac_n "checking if adjtime is accurate... $ac_c" 1>&6 -echo "configure:10072: checking if adjtime is accurate" 1>&5 +echo "configure:10118: checking if adjtime is accurate" 1>&5 if test "${ac_cv_var_adjtime_is_accurate+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10119,7 +10165,7 @@ EOF esac echo $ac_n "checking the name of 'tick' in the kernel... $ac_c" 1>&6 -echo "configure:10123: checking the name of 'tick' in the kernel" 1>&5 +echo "configure:10169: checking the name of 'tick' in the kernel" 1>&5 if test "${ac_cv_var_nlist_tick+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10162,7 +10208,7 @@ EOF esac # echo $ac_n "checking for the units of 'tick'... $ac_c" 1>&6 -echo "configure:10166: checking for the units of 'tick'" 1>&5 +echo "configure:10212: checking for the units of 'tick'" 1>&5 if test "${ac_cv_var_tick_nano+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10185,7 +10231,7 @@ EOF esac # echo $ac_n "checking the name of 'tickadj' in the kernel... $ac_c" 1>&6 -echo "configure:10189: checking the name of 'tickadj' in the kernel" 1>&5 +echo "configure:10235: checking the name of 'tickadj' in the kernel" 1>&5 if test "${ac_cv_var_nlist_tickadj+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10237,7 +10283,7 @@ EOF esac # echo $ac_n "checking for the units of 'tickadj'... $ac_c" 1>&6 -echo "configure:10241: checking for the units of 'tickadj'" 1>&5 +echo "configure:10287: checking for the units of 'tickadj'" 1>&5 if test "${ac_cv_var_tickadj_nano+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10260,7 +10306,7 @@ EOF esac # echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel... $ac_c" 1>&6 -echo "configure:10264: checking half-heartedly for 'dosynctodr' in the kernel" 1>&5 +echo "configure:10310: checking half-heartedly for 'dosynctodr' in the kernel" 1>&5 if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10312,7 +10358,7 @@ EOF esac # echo $ac_n "checking half-heartedly for 'noprintf' in the kernel... $ac_c" 1>&6 -echo "configure:10316: checking half-heartedly for 'noprintf' in the kernel" 1>&5 +echo "configure:10362: checking half-heartedly for 'noprintf' in the kernel" 1>&5 if test "${ac_cv_var_nlist_noprintf+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10358,7 +10404,7 @@ EOF esac echo $ac_n "checking for a default value for 'tick'... $ac_c" 1>&6 -echo "configure:10362: checking for a default value for 'tick'" 1>&5 +echo "configure:10408: checking for a default value for 'tick'" 1>&5 if test "${ac_cv_var_tick+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10401,7 +10447,7 @@ EOF esac echo $ac_n "checking for a default value for 'tickadj'... $ac_c" 1>&6 -echo "configure:10405: checking for a default value for 'tickadj'" 1>&5 +echo "configure:10451: checking for a default value for 'tickadj'" 1>&5 if test "${ac_cv_var_tickadj+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10532,7 +10578,7 @@ case "$target" in esac echo $ac_n "checking if we want and can make the tickadj utility... $ac_c" 1>&6 -echo "configure:10536: checking if we want and can make the tickadj utility" 1>&5 +echo "configure:10582: checking if we want and can make the tickadj utility" 1>&5 if test "${ac_cv_make_tickadj+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10546,7 +10592,7 @@ case "$ac_cv_make_tickadj" in esac echo $ac_n "checking if we want and can make the ntptime utility... $ac_c" 1>&6 -echo "configure:10550: checking if we want and can make the ntptime utility" 1>&5 +echo "configure:10596: checking if we want and can make the ntptime utility" 1>&5 if test "${ac_cv_make_ntptime+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10571,7 +10617,7 @@ case "$ac_cv_make_ntptime" in esac echo $ac_n "checking if we want UDP wildcard delivery... $ac_c" 1>&6 -echo "configure:10575: checking if we want UDP wildcard delivery" 1>&5 +echo "configure:10621: checking if we want UDP wildcard delivery" 1>&5 if test "${ac_cv_var_udp_wildcard_delivery+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10649,7 +10695,7 @@ case "$host" in esac echo $ac_n "checking if we should always slew the time... $ac_c" 1>&6 -echo "configure:10653: checking if we should always slew the time" 1>&5 +echo "configure:10699: checking if we should always slew the time" 1>&5 if test "${ac_cv_var_slew_always+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10688,7 +10734,7 @@ EOF esac echo $ac_n "checking if we should step and slew the time... $ac_c" 1>&6 -echo "configure:10692: checking if we should step and slew the time" 1>&5 +echo "configure:10738: checking if we should step and slew the time" 1>&5 if test "${ac_cv_var_step_slew+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10730,7 +10776,7 @@ EOF esac echo $ac_n "checking if ntpdate should step the time... $ac_c" 1>&6 -echo "configure:10734: checking if ntpdate should step the time" 1>&5 +echo "configure:10780: checking if ntpdate should step the time" 1>&5 if test "${ac_cv_var_ntpdate_step+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10760,7 +10806,7 @@ EOF esac echo $ac_n "checking if we should sync TODR clock every hour... $ac_c" 1>&6 -echo "configure:10764: checking if we should sync TODR clock every hour" 1>&5 +echo "configure:10810: checking if we should sync TODR clock every hour" 1>&5 if test "${ac_cv_var_sync_todr+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -10792,7 +10838,7 @@ EOF esac echo $ac_n "checking if we should avoid kernel FLL bug... $ac_c" 1>&6 -echo "configure:10796: checking if we should avoid kernel FLL bug" 1>&5 +echo "configure:10842: checking if we should avoid kernel FLL bug" 1>&5 if test "${ac_cv_var_kernel_fll_bug+set}" = set; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/configure.in b/configure.in index 7062917d25..f93526b527 100644 --- a/configure.in +++ b/configure.in @@ -182,6 +182,7 @@ AC_CHECK_LIB(ld, nlist) AC_CHECK_LIB(mld, nlist) AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent, , , -lsocket)) AC_CHECK_FUNC(openlog, , AC_CHECK_LIB(gen, openlog)) +AC_CHECK_LIB(readline, readline) dnl Digital UNIX V4.0 and Solaris 7 have POSIX.1c functions in -lrt dnl Solaris 2.6 only has -lposix4; in Solaris 7, this is a symlink to -lrt, diff --git a/ntpd/Makefile.am b/ntpd/Makefile.am index 8ca77971d9..cb45ca47ab 100644 --- a/ntpd/Makefile.am +++ b/ntpd/Makefile.am @@ -34,7 +34,8 @@ ntpd_SOURCES = jupiter.h map_vme.c ntp_config.c ntp_control.c ntp_crypto.c \ refclock_oncore.c refclock_palisade.c refclock_palisade.h \ refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ptbacts.c \ refclock_shm.c refclock_tpro.c refclock_trak.c refclock_true.c \ - refclock_ulink.c refclock_usno.c refclock_wwv.c refclock_wwvb.c + refclock_ulink.c refclock_ulink331.c refclock_usno.c refclock_wwv.c \ + refclock_wwvb.c $(PROGRAMS): $(LDADD) diff --git a/ntpd/refclock_ulink331.c b/ntpd/refclock_ulink331.c new file mode 100644 index 0000000000..0c35d8f0dd --- /dev/null +++ b/ntpd/refclock_ulink331.c @@ -0,0 +1,354 @@ +/* + * refclock_ulink331 - clock driver for ultralink model 331 WWVB receiver + * + */ + +/*********************************************************************** + * * + * Copyright (c) David L. Mills 1992-1998 * + * * + * Permission to use, copy, modify, and distribute this software and * + * its documentation for any purpose and without fee is hereby * + * granted, provided that the above copyright notice appears in all * + * copies and that both the copyright notice and this permission * + * notice appear in supporting documentation, and that the name * + * University of Delaware not be used in advertising or publicity * + * pertaining to distribution of the software without specific, * + * written prior permission. The University of Delaware makes no * + * representations about the suitability this software for any * + * purpose. It is provided "as is" without express or implied * + * warranty. * + **********************************************************************/ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#if defined(REFCLOCK) && defined(CLOCK_ULINK331) + +#include +#include +#include +#include + +#include "ntpd.h" +#include "ntp_io.h" +#include "ntp_refclock.h" +#include "ntp_calendar.h" +#include "ntp_stdlib.h" + +/* + * This driver supports ultralink model 331 WWVB radio + * this driver was based on the refclock_wwvb.c driver + * in the ntp distribution. + * + * Fudge Factors + * + * none + * + * revision history: + * 99/9/09 j.c.lang original edit's + * 99/9/11 j.c.lang changed timecode parse to + * match what the radio actually + * sends. + * 99/10/11 j.c.lang added support for continous + * time code mode (dipsw2) + * + * Questions, bugs, ideas send to: + * Joseph C. Lang + * tcnojl1@earthlink.net + * + */ +/* + * on the Ultralink model 331 decoder Dip switch 2 controls + * polled or continous timecode + * define DIPSW2OFF if using polled +*/ +/* #define DIPSW2OFF */ +/* + * Interface definitions + */ +#define DEVICE "/dev/wwvb%d" /* device name and unit */ +#define SPEED232 B9600 /* uart speed (9600 baud) */ +#define PRECISION (-10) /* precision assumed (about 10 ms) */ +#define REFID "WWVB" /* reference ID */ +#define DESCRIPTION "ultra-link WWVB Receiver" /* WRU */ + +#define LENCODE 32 /* timecode length */ + +/* + * unit control structure + */ +struct ulink331unit { + u_char tcswitch; /* timecode switch */ + l_fp laststamp; /* last receive timestamp */ +}; + +/* + * Function prototypes + */ +static int ulink331_start P((int, struct peer *)); +static void ulink331_shutdown P((int, struct peer *)); +static void ulink331_receive P((struct recvbuf *)); +static void ulink331_poll P((int, struct peer *)); + +/* + * Transfer vector + */ +struct refclock refclock_ulink331 = { + ulink331_start, /* start up driver */ + ulink331_shutdown, /* shut down driver */ + ulink331_poll, /* transmit poll message */ + noentry, /* not used */ + noentry, /* not used */ + noentry, /* not used */ + NOFLAGS /* not used */ +}; + + +/* + * ulink331_start - open the devices and initialize data for processing + */ +static int +ulink331_start( + int unit, + struct peer *peer + ) +{ + register struct ulink331unit *up; + struct refclockproc *pp; + int fd; + char device[20]; + + /* + * Open serial port. Use CLK line discipline, if available. + */ + (void)sprintf(device, DEVICE, unit); + if (!(fd = refclock_open(device, SPEED232, LDISC_CLK))) + return (0); + + /* + * Allocate and initialize unit structure + */ + if (!(up = (struct ulink331unit *) + emalloc(sizeof(struct ulink331unit)))) { + (void) close(fd); + return (0); + } + memset((char *)up, 0, sizeof(struct ulink331unit)); + pp = peer->procptr; + pp->unitptr = (caddr_t)up; + pp->io.clock_recv = ulink331_receive; + pp->io.srcclock = (caddr_t)peer; + pp->io.datalen = 0; + pp->io.fd = fd; + if (!io_addclock(&pp->io)) { + (void) close(fd); + free(up); + return (0); + } + + /* + * Initialize miscellaneous variables + */ + peer->precision = PRECISION; + peer->flags |= FLAG_BURST; + peer->burst = pp->nstages; + pp->clockdesc = DESCRIPTION; + memcpy((char *)&pp->refid, REFID, 4); + return (1); +} + + +/* + * ulink331_shutdown - shut down the clock + */ +static void +ulink331_shutdown( + int unit, + struct peer *peer + ) +{ + register struct ulink331unit *up; + struct refclockproc *pp; + + pp = peer->procptr; + up = (struct ulink331unit *)pp->unitptr; + io_closeclock(&pp->io); + free(up); +} + + +/* + * ulink331_receive - receive data from the serial interface + */ +static void +ulink331_receive( + struct recvbuf *rbufp + ) +{ + struct ulink331unit *up; + struct refclockproc *pp; + struct peer *peer; + + l_fp trtmp; /* arrival timestamp */ + int qualchar; /* quality indicator */ + int tz; /* time zone */ + int temp; /* int temp */ + char syncchar; /* synchronization indicator */ + char leapchar; /* leap indicator */ + char dstchar; /* daylight/standard indicator */ + + /* + * Initialize pointers and read the timecode and timestamp + */ + peer = (struct peer *)rbufp->recv_srcclock; + pp = peer->procptr; + up = (struct ulink331unit *)pp->unitptr; + temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp); + + /* + * Note we get a buffer and timestamp for both a and , + * but only the timestamp is retained. + */ + if (temp == 0) { + if (up->tcswitch == 0) { + up->tcswitch = 1; + up->laststamp = trtmp; + } else + up->tcswitch = 0; + return; + } + pp->lencode = temp; + pp->lastrec = up->laststamp; + up->laststamp = trtmp; + up->tcswitch = 1; +#ifdef DEBUG + if (debug) + printf("ulink331: timecode %d %s\n", pp->lencode, + pp->a_lastcode); +#endif + + /* + * We get down to business, check the timecode format and decode + * its contents. If the timecode has invalid length or is not in + * proper format, we declare bad format and exit. + */ + syncchar = leapchar = dstchar = ' '; + tz = 0; + pp->msec = 0; + + if (pp->lencode != LENCODE ) { + refclock_report(peer, CEVNT_BADREPLY); + return; + } + + /* + * Timecode format "S9+D 00 YYYY+DDDUTCS HH:MM:SSl+5" + * S sync indicator S insync N not in sync + * 9+ signal level 0-9 9+ if over 9 note single digit + * followed by space + * D data bit ??? + * 00 hours since last sync + * YYYY current year + * + leap year indicator + * DDD day of year + * UTC timezone + * S daylighe savings indicator + * HH hours + * MM minutes + * SS seconds + * L leap second flag + * +5 UT1 correction + */ + if (sscanf(pp->a_lastcode, "%*4c %2d %4d%*c%3d%*4c %2d%c%2d:%2d%c%*2c", + &qualchar, &pp->year, &pp->day, + &pp->hour, &syncchar, &pp->minute, &pp->second, + &leapchar) != 8){ + refclock_report(peer, CEVNT_BADREPLY); + return; + } + + + /* + * Process the new sample in the median filter and determine the + * timecode timestamp. + */ + if (!refclock_process(pp)) { + refclock_report(peer, CEVNT_BADTIME); + peer->burst = 0; + return; + } + if (peer->burst > 0) + return; + + record_clock_stats(&peer->srcadr, pp->a_lastcode); + + /* + * Decode synchronization, and leap characters. If + * unsynchronized, set the leap bits accordingly and exit. + * Otherwise, set the leap bits according to the leap character. + */ + switch (qualchar) { + case 0 : + pp->disp=.002; + break; + case 1 : + pp->disp=.02; + break; + case 2 : + pp->disp=.03; + break; + case 3 : + pp->disp=.04; + break; + default: + pp->disp=MAXDISPERSE; + break; + } + + if (syncchar != ':') + pp->leap = LEAP_NOTINSYNC; + else if (leapchar == '+') + pp->leap = LEAP_ADDSECOND; + else + pp->leap = LEAP_NOWARNING; + + refclock_receive(peer); + +} + + +/* + * ulink331_poll - called by the transmit procedure + */ +static void +ulink331_poll( + int unit, + struct peer *peer + ) +{ + register struct ulink331unit *up; + struct refclockproc *pp; + char pollchar; + + /* + * Time to poll the clock. + * 'T' + */ + pollchar = 'T'; + pp = peer->procptr; + up = (struct ulink331unit *)pp->unitptr; + if (peer->burst == 0 && peer->reach == 0) + refclock_report(peer, CEVNT_TIMEOUT); +#ifdef DIPSW2OFF + if (write(pp->io.fd, &pollchar, 1) != 1) + refclock_report(peer, CEVNT_FAULT); + else +#endif + pp->polls++; +} + +#else +int refclock_ulink331_bs; +#endif /* REFCLOCK */ diff --git a/ntpdc/ntpdc.c b/ntpdc/ntpdc.c index a5299548f7..e4706dab6b 100644 --- a/ntpdc/ntpdc.c +++ b/ntpdc/ntpdc.c @@ -10,11 +10,15 @@ #include #ifdef SYS_WINNT -#include +# include #else -#define closesocket close +# define closesocket close #endif /* SYS_WINNT */ +#ifdef HAVE_LIBREADLINE +# include +# include +#endif /* HAVE_LIBREADLINE */ #include "ntpdc.h" #include "ntp_select.h" @@ -914,6 +918,16 @@ doquery( static void getcmds(void) { +#ifdef HAVE_LIBREADLINE + char *line; + + for (;;) { + if ((line = readline(interactive?prompt:"")) == NULL) return; + if (*line) add_history(line); + docmd(line); + free(line); + } +#else /* not HAVE_LIBREADLINE */ char line[MAXLINE]; for (;;) { @@ -930,6 +944,7 @@ getcmds(void) docmd(line); } +#endif /* not HAVE_LIBREADLINE */ }