1999-08-08 Harlan Stenn <stenn@whimsy.udel.edu>
+ * parseutil/dcfd.c: Renamed drift_comp to accum_drift
+
+ * configure.in: Added MAKE_CHECK_Y2K support; check_y2k needs libparse.
+ * ntpd/Makefile.am (check_PROGRAMS): Use MAKE_CHECK_Y2K
+ * ntpd/Makefile.am (check-local): Added.
+ * parseutil/Makefile.am (check-local): Added.
+
* include/ntp.h: Y2KFixes
* libparse/parse.c: Ditto
* ntpd/Makefile.am (check_PROGRAMS): Ditto
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
+
echo $ac_n "checking if we need to make and use the parse libraries""... $ac_c" 1>&6
-echo "configure:8681: checking if we need to make and use the parse libraries" >&5
+echo "configure:8682: checking if we need to make and use the parse libraries" >&5
ans=no
case "$ntp_libparse" in
yes)
LIBPARSE=../libparse/libparse.a
MAKE_LIBPARSE=libparse.a
+ MAKE_CHECK_Y2K=check_y2k
cat >> confdefs.h <<\EOF
#define PPS_SAMPLE 1
EOF
echo $ac_n "checking if we need to make and use the RSAREF library""... $ac_c" 1>&6
-echo "configure:8708: checking if we need to make and use the RSAREF library" >&5
+echo "configure:8710: checking if we need to make and use the RSAREF library" >&5
ans=no
if test -f $srcdir/rsaref2/source/rsa.c
then
echo $ac_n "checking if we can make dcf parse utilities""... $ac_c" 1>&6
-echo "configure:8726: checking if we can make dcf parse utilities" >&5
+echo "configure:8728: checking if we can make dcf parse utilities" >&5
ans=no
if test "$ntp_parseutil" = "yes"; then
case "$target" in
echo $ac_n "checking if we can build kernel streams modules for parse""... $ac_c" 1>&6
-echo "configure:8741: checking if we can build kernel streams modules for parse" >&5
+echo "configure:8743: checking if we can build kernel streams modules for parse" >&5
ans=no
if test "$ntp_parseutil$ac_cv_header_sys_stropts_h" = "yesyes"; then
case "$target" in
echo "$ac_t""$ans" 1>&6
echo $ac_n "checking if we need basic refclock support""... $ac_c" 1>&6
-echo "configure:8766: checking if we need basic refclock support" >&5
+echo "configure:8768: checking if we need basic refclock support" >&5
if test "$ntp_refclock" = "yes"; then
cat >> confdefs.h <<\EOF
#define REFCLOCK 1
echo $ac_n "checking if we want HP-UX adjtimed support""... $ac_c" 1>&6
-echo "configure:8778: checking if we want HP-UX adjtimed support" >&5
+echo "configure:8780: checking if we want HP-UX adjtimed support" >&5
case "$target" in
*-*-hpux[56789]*)
ans=yes
echo "$ac_t""$ans" 1>&6
echo $ac_n "checking if we can read kmem""... $ac_c" 1>&6
-echo "configure:8796: checking if we can read kmem" >&5
+echo "configure:8798: checking if we can read kmem" >&5
if eval "test \"\${ac_cv_var_can_kmem+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if adjtime is accurate""... $ac_c" 1>&6
-echo "configure:8849: checking if adjtime is accurate" >&5
+echo "configure:8851: checking if adjtime is accurate" >&5
if eval "test \"\${ac_cv_var_adjtime_is_accurate+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking the name of 'tick' in the kernel""... $ac_c" 1>&6
-echo "configure:8901: checking the name of 'tick' in the kernel" >&5
+echo "configure:8903: checking the name of 'tick' in the kernel" >&5
if eval "test \"\${ac_cv_var_nlist_tick+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
#
echo $ac_n "checking for the units of 'tick'""... $ac_c" 1>&6
-echo "configure:8945: checking for the units of 'tick'" >&5
+echo "configure:8947: checking for the units of 'tick'" >&5
if eval "test \"\${ac_cv_var_tick_nano+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
#
echo $ac_n "checking the name of 'tickadj' in the kernel""... $ac_c" 1>&6
-echo "configure:8969: checking the name of 'tickadj' in the kernel" >&5
+echo "configure:8971: checking the name of 'tickadj' in the kernel" >&5
if eval "test \"\${ac_cv_var_nlist_tickadj+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
#
echo $ac_n "checking for the units of 'tickadj'""... $ac_c" 1>&6
-echo "configure:9022: checking for the units of 'tickadj'" >&5
+echo "configure:9024: checking for the units of 'tickadj'" >&5
if eval "test \"\${ac_cv_var_tickadj_nano+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
#
echo $ac_n "checking half-heartedly for 'dosynctodr' in the kernel""... $ac_c" 1>&6
-echo "configure:9046: checking half-heartedly for 'dosynctodr' in the kernel" >&5
+echo "configure:9048: checking half-heartedly for 'dosynctodr' in the kernel" >&5
if eval "test \"\${ac_cv_var_nlist_dosynctodr+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
#
echo $ac_n "checking half-heartedly for 'noprintf' in the kernel""... $ac_c" 1>&6
-echo "configure:9099: checking half-heartedly for 'noprintf' in the kernel" >&5
+echo "configure:9101: checking half-heartedly for 'noprintf' in the kernel" >&5
if eval "test \"\${ac_cv_var_nlist_noprintf+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking for a default value for 'tick'""... $ac_c" 1>&6
-echo "configure:9149: checking for a default value for 'tick'" >&5
+echo "configure:9151: checking for a default value for 'tick'" >&5
if eval "test \"\${ac_cv_var_tick+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking for a default value for 'tickadj'""... $ac_c" 1>&6
-echo "configure:9193: checking for a default value for 'tickadj'" >&5
+echo "configure:9195: checking for a default value for 'tickadj'" >&5
if eval "test \"\${ac_cv_var_tickadj+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking if we want and can make the tickadj utility""... $ac_c" 1>&6
-echo "configure:9300: checking if we want and can make the tickadj utility" >&5
+echo "configure:9302: checking if we want and can make the tickadj utility" >&5
if eval "test \"\${ac_cv_make_tickadj+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking if we want and can make the ntptime utility""... $ac_c" 1>&6
-echo "configure:9316: checking if we want and can make the ntptime utility" >&5
+echo "configure:9318: checking if we want and can make the ntptime utility" >&5
if eval "test \"\${ac_cv_make_ntptime+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we want UDP wildcard delivery""... $ac_c" 1>&6
-echo "configure:9345: checking if we want UDP wildcard delivery" >&5
+echo "configure:9347: checking if we want UDP wildcard delivery" >&5
if eval "test \"\${ac_cv_var_udp_wildcard_delivery+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should always slew the time""... $ac_c" 1>&6
-echo "configure:9424: checking if we should always slew the time" >&5
+echo "configure:9426: checking if we should always slew the time" >&5
if eval "test \"\${ac_cv_var_slew_always+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should step and slew the time""... $ac_c" 1>&6
-echo "configure:9464: checking if we should step and slew the time" >&5
+echo "configure:9466: checking if we should step and slew the time" >&5
if eval "test \"\${ac_cv_var_step_slew+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if ntpdate should step the time""... $ac_c" 1>&6
-echo "configure:9507: checking if ntpdate should step the time" >&5
+echo "configure:9509: checking if ntpdate should step the time" >&5
if eval "test \"\${ac_cv_var_ntpdate_step+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should sync TODR clock every hour""... $ac_c" 1>&6
-echo "configure:9538: checking if we should sync TODR clock every hour" >&5
+echo "configure:9540: checking if we should sync TODR clock every hour" >&5
if eval "test \"\${ac_cv_var_sync_todr+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
esac
echo $ac_n "checking if we should avoid kernel FLL bug""... $ac_c" 1>&6
-echo "configure:9571: checking if we should avoid kernel FLL bug" >&5
+echo "configure:9573: checking if we should avoid kernel FLL bug" >&5
if eval "test \"\${ac_cv_var_kernel_fll_bug+set}\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
s%@LIBPARSE@%$LIBPARSE%g
s%@MAKE_LIBPARSE@%$MAKE_LIBPARSE%g
s%@MAKE_LIBPARSE_KERNEL@%$MAKE_LIBPARSE_KERNEL%g
+s%@MAKE_CHECK_Y2K@%$MAKE_CHECK_Y2K%g
s%@RSAREF@%$RSAREF%g
s%@LIBRSAREF@%$LIBRSAREF%g
s%@MAKE_LIBRSAREF@%$MAKE_LIBRSAREF%g
AC_SUBST(LIBPARSE)
AC_SUBST(MAKE_LIBPARSE)
AC_SUBST(MAKE_LIBPARSE_KERNEL)
+AC_SUBST(MAKE_CHECK_Y2K)
AC_MSG_CHECKING(if we need to make and use the parse libraries)
ans=no
case "$ntp_libparse" in
AC_DEFINE(CLOCK_PARSE)
LIBPARSE=../libparse/libparse.a
MAKE_LIBPARSE=libparse.a
+ MAKE_CHECK_Y2K=check_y2k
AC_DEFINE(PPS_SAMPLE)
AC_DEFINE(CLOCK_ATOM)
;;
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
*/
/* ntp_config.c */
-extern char * progname;
+extern char const * progname;
extern char sys_phone[][MAXDIAL]; /* ACTS phone numbers */
extern char pps_device[]; /* PPS device name */
#if defined(HAVE_SCHED_SETSCHEDULER)
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
#EXTRA_DIST = ntpd.mak
ETAGS_ARGS = Makefile.am
### Y2Kfixes
-check_PROGRAMS = check_y2k
+check_PROGRAMS = @MAKE_CHECK_Y2K@
+EXTRA_PROGRAMS = check_y2k
+
+check-local: @MAKE_CHECK_Y2K@
+ [ -z "@MAKE_CHECK_Y2K@" ] || ./@MAKE_CHECK_Y2K@
ntpd_SOURCES = map_vme.c ntp_config.c ntp_control.c ntp_io.c \
ntp_loopfilter.c ntp_monitor.c ntp_peer.c ntp_proto.c \
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
AUTOMAKE_OPTIONS = ../util/ansi2knr
bin_PROGRAMS = ntpd
- # Y2Kfixes
-check_PROGRAMS = check_y2k
INCLUDES = -I$(top_srcdir)/include
# LDADD might need RESLIB and ADJLIB
LDADD = version.o @LIBPARSE@ ../libntp/libntp.a @LIBRSAREF@
DISTCLEANFILES = .version version.c
#EXTRA_DIST = ntpd.mak
ETAGS_ARGS = Makefile.am
+### Y2Kfixes
+check_PROGRAMS = @MAKE_CHECK_Y2K@
+EXTRA_PROGRAMS = check_y2k
ntpd_SOURCES = map_vme.c ntp_config.c ntp_control.c ntp_io.c \
ntp_loopfilter.c ntp_monitor.c ntp_peer.c ntp_proto.c \
CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
ANSI2KNR = ../util/ansi2knr
+check_y2k_SOURCES = check_y2k.c
+check_y2k_OBJECTS = check_y2k$U.o
+check_y2k_LDADD = $(LDADD)
+check_y2k_DEPENDENCIES = version.o ../libntp/libntp.a
+check_y2k_LDFLAGS =
am_ntpd_OBJECTS = map_vme$U.o ntp_config$U.o ntp_control$U.o ntp_io$U.o \
ntp_loopfilter$U.o ntp_monitor$U.o ntp_peer$U.o ntp_proto$U.o \
ntp_refclock$U.o ntp_request$U.o ntp_restrict$U.o ntp_timer$U.o \
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-DIST_SOURCES = $(ntpd_SOURCES)
+DIST_SOURCES = check_y2k.c $(ntpd_SOURCES)
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
GZIP_ENV = --best
-DEP_FILES = .deps/map_vme.P .deps/ntp_config.P .deps/ntp_control.P \
-.deps/ntp_filegen.P .deps/ntp_intres.P .deps/ntp_io.P \
-.deps/ntp_loopfilter.P .deps/ntp_monitor.P .deps/ntp_peer.P \
-.deps/ntp_proto.P .deps/ntp_refclock.P .deps/ntp_request.P \
-.deps/ntp_restrict.P .deps/ntp_timer.P .deps/ntp_util.P .deps/ntpd.P \
-.deps/refclock_acts.P .deps/refclock_arbiter.P .deps/refclock_arc.P \
-.deps/refclock_as2201.P .deps/refclock_atom.P .deps/refclock_bancomm.P \
+DEP_FILES = .deps/check_y2k.P .deps/map_vme.P .deps/ntp_config.P \
+.deps/ntp_control.P .deps/ntp_filegen.P .deps/ntp_intres.P \
+.deps/ntp_io.P .deps/ntp_loopfilter.P .deps/ntp_monitor.P \
+.deps/ntp_peer.P .deps/ntp_proto.P .deps/ntp_refclock.P \
+.deps/ntp_request.P .deps/ntp_restrict.P .deps/ntp_timer.P \
+.deps/ntp_util.P .deps/ntpd.P .deps/refclock_acts.P \
+.deps/refclock_arbiter.P .deps/refclock_arc.P .deps/refclock_as2201.P \
+.deps/refclock_atom.P .deps/refclock_bancomm.P \
.deps/refclock_chronolog.P .deps/refclock_chu.P .deps/refclock_conf.P \
.deps/refclock_datum.P .deps/refclock_dumbclock.P \
.deps/refclock_gpsvme.P .deps/refclock_heath.P .deps/refclock_hpgps.P \
.deps/refclock_parse.P .deps/refclock_pst.P .deps/refclock_ptbacts.P \
.deps/refclock_shm.P .deps/refclock_tpro.P .deps/refclock_trak.P \
.deps/refclock_true.P .deps/refclock_usno.P .deps/refclock_wwvb.P
-SOURCES = $(ntpd_SOURCES)
-OBJECTS = $(am_ntpd_OBJECTS)
+SOURCES = check_y2k.c $(ntpd_SOURCES)
+OBJECTS = check_y2k$U.o $(am_ntpd_OBJECTS)
all: all-redirect
.SUFFIXES:
rm -f $(DESTDIR)$(bindir)/$$f; \
done
+mostlyclean-checkPROGRAMS:
+
+clean-checkPROGRAMS:
+ -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
+
+distclean-checkPROGRAMS:
+
+maintainer-clean-checkPROGRAMS:
+
mostlyclean-compile:
-rm -f *.o core *.core
distclean-kr:
maintainer-clean-kr:
+check_y2k$U.o:
+
+check_y2k: $(check_y2k_OBJECTS) $(check_y2k_DEPENDENCIES)
+ @rm -f check_y2k
+ $(LINK) $(check_y2k_LDFLAGS) $(check_y2k_OBJECTS) $(check_y2k_LDADD) $(LIBS)
map_vme$U.o:
ntp_config$U.o:
ntp_control$U.o:
refclock_chronolog$U.o:
refclock_dumbclock$U.o:
- #Y2Kfixes [
-check_y2k.o: Makefile check_y2k.c ../config.h \
- ../include/ntp.h ../include/ntpd.h ../include/ntp_calendar.h
- $(COMPILE) -o check_y2k.o -c check_y2k.c
-
-check_y2k: check_y2k.o
- @if [ -f check_y2k ]; then rm -f check_y2k; fi
- $(LINK) $(ntpd_LDFLAGS) check_y2k.o $(ntpd_LDADD) $(LIBS)
- #Y2Kfixes ]
-
ntpd: $(ntpd_OBJECTS) $(ntpd_DEPENDENCIES)
@rm -f ntpd
$(LINK) $(ntpd_LDFLAGS) $(ntpd_OBJECTS) $(ntpd_LDADD) $(LIBS)
+check_y2k_.c: check_y2k.c $(ANSI2KNR)
+ $(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/check_y2k.c; then echo $(srcdir)/check_y2k.c; else echo check_y2k.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > check_y2k_.c
map_vme_.c: map_vme.c $(ANSI2KNR)
$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/map_vme.c; then echo $(srcdir)/map_vme.c; else echo map_vme.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > map_vme_.c
ntp_config_.c: ntp_config.c $(ANSI2KNR)
$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/refclock_usno.c; then echo $(srcdir)/refclock_usno.c; else echo refclock_usno.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > refclock_usno_.c
refclock_wwvb_.c: refclock_wwvb.c $(ANSI2KNR)
$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/refclock_wwvb.c; then echo $(srcdir)/refclock_wwvb.c; else echo refclock_wwvb.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > refclock_wwvb_.c
-map_vme_.o ntp_config_.o ntp_control_.o ntp_filegen_.o ntp_intres_.o \
-ntp_io_.o ntp_loopfilter_.o ntp_monitor_.o ntp_peer_.o ntp_proto_.o \
-ntp_refclock_.o ntp_request_.o ntp_restrict_.o ntp_timer_.o ntp_util_.o \
-ntpd_.o refclock_acts_.o refclock_arbiter_.o refclock_arc_.o \
-refclock_as2201_.o refclock_atom_.o refclock_bancomm_.o \
+check_y2k_.o map_vme_.o ntp_config_.o ntp_control_.o ntp_filegen_.o \
+ntp_intres_.o ntp_io_.o ntp_loopfilter_.o ntp_monitor_.o ntp_peer_.o \
+ntp_proto_.o ntp_refclock_.o ntp_request_.o ntp_restrict_.o \
+ntp_timer_.o ntp_util_.o ntpd_.o refclock_acts_.o refclock_arbiter_.o \
+refclock_arc_.o refclock_as2201_.o refclock_atom_.o refclock_bancomm_.o \
refclock_chronolog_.o refclock_chu_.o refclock_conf_.o \
refclock_datum_.o refclock_dumbclock_.o refclock_gpsvme_.o \
refclock_heath_.o refclock_hpgps_.o refclock_irig_.o \
dvi-am:
dvi: dvi-am
check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+ $(MAKE) $(AM_MAKEFLAGS) check-local
check: check-am
installcheck-am:
installcheck: installcheck-am
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
-mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
- mostlyclean-kr mostlyclean-tags mostlyclean-depend \
- mostlyclean-generic
+mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-checkPROGRAMS \
+ mostlyclean-compile mostlyclean-kr mostlyclean-tags \
+ mostlyclean-depend mostlyclean-generic
mostlyclean: mostlyclean-am
-clean-am: clean-binPROGRAMS clean-compile clean-kr clean-tags \
- clean-depend clean-generic mostlyclean-am
+clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-compile clean-kr \
+ clean-tags clean-depend clean-generic mostlyclean-am
clean: clean-am
-distclean-am: distclean-binPROGRAMS distclean-compile distclean-kr \
- distclean-tags distclean-depend distclean-generic \
- clean-am
+distclean-am: distclean-binPROGRAMS distclean-checkPROGRAMS \
+ distclean-compile distclean-kr distclean-tags \
+ distclean-depend distclean-generic clean-am
distclean: distclean-am
maintainer-clean-am: maintainer-clean-binPROGRAMS \
- maintainer-clean-compile maintainer-clean-kr \
- maintainer-clean-tags maintainer-clean-depend \
- maintainer-clean-generic distclean-am
+ maintainer-clean-checkPROGRAMS maintainer-clean-compile \
+ maintainer-clean-kr maintainer-clean-tags \
+ maintainer-clean-depend maintainer-clean-generic \
+ distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
-mostlyclean-compile distclean-compile clean-compile \
-maintainer-clean-compile mostlyclean-kr distclean-kr clean-kr \
-maintainer-clean-kr tags mostlyclean-tags distclean-tags clean-tags \
-maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
-clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
-check-am installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all install-strip installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
-
+mostlyclean-checkPROGRAMS distclean-checkPROGRAMS clean-checkPROGRAMS \
+maintainer-clean-checkPROGRAMS mostlyclean-compile distclean-compile \
+clean-compile maintainer-clean-compile mostlyclean-kr distclean-kr \
+clean-kr maintainer-clean-kr tags mostlyclean-tags distclean-tags \
+clean-tags maintainer-clean-tags distdir mostlyclean-depend \
+distclean-depend clean-depend maintainer-clean-depend info-am info \
+dvi-am dvi check-local check check-am installcheck-am installcheck \
+install-exec-am install-exec install-data-am install-data install-am \
+install uninstall-am uninstall all-redirect all-am all install-strip \
+installdirs mostlyclean-generic distclean-generic clean-generic \
+maintainer-clean-generic clean mostlyclean distclean maintainer-clean
+
+
+check-local: @MAKE_CHECK_Y2K@
+ [ -z "@MAKE_CHECK_Y2K@" ] || ./@MAKE_CHECK_Y2K@
$(PROGRAMS): $(LDADD)
/*
* Definitions of things either imported from or exported to outside
*/
-char *progname;
+char const *progname;
char sys_phone[MAXPHONE][MAXDIAL]; /* ACTS phone numbers */
char pps_device[MAXPPS + 1]; /* PPS device name */
int pps_assert = 1;
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
INCLUDES = -I$(top_srcdir)/include
ETAGS_ARGS = Makefile.am
#EXTRA_DIST= TAGS
+
+check-local: dcfd
+ ./dcfd -Y
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@
dvi-am:
dvi: dvi-am
check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) check-local
check: check-am
installcheck-am:
installcheck: installcheck-am
maintainer-clean-compile mostlyclean-kr distclean-kr clean-kr \
maintainer-clean-kr tags mostlyclean-tags distclean-tags clean-tags \
maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
-clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
-check-am installcheck-am installcheck install-exec-am install-exec \
-install-data-am install-data install-am install uninstall-am uninstall \
-all-redirect all-am all install-strip installdirs mostlyclean-generic \
-distclean-generic clean-generic maintainer-clean-generic clean \
-mostlyclean distclean maintainer-clean
+clean-depend maintainer-clean-depend info-am info dvi-am dvi \
+check-local check check-am installcheck-am installcheck install-exec-am \
+install-exec install-data-am install-data install-am install \
+uninstall-am uninstall all-redirect all-am all install-strip \
+installdirs mostlyclean-generic distclean-generic clean-generic \
+maintainer-clean-generic clean mostlyclean distclean maintainer-clean
#EXTRA_DIST= TAGS
+check-local: dcfd
+ ./dcfd -Y
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
static struct timeval max_adj_offset = { 0, 128000 };
static long clock_adjust = 0; /* current adjustment value (usec * 2^USECSCALE) */
-static long drift_comp = 0; /* accumulated drift value (usec / ADJINTERVAL) */
+static long accum_drift = 0; /* accumulated drift value (usec / ADJINTERVAL) */
static long adjustments = 0;
static char skip_adjust = 1; /* discard first adjustment (bad samples) */
fclose(df);
LPRINTF("read_drift: %d.%03d ppm ", idrift, fdrift);
- drift_comp = idrift << USECSCALE;
+ accum_drift = idrift << USECSCALE;
fdrift = (fdrift << USECSCALE) / 1000;
- drift_comp += fdrift & (1<<USECSCALE);
- LPRINTF("read_drift: drift_comp %ld ", (long int)drift_comp);
+ accum_drift += fdrift & (1<<USECSCALE);
+ LPRINTF("read_drift: drift_comp %ld ", (long int)accum_drift);
}
}
df = fopen(drift_file, "w");
if (df != NULL)
{
- int idrift = R_SHIFT(drift_comp, USECSCALE);
- int fdrift = drift_comp & ((1<<USECSCALE)-1);
+ int idrift = R_SHIFT(accum_drift, USECSCALE);
+ int fdrift = accum_drift & ((1<<USECSCALE)-1);
- LPRINTF("update_drift: drift_comp %ld ", (long int)drift_comp);
+ LPRINTF("update_drift: drift_comp %ld ", (long int)accum_drift);
fdrift = (fdrift * 1000) / (1<<USECSCALE);
fprintf(df, "%4d.%03d %c%ld.%06ld %.24s\n", idrift, fdrift,
(offset < 0) ? '-' : '+', (long int)(abs(offset) / 1000000),
if (tmp > FREQ_WEIGHT)
tmp = FREQ_WEIGHT;
- drift_comp += R_SHIFT(usecoffset << USECSCALE, TIMECONSTANT+TIMECONSTANT+FREQ_WEIGHT-tmp);
+ accum_drift += R_SHIFT(usecoffset << USECSCALE, TIMECONSTANT+TIMECONSTANT+FREQ_WEIGHT-tmp);
- if (drift_comp > MAX_DRIFT) /* clamp into interval */
- drift_comp = MAX_DRIFT;
+ if (accum_drift > MAX_DRIFT) /* clamp into interval */
+ accum_drift = MAX_DRIFT;
else
- if (drift_comp < -MAX_DRIFT)
- drift_comp = -MAX_DRIFT;
+ if (accum_drift < -MAX_DRIFT)
+ accum_drift = -MAX_DRIFT;
update_drift(drift_file, usecoffset, reftime);
LPRINTF("clock_adjust: %s, clock_adjust %ld, drift_comp %ld(%ld) ",
pr_timeval(offset),(long int) R_SHIFT(clock_adjust, USECSCALE),
- (long int)R_SHIFT(drift_comp, USECSCALE), (long int)drift_comp);
+ (long int)R_SHIFT(accum_drift, USECSCALE), (long int)accum_drift);
}
/*-----------------------------------------------------------------------
clock_adjust -= adjustment;
- adjustment += R_SHIFT(drift_comp, USECSCALE+ADJINTERVAL);
+ adjustment += R_SHIFT(accum_drift, USECSCALE+ADJINTERVAL);
adj_time(adjustment);
}
LN_S = @LN_S@
MAKEINFO = @MAKEINFO@
MAKE_ADJTIMED = @MAKE_ADJTIMED@
+MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
MAKE_LIBPARSE = @MAKE_LIBPARSE@
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
MAKE_LIBRSAREF = @MAKE_LIBRSAREF@