From: Harlan Stenn Date: Sun, 25 Jun 2006 21:38:34 +0000 (-0400) Subject: Merge whimsy.udel.edu:/deacon/backroom/ntp-stable X-Git-Tag: NTP_4_2_3P11~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d9e60abbd4ce95b07c5c4f8198d4b03550cc97d;p=thirdparty%2Fntp.git Merge whimsy.udel.edu:/deacon/backroom/ntp-stable into whimsy.udel.edu:/deacon/backroom/ntp-dev bk: 449f025arzxf2VhsXXLZPu0w8QgEBg --- 1d9e60abbd4ce95b07c5c4f8198d4b03550cc97d diff --cc Makefile.am index 8e7d81abd,cf4fa3a1a..33f336679 --- a/Makefile.am +++ b/Makefile.am @@@ -42,48 -34,45 +42,49 @@@ DIST_SUBDIRS= parseutil \ adjtimed \ clockstuff \ - kernel \ - sntp \ - util -DISTCHECK_CONFIGURE_FLAGS= --with-arlib --with-sntp + kernel \ + sntp \ + util \ + $(NULL) + +DISTCHECK_CONFIGURE_FLAGS= --with-arlib --enable-local-libopts -EXTRA_DIST = \ - COPYRIGHT \ - ChangeLog \ +EXTRA_DIST = \ + COPYRIGHT \ + ChangeLog \ ChangeLog-4.1.0 \ - NEWS \ - NOTES.y2kfixes \ - README.bk \ - README.hackers \ - README.patches \ + NEWS \ + NOTES.y2kfixes \ + README.bk \ + README.hackers \ + README.patches \ README.refclocks \ - README.versions \ - TODO \ - WHERE-TO-START \ - bootstrap \ - build \ - config.guess \ - config.h.in \ - config.sub \ - dot.emacs \ - excludes \ - flock-build \ - install-sh \ - packageinfo.sh \ - readme.y2kfixes \ - results.y2kfixes \ + README.versions \ + TODO \ + WHERE-TO-START \ + bootstrap \ + build \ + config.guess \ + config.h.in \ + config.sub \ + dot.emacs \ + excludes \ + flock-build \ + install-sh \ + packageinfo.sh \ + readme.y2kfixes \ + results.y2kfixes \ + \ + conf \ + html \ + libisc \ + ports \ \ - conf \ - html \ - libisc \ - ports \ ++ bincheck.mf \ + version \ + version.m4 \ \ - bincheck.mf \ - version \ - version.m4 + $(NULL) DISTCLEANFILES = .gcc-warning diff --cc bootstrap index e75b4f6dc,7eecf49c0..eea61c10e --- a/bootstrap +++ b/bootstrap @@@ -52,21 -47,13 +52,23 @@@ prog_opt_files=$ incdir=${PWD}/include -#for f in ${prog_opt_files} -#do -# ( cd $(dirname ${f}) -# echo "Running autogen on $f..." -# autogen -L${incdir} $(basename ${f}) ) -#done +for f in ${prog_opt_files} +do + ( cd $(dirname ${f}) + echo "Running autogen on $f..." + autogen -L${incdir} $(basename ${f}) + ) || exit 1 +done -(cd sntp && ${AUTORECONF} -i -v) ++cp bincheck.mf sntp/ + ${AUTORECONF} -i -v + +# HMS: 20060618: Now that we use separate copies of libopts +# we should only need the previous line. +# +## HMS: 20060615: the next line seems to be needed to make sure +## we get the correct srcdir path in sntp/libopts/Makefile.in +#rm -rf sntp/autom4te.cache +# +#(cd sntp && ${AUTORECONF} -f -i -v) diff --cc sntp/Makefile.am index 284b1ba88,517fa4b27..d681a77a8 --- a/sntp/Makefile.am +++ b/sntp/Makefile.am @@@ -1,44 -2,14 +2,25 @@@ # Makefile for sntp # N.M. Maclaren, October 2000. - # Take a look at README for the various preprocessor symbols, but they are - # extremely unlikely to be needed on newer systems. You may prefer to change - # LOCKNAME and SAVENAME to use /var/run (or even /tmp) rather than /etc. Note - # that not all of the following system settings have been tested recently. - AUTOMAKE_OPTIONS = foreign +ACLOCAL_AMFLAGS= -I libopts/m4 + +AM_CPPFLAGS= $(LIBOPTS_CFLAGS) +LDADD= $(LIBOPTS_LDADD) - # Compiling this sort of ANSI C under SunOS 4.1 is a mug's game, because Sun's - # Unix headers make GNU C vomit even in compatibility mode, but the following - # will compile main.c and unix.c. At least two people have got it to work. - # CC = gcc -ansi - # CFLAGS = -O -DNONBLOCK_BROKEN - # LDFLAGS = - # LIBS = -lm - - # The following settings can be used under Linux. While adjtime is present, - # it is completely broken (i.e. it will work only if xntp is running), so it - # is a good idea to add -DADJTIME_MISSING. - # CC = cc -DADJTIME_MISSING - # CFLAGS = -O - # LDFLAGS = - # LIBS = -lm - NULL= + EXTRA_DIST= bincheck.mf + bindir= ${exec_prefix}/${BINSUBDIR} - bin_PROGRAMS = sntp + bin_PROGRAMS= sntp +run_ag= cd $(srcdir) && autogen -L $(top_srcdir)/include + +SUBDIRS= +if NEED_LIBOPTS +SUBDIRS+= libopts +endif +SUBDIRS+= . sntp_SOURCES = \ header.h \ @@@ -55,18 -24,4 +37,18 @@@ dist_man_MANS= sntp.1 +EXTRA_DIST= sntp-opts.def sntp.1 sntp-opts.texi sntp-opts.menu +BUILT_SOURCES= sntp-opts.c sntp-opts.h sntp.1 sntp-opts.texi sntp-opts.menu +man_MANS= sntp.1 + +$(srcdir)/sntp-opts.h: sntp-opts.c +$(srcdir)/sntp-opts.c: sntp-opts.def + $(run_ag) sntp-opts.def + +$(srcdir)/sntp.1: sntp-opts.def + $(run_ag) -Tagman1.tpl -bsntp sntp-opts.def + +$(srcdir)/sntp-opts.texi $(srcdir)/sntp-opts.menu: sntp-opts.def + $(run_ag) -Taginfo.tpl -DLEVEL=section sntp-opts.def + - include ../bincheck.mf + include bincheck.mf