dnl Process this file with autoconf to produce a configure script.
AC_INIT(ntpd/ntp_refclock.c)
AC_CANONICAL_SYSTEM
-AC_DEFINE_UNQUOTED(STR_SYSTEM, "$target")
+AC_DEFINE_UNQUOTED(STR_SYSTEM, "$host")
AM_CONFIG_HEADER(config.h)
AC_ARG_PROGRAM
AM_INIT_AUTOMAKE(ntp, 4.1.1a)
-AC_PREREQ(2.49)
+AC_PREREQ(2.52) # We need the cross-compile-aware SIZEOF stuff.
ac_cv_var_oncore_ok=no
ac_cv_var_atom_ok=no
AC_PROG_CC_STDC
AC_PROG_CPP
-case "$target" in
+case "$host" in
*-*-amigaos)
CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
;;
;;
esac
-case "$host" in
- $target)
+case "$build" in
+ $host)
;;
- *) case "$target" in
+ *) case "$host" in
*-*-vxworks*)
# Quick and dirty sanity check
case "$VX_KERNEL" in
ac_busted_vpath_in_make=no
-case "$target" in
+case "$host" in
*-next-nextstep3)
CFLAGS="$CFLAGS -posix"
;;
hs_ULONG_CONST
-case "$target" in
+case "$host" in
*-*-vxworks*)
ac_link="$ac_link $VX_KERNEL"
;;
AC_PROG_INSTALL
-case "$target" in
+case "$host" in
*-pc-cygwin*)
AC_CHECK_LIB(advapi32, main)
;;
AC_CHECK_LIB(readline, readline,
LIBS="-lreadline -lcurses $LIBS"
AC_DEFINE(HAVE_LIBREADLINE)
- AC_DEFINE(HAVE_LIBCURSES)
+ AC_DEFINE(HAVE_LIBCURSES, , [Do we have the curses library?])
, , -lcurses))
dnl Digital UNIX V4.0 and Solaris 7 have POSIX.1c functions in -lrt
dnl does Strange Things with extra processes using the Posix-compatibility
dnl real-time library, so we don't want to use it.
-case "$target" in
+case "$host" in
*-*-linux*) ;;
*)
AC_CHECK_LIB(rt, sched_setscheduler, ,
AC_CHECK_HEADERS(sun/audioio.h sys/audioio.h)
dnl AC_CHECK_HEADERS(sys/chudefs.h)
AC_CHECK_HEADERS(sys/clkdefs.h sys/file.h)
-case "$target" in
+case "$host" in
*-*-sunos4*) ;;
*) AC_CHECK_HEADERS(sys/ioctl.h)
;;
esac
AC_CHECK_HEADERS(sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h)
AC_CHECK_HEADERS(sys/ppstime.h sys/proc.h sys/resource.h sys/sched.h)
-case "$target" in
+case "$host" in
*-*-sco*)
AC_CHECK_HEADERS(sys/sio.h)
;;
esac
-AC_CHECK_HEADERS(sys/select.h sys/signal.h sys/sockio.h sys/stat.h sys/stream.h)
+AC_CHECK_HEADERS(sys/select.h sys/signal.h sys/sockio.h)
+AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h)
+AC_CHECK_HEADERS(sys/stat.h sys/stream.h)
AC_CHECK_HEADERS(sys/stropts.h sys/sysctl.h sys/syssgi.h sys/termios.h)
-AC_CHECK_HEADERS(sys/time.h)
+AC_CHECK_HEADERS(sys/time.h sys/signal.h)
AC_EGREP_CPP(yes,
[#include <sys/timepps.h>
#ifdef PPS_API_VERS_1
], [AC_CHECK_HEADERS(sys/timepps.h)])
AC_CHECK_HEADERS(sys/timers.h sys/timex.h sys/tpro.h sys/types.h sys/wait.h)
AC_HEADER_TIME
-case "$target" in
+case "$host" in
*-convex-*)
AC_CHECK_HEADERS(/sys/sync/queue.h /sys/sync/sema.h)
;;
;;
esac
-case "$target" in
+case "$host" in
sparc-*-solaris2*)
# Assume that solaris2 is Ansi C...
;;
fi
AC_C_CONST
-case "$host" in
- $target)
+case "$build" in
+ $host)
AC_C_BIGENDIAN
;;
- *) case "$target" in
- i*86-*-vxworks*)
+ *) case "$host" in
+ i*86-*-*) # Was i*86-*-vxworks*
# LITTLEENDIAN
;;
*-*-vxworks*)
AC_CACHE_CHECK(for a fallback value for HZ, ac_cv_var_default_hz,
[ac_cv_var_default_hz=100
-case "$target" in
+case "$host" in
alpha*-dec-osf4*|alpha*-dec-osf5*)
ac_cv_var_default_hz=1024
;;
AC_CACHE_CHECK(if we need to override the system's value for HZ, ac_cv_var_override_hz,
[ac_cv_var_override_hz=no
-case "$target" in
+case "$host" in
alpha*-dec-osf4*|alpha*-dec-osf5*)
ac_cv_var_override_hz=yes
;;
AC_DEFINE(HAVE_SA_LEN_IN_STRUCT_SOCKADDR)
fi
+case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
+ *yes*)
+ AC_CACHE_CHECK([for struct snd_size], ac_cv_struct_snd_size,
+[AC_TRY_COMPILE([
+#ifdef HAVE_MACHINE_SOUNDCARD_H
+# include <machine/soundcard.h>
+#endif
+#ifdef HAVE_SYS_SOUNDCARD_H
+# include <sys/soundcard.h>
+#endif],[
+extern struct snd_size *ss;
+return ss->rec_size;],
+ ac_cv_struct_snd_size=yes,
+ ac_cv_struct_snd_size=no)
+])
+ case "$ac_cv_struct_snd_size" in
+ yes) AC_DEFINE(HAVE_STRUCT_SND_SIZE, 1,[Do we have struct snd_size?]) ;;
+ esac
+ ;;
+esac
+
AC_CACHE_CHECK(struct clockinfo for hz, ac_cv_struct_clockinfo_has_hz,
[AC_TRY_COMPILE([
#include <sys/time.h>],[
AC_C_INLINE
AC_C_CHAR_UNSIGNED dnl CROSS_COMPILE?
-case "$host" in
- $target)
- AC_CHECK_SIZEOF(signed char)
- ;;
- *) case "$target" in
- *-*-vxworks*)
- AC_CHECK_SIZEOF(signed char, 1)
- ;;
- *) AC_MSG_ERROR(Cross-compiling needs explicit SIZEOF_SIGNED_LONG)
- ;;
- esac
- ;;
-esac
-
-case "$host" in
- $target)
- AC_CHECK_SIZEOF(int)
- ;;
- *) case "$target" in
- *-*-vxworks*)
- AC_CHECK_SIZEOF(int, 4)
- ;;
- *) AC_MSG_ERROR(Cross-compiling needs explicit SIZEOF_INT)
- ;;
- esac
- ;;
-esac
-
-case "$host" in
- $target)
- AC_CHECK_SIZEOF(long)
- ;;
- *) case "$target" in
- *-*-vxworks*)
- AC_CHECK_SIZEOF(long, 4)
- ;;
- *) AC_MSG_ERROR(Cross-compiling needs explicit SIZEOF_LONG)
- ;;
- esac
- ;;
-esac
+AC_CHECK_SIZEOF(signed char)
+AC_CHECK_SIZEOF(int)
+AC_CHECK_SIZEOF(long)
AC_CHECK_TYPES([s_char])
case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
esac
AC_TYPE_UID_T
-case "$target" in
+case "$host" in
*-*-linux*)
AC_CHECK_FUNCS(__adjtimex __ntp_gettime)
;;
esac
-case "$target" in
+case "$host" in
*-*-aix4*)
# (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
# (returning ENOSYS). I didn't check 4.2. If, in the future,
LIBS=$_libs])])
AC_CHECK_FUNCS(getbootfile getclock getdtablesize getrusage)
AC_CHECK_FUNC(gettimeofday, ,[
-case "$target" in
+case "$host" in
*-*-mpeix*) ac_cv_func_gettimeofday=yes
;;
esac])
-case "$target" in
+case "$host" in
*-pc-cygwin*)
;;
*) AC_CHECK_FUNCS(getuid)
;;
esac
AC_CHECK_FUNCS(hstrerror K_open kvm_open memcpy memmove memset)
-case "$target" in
+case "$host" in
*-*-sco3.2v5.0.*)
# Just stubs. Idiots.
;;
*) AC_CHECK_FUNCS(mkstemp)
;;
esac
-AC_REPLACE_FUNCS(mktime)
-case "$target" in
+AC_CHECK_FUNCS(mktime)
+case "$host" in
*-*-aix4*)
# Just a stub. Idiots.
;;
*-*-irix*)
- # Just stubs in Irix. Idiots.
+ # Just a stub in Irix. Idiots.
+ ;;
+ *-*-qnx*)
+ # Apparently there but not working in QNX. Idiots?
;;
*-*-sco3.2v5.0.*)
- # Just stubs. Idiots.
+ # Just a stub. Idiots.
;;
alpha*-dec-osf4*|alpha*-dec-osf5*)
# mlockall is there, as a #define calling memlk via <sys/mman.h>
;;
esac
AC_CHECK_FUNCS(mrand48 srand48 nice nlist)
-case "$target" in
+case "$host" in
*-*-solaris2.6)
# Broken...
;;
yes) ;;
*) AC_REPLACE_FUNCS(random) ;;
esac
-case "$target" in
+case "$host" in
*-*-aix4*)
# Just a stub in AIX 4. Idiots.
;;
esac
AC_CHECK_FUNCS(setlinebuf setpgid setpriority setsid)
AC_CHECK_FUNCS(settimeofday, ,[
-case "$target" in
+case "$host" in
*-*-mpeix*) ac_cv_func_settimeofday=yes
;;
esac])
AC_CHECK_FUNCS(setvbuf sigaction)
AC_CHECK_FUNCS(sigvec sigset sigsuspend stime strchr sysconf sysctl)
-AC_REPLACE_FUNCS(snprintf strdup strerror)
-case "$target" in
+AC_REPLACE_FUNCS(snprintf strdup strerror strstr)
+AC_CHECK_FUNCS(timegm)
+case "$host" in
*-*-aix4*)
# Just stubs. Idiots.
;;
*) AC_CHECK_FUNCS(timer_create timer_settime)
;;
esac
-case "$target" in
+case "$host" in
*-pc-cygwin*)
# I have no idea...
;;
yes) AC_DEFINE(DECL_SYSCALL) ;;
esac
-case "$target" in
+case "$host" in
*-*-aix4.3.*)
AC_DEFINE(DECL_HSTRERROR_0) # Needed for XLC under AIX 4.3.2
;;
AC_DEFINE(DECL_PLOCK_0)
AC_DEFINE(DECL_STIME_1)
;;
+ *-*-qnx*)
+ AC_DEFINE(DECL_ADJTIME_0)
+ ;;
*-*-riscos4*)
AC_DEFINE(DECL_ADJTIME_0)
AC_DEFINE(DECL_BZERO_0)
*-*-solaris2*)
AC_DEFINE(DECL_MKSTEMP_0)
AC_DEFINE(DECL_SETPRIORITY_1)
- case "$target" in
+ case "$host" in
*-*-solaris2.4)
AC_DEFINE(DECL_TIMEOFDAY_0)
;;
;;
esac
-case "$target" in
+case "$host" in
*-*-sco3.2*)
AC_DEFINE(TERMIOS_NEEDS__SVID3)
;;
AC_CACHE_CHECK(if we need extra room for SO_RCVBUF, ac_cv_var_rcvbuf_slop,
[ans=no
-case "$target" in
+case "$host" in
*-*-hpux[[567]]*)
ans=yes
;;
AC_CACHE_CHECK(if we will open the broadcast socket, ac_cv_var_open_bcast_socket,
[ans=yes
-case "$target" in
+case "$host" in
*-*-domainos)
ans=no
;;
AC_CACHE_CHECK(if we want the HPUX version of FindConfig(), ac_cv_var_hpux_findconfig,
[ans=no
-case "$target" in
+case "$host" in
*-*-hpux*)
ans=yes
;;
esac
AC_CACHE_CHECK(if process groups are set with -pid, ac_cv_arg_setpgrp_negpid,
-[case "$target" in
+[case "$host" in
*-*-hpux[[567]]*)
ans=no
;;
esac
AC_CACHE_CHECK(if we need a ctty for F_SETOWN, ac_cv_func_ctty_for_f_setown,
-[case "$target" in
+[case "$host" in
*-*-bsdi[[23]]*)
ans=yes
;;
ans='stime()'
;;
*)
- case "$host" in
- $target) ntp_warning='Which leaves us with nothing to use!'
+ case "$build" in
+ $host) ntp_warning='Which leaves us with nothing to use!'
ans=none
;;
esac
esac
AC_CACHE_CHECK(if we have a losing syscall(), ac_cv_var_syscall_bug,
-[case "$target" in
+[case "$host" in
*-*-solaris2.4*)
ans=yes
;;
yes)
ans=no
# There must be a better way...
- case "$target" in
+ case "$host" in
*-*-ptx*)
ans=yes
;;
case "$ac_cv_hdr_def_sigio" in
yes)
ans=yes
- case "$target" in
+ case "$host" in
alpha*-dec-osf4*|alpha*-dec-osf5*)
ans=no
;;
[ans=no
case "$ac_cv_hdr_def_sigpoll" in
yes)
- case "$target" in
+ case "$host" in
mips-sgi-irix*)
ans=no
;;
*-*-osf*)
ans=no
;;
+ *-*-qnx*)
+ ans=no
+ ;;
*-*-sunos*)
ans=no
;;
[ans=no
case "$ac_cv_hdr_def_sigpoll" in
yes)
- case "$target" in
+ case "$host" in
mips-sgi-irix*)
ans=no
;;
*-*-ultrix*)
ans=no
;;
+ *-*-qnx*)
+ ans=no
+ ;;
*) ans=yes
;;
esac
AC_CACHE_CHECK(if nlist() values might require extra indirection,
ac_cv_var_nlist_extra_indirection,
[ans=no
-case "$target" in
+case "$host" in
*-*-aix*)
ans=yes
;;
AC_CACHE_CHECK(for a minimum recommended value of tickadj,
ac_cv_var_min_rec_tickadj,
[ans=no
-case "$target" in
+case "$host" in
*-*-aix*)
ans=40
;;
AC_CACHE_CHECK(if the TTY code permits PARENB and IGNPAR,
ac_cv_var_no_parenb_ignpar,
[ans=no
-case "$target" in
+case "$host" in
i?86-*-linux*)
ans=yes
;;
AC_CACHE_CHECK(for kernel multicast support, ac_cv_var_mcast,
[ac_cv_var_mcast=no
- case "$target" in
+ case "$host" in
i386-sequent-sysv4) ;;
*) AC_EGREP_CPP(yes,
[#include <netinet/in.h>
AC_CACHE_CHECK(if SIOCGIFCONF returns buffer size in the buffer, ac_cv_var_size_returned_in_buffer,
[ans=no
- case "$target" in
+ case "$host" in
*-fujitsu-uxp*)
ans=yes
;;
# HPUX only, and by explicit request
AC_MSG_CHECKING(Datum/Bancomm bc635/VME interface)
-AC_ARG_ENABLE(BANCOMM, [ --enable-BANCOMM - Datum/Bancomm bc635/VME interface],
+AC_ARG_ENABLE(BANCOMM,
+ AC_HELP_STRING([--enable-BANCOMM], [- Datum/Bancomm bc635/VME interface]),
[ntp_ok=$enableval], [ntp_ok=no])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_DEFINE(CLOCK_BANC)
fi
AC_MSG_RESULT($ntp_ok)
-case "$ntp_ok$target" in
+case "$ntp_ok$host" in
yes*-*-hpux*) ;;
yes*) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
esac
#HPUX only, and only by explicit request
AC_MSG_CHECKING(TrueTime GPS receiver/VME interface)
-AC_ARG_ENABLE(GPSVME, [ --enable-GPSVME - TrueTime GPS receiver/VME interface],
+AC_ARG_ENABLE(GPSVME,
+ AC_HELP_STRING([--enable-GPSVME], [- TrueTime GPS receiver/VME interface]),
[ntp_ok=$enableval], [ntp_ok=no])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_DEFINE(CLOCK_GPSVME)
fi
AC_MSG_RESULT($ntp_ok)
-case "$ntp_ok$target" in
+case "$ntp_ok$host" in
yes*-*-hpux*) ;;
yes*) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
esac
AC_MSG_RESULT($ans)
AC_MSG_CHECKING(for SHM clock attached thru shared memory)
-AC_ARG_ENABLE(SHM, [ --enable-SHM - SHM clock attached thru shared memory],
+AC_ARG_ENABLE(SHM,
+ AC_HELP_STRING([--enable-SHM], [- SHM clock attached thru shared memory]),
[ntp_ok=$enableval], [ntp_ok=no])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(for default inclusion of all suitable non-PARSE clocks)
-AC_ARG_ENABLE(all-clocks, [ --enable-all-clocks + include all suitable non-PARSE clocks:],
+AC_ARG_ENABLE(all-clocks,
+ AC_HELP_STRING([--enable-all-clocks], [+ include all suitable non-PARSE clocks:]),
[ntp_eac=$enableval], [ntp_eac=yes])
AC_MSG_RESULT($ntp_eac)
# Requires modem control
AC_MSG_CHECKING(ACTS modem service)
-AC_ARG_ENABLE(ACTS, [ --enable-ACTS + ACTS modem service],
+AC_ARG_ENABLE(ACTS,
+ AC_HELP_STRING([--enable-ACTS], [+ ACTS modem service]),
[ntp_ok=$enableval],
[AC_EGREP_CPP(yes,
[#include <termios.h>
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(Arbiter 1088A/B GPS receiver)
-AC_ARG_ENABLE(ARBITER, [ --enable-ARBITER + Arbiter 1088A/B GPS receiver],
+AC_ARG_ENABLE(ARBITER,
+ AC_HELP_STRING([--enable-ARBITER], [+ Arbiter 1088A/B GPS receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(Arcron MSF receiver)
-AC_ARG_ENABLE(ARCRON_MSF, [ --enable-ARCRON-MSF + Arcron MSF receiver],
+AC_ARG_ENABLE(ARCRON_MSF,
+ AC_HELP_STRING([--enable-ARCRON-MSF], [+ Arcron MSF receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
fi
AC_MSG_RESULT($ntp_ok)
+AC_MSG_CHECKING(Austron 2200A/2201A GPS receiver)
+AC_ARG_ENABLE(AS2201,
+ AC_HELP_STRING([--enable-AS2201], [+ Austron 2200A/2201A GPS receiver]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+if test "$ntp_ok" = "yes"; then
+ ntp_refclock=yes
+ AC_DEFINE(CLOCK_AS2201)
+fi
+AC_MSG_RESULT($ntp_ok)
+
AC_MSG_CHECKING(ATOM PPS interface)
-AC_ARG_ENABLE(ATOM, [ --enable-ATOM s ATOM PPS interface],
+AC_ARG_ENABLE(ATOM,
+ AC_HELP_STRING([--enable-ATOM], [s ATOM PPS interface]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
case "$ac_cv_var_atom_ok" in
no) ntp_ok=no ;;
fi
AC_MSG_RESULT($ntp_ok)
-AC_MSG_CHECKING(Austron 2200A/2201A GPS receiver)
-AC_ARG_ENABLE(AS2201, [ --enable-AS2201 + Austron 2200A/2201A GPS receiver],
+AC_MSG_CHECKING(Chrono-log K-series WWVB receiver)
+AC_ARG_ENABLE(CHRONOLOG,
+ AC_HELP_STRING([--enable-CHRONOLOG], [+ Chrono-log K-series WWVB receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
- AC_DEFINE(CLOCK_AS2201)
+ AC_DEFINE(CLOCK_CHRONOLOG)
fi
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(CHU modem/decoder)
-AC_ARG_ENABLE(CHU, [ --enable-CHU - CHU modem/decoder],
+AC_ARG_ENABLE(CHU,
+ AC_HELP_STRING([--enable-CHU], [- CHU modem/decoder]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
ac_refclock_chu=$ntp_ok
AC_MSG_CHECKING(CHU audio/decoder)
-AC_ARG_ENABLE(AUDIO-CHU, [ --enable-AUDIO-CHU s CHU audio/decoder],
+AC_ARG_ENABLE(AUDIO-CHU,
+ AC_HELP_STRING([--enable-AUDIO-CHU], [s CHU audio/decoder]),
[ntp_ok=$enableval],
[case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
*no*) ntp_ok=no ;;
# Not under HP-UX
AC_MSG_CHECKING(Datum Programmable Time System)
-AC_ARG_ENABLE(DATUM, [ --enable-DATUM s Datum Programmable Time System],
+AC_ARG_ENABLE(DATUM,
+ AC_HELP_STRING([--enable-DATUM], [s Datum Programmable Time System]),
[ntp_ok=$enableval],
[case "$ac_cv_header_termios_h" in
yes)
fi
AC_MSG_RESULT($ntp_ok)
+AC_MSG_CHECKING(Dumb generic hh:mm:ss local clock)
+AC_ARG_ENABLE(DUMBCLOCK,
+ AC_HELP_STRING([--enable-DUMBCLOCK], [+ Dumb generic hh:mm:ss local clock]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+if test "$ntp_ok" = "yes"; then
+ ntp_refclock=yes
+ AC_DEFINE(CLOCK_DUMBCLOCK)
+fi
+AC_MSG_RESULT($ntp_ok)
+
AC_MSG_CHECKING(Forum Graphic GPS)
-AC_ARG_ENABLE(FG, [ --enable-FG + Forum Graphic GPS],
+AC_ARG_ENABLE(FG,
+ AC_HELP_STRING([--enable-FG], [+ Forum Graphic GPS]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
# Requires modem control
AC_MSG_CHECKING(Heath GC-1000 WWV/WWVH receiver)
-AC_ARG_ENABLE(HEATH, [ --enable-HEATH s Heath GC-1000 WWV/WWVH receiver],
+AC_ARG_ENABLE(HEATH,
+ AC_HELP_STRING([--enable-HEATH], [s Heath GC-1000 WWV/WWVH receiver]),
[ntp_ok=$enableval],
[AC_EGREP_CPP(yes,
[#include <termios.h>
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(for hopf serial clock device)
-AC_ARG_ENABLE(HOPFSERIAL, [ --enable-HOPFSERIAL + hopf serial clock device],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
- if test "$ntp_ok" = "yes"; then
- ntp_refclock=yes
- AC_DEFINE(CLOCK_HOPF_SERIAL)
- fi
- AC_MSG_RESULT($ntp_ok)
+AC_ARG_ENABLE(HOPFSERIAL,
+ AC_HELP_STRING([--enable-HOPFSERIAL], [+ hopf serial clock device]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+if test "$ntp_ok" = "yes"; then
+ ntp_refclock=yes
+ AC_DEFINE(CLOCK_HOPF_SERIAL)
+fi
+AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(for hopf PCI clock 6039)
-AC_ARG_ENABLE(HOPFPCI, [ --enable-HOPFPCI + hopf 6039 PCI board],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+AC_ARG_ENABLE(HOPFPCI,
+ AC_HELP_STRING([--enable-HOPFPCI], [+ hopf 6039 PCI board]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_DEFINE(CLOCK_HOPF_PCI)
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(HP 58503A GPS receiver)
-AC_ARG_ENABLE(HPGPS, [ --enable-HPGPS + HP 58503A GPS receiver],
+AC_ARG_ENABLE(HPGPS,
+ AC_HELP_STRING([--enable-HPGPS], [+ HP 58503A GPS receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(Sun IRIG audio decoder)
-AC_ARG_ENABLE(IRIG, [ --enable-IRIG s Sun IRIG audio decoder],
+AC_ARG_ENABLE(IRIG,
+ AC_HELP_STRING([--enable-IRIG], [s Sun IRIG audio decoder]),
[ntp_ok=$enableval],
[case "$ntp_eac$ntp_canaudio" in
*no*) ntp_ok=no ;;
esac
AC_MSG_CHECKING(for JJY receiver)
-AC_ARG_ENABLE(JJY, [ --enable-JJY + JJY receiver],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+AC_ARG_ENABLE(JJY,
+ AC_HELP_STRING([--enable-JJY], [+ JJY receiver]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_DEFINE(CLOCK_JJY)
fi
AC_MSG_RESULT($ntp_ok)
+# Not Ultrix
+AC_MSG_CHECKING(Rockwell Jupiter GPS receiver)
+AC_ARG_ENABLE(JUPITER,
+ AC_HELP_STRING([--enable-JUPITER], [s Rockwell Jupiter GPS receiver]),
+ [ntp_ok=$enableval],
+ [case "$ac_cv_var_ppsclock" in
+# yes) ntp_ok=$ntp_eac
+# ;;
+ *) ntp_ok=no
+ ;;
+ esac])
+if test "$ntp_ok" = "yes"; then
+ ntp_refclock=yes
+ AC_DEFINE(CLOCK_JUPITER)
+fi
+AC_MSG_RESULT($ntp_ok)
+case "$ntp_ok$host" in
+ yes*-*-ultrix*) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
+esac
+
AC_MSG_CHECKING(Leitch CSD 5300 Master Clock System Driver)
-AC_ARG_ENABLE(LEITCH, [ --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver],
+AC_ARG_ENABLE(LEITCH,
+ AC_HELP_STRING([--enable-LEITCH], [+ Leitch CSD 5300 Master Clock System Driver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(local clock reference)
-AC_ARG_ENABLE(LOCAL-CLOCK, [ --enable-LOCAL-CLOCK + local clock reference],
+AC_ARG_ENABLE(LOCAL-CLOCK,
+ AC_HELP_STRING([--enable-LOCAL-CLOCK], [+ local clock reference]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(EES M201 MSF receiver)
-AC_ARG_ENABLE(MSFEES, [ --enable-MSFEES + EES M201 MSF receiver],
+AC_ARG_ENABLE(MSFEES,
+ AC_HELP_STRING([--enable-MSFEES], [+ EES M201 MSF receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
# Not Ultrix
AC_MSG_CHECKING(Magnavox MX4200 GPS receiver)
-AC_ARG_ENABLE(MX4200, [ --enable-MX4200 s Magnavox MX4200 GPS receiver],
+AC_ARG_ENABLE(MX4200,
+ AC_HELP_STRING([--enable-MX4200 ], [s Magnavox MX4200 GPS receiver]),
[ntp_ok=$enableval],
[case "$ac_cv_var_ppsclock" in
yes) ntp_ok=$ntp_eac
AC_DEFINE(CLOCK_MX4200)
fi
AC_MSG_RESULT($ntp_ok)
-case "$ntp_ok$target" in
+case "$ntp_ok$host" in
yes*-*-ultrix*) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
esac
AC_MSG_CHECKING(NMEA GPS receiver)
-AC_ARG_ENABLE(NMEA, [ --enable-NMEA + NMEA GPS receiver],
+AC_ARG_ENABLE(NMEA,
+ AC_HELP_STRING([--enable-NMEA], [+ NMEA GPS receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(for ONCORE Motorola VP/UT Oncore GPS)
-AC_ARG_ENABLE(ONCORE, [ --enable-ONCORE s Motorola VP/UT Oncore GPS receiver],
+AC_ARG_ENABLE(ONCORE,
+ AC_HELP_STRING([--enable-ONCORE], [s Motorola VP/UT Oncore GPS receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
case "$ac_cv_var_oncore_ok" in
no) ntp_ok=no ;;
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(for Palisade clock)
-AC_ARG_ENABLE(PALISADE, [ --enable-PALISADE + Palisade clock],
+AC_ARG_ENABLE(PALISADE,
+ AC_HELP_STRING([--enable-PALISADE], [+ Palisade clock]),
[ntp_ok=$enableval],
[case "$ac_cv_header_termios_h" in
yes)
fi
AC_MSG_RESULT($ntp_ok)
-AC_MSG_CHECKING(PST/Traconex 1020 WWV/WWVH receiver)
-AC_ARG_ENABLE(PST, [ --enable-PST + PST/Traconex 1020 WWV/WWVH receiver],
+AC_MSG_CHECKING(Conrad parallel port radio clock)
+AC_ARG_ENABLE(PCF,
+ AC_HELP_STRING([--enable-PCF ], [+ Conrad parallel port radio clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
- AC_DEFINE(CLOCK_PST)
+ AC_DEFINE(CLOCK_PCF)
fi
AC_MSG_RESULT($ntp_ok)
-# Not Ultrix
-AC_MSG_CHECKING(Rockwell Jupiter GPS receiver)
-AC_ARG_ENABLE(JUPITER, [ --enable-JUPITER s Rockwell Jupiter GPS receiver],
- [ntp_ok=$enableval],
- [case "$ac_cv_var_ppsclock" in
-# yes) ntp_ok=$ntp_eac
-# ;;
- *) ntp_ok=no
- ;;
- esac])
+AC_MSG_CHECKING(PST/Traconex 1020 WWV/WWVH receiver)
+AC_ARG_ENABLE(PST,
+ AC_HELP_STRING([--enable-PST], [+ PST/Traconex 1020 WWV/WWVH receiver]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
- AC_DEFINE(CLOCK_JUPITER)
+ AC_DEFINE(CLOCK_PST)
fi
AC_MSG_RESULT($ntp_ok)
-case "$ntp_ok$target" in
- yes*-*-ultrix*) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
-esac
# Requires modem control
AC_MSG_CHECKING(PTB modem service)
-AC_ARG_ENABLE(PTBACTS, [ --enable-PTBACTS s PTB modem service],
+AC_ARG_ENABLE(PTBACTS,
+ AC_HELP_STRING([--enable-PTBACTS], [s PTB modem service]),
[ntp_ok=$enableval],
[AC_EGREP_CPP(yes,
[#include <termios.h>
fi
AC_MSG_RESULT($ntp_ok)
+AC_MSG_CHECKING(Spectracom 8170/Netclock/2 WWVB receiver)
+AC_ARG_ENABLE(SPECTRACOM,
+ AC_HELP_STRING([--enable-SPECTRACOM], [+ Spectracom 8170/Netclock/2 WWVB receiver]),
+ [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+if test "$ntp_ok" = "yes"; then
+ ntp_refclock=yes
+ AC_DEFINE(CLOCK_SPECTRACOM)
+fi
+AC_MSG_RESULT($ntp_ok)
+
AC_MSG_CHECKING(KSI/Odetics TPRO/S GPS receiver/IRIG interface)
-AC_ARG_ENABLE(TPRO, [ --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface],
+AC_ARG_ENABLE(TPRO,
+ AC_HELP_STRING([--enable-TPRO], [s KSI/Odetics TPRO/S GPS receiver/IRIG interface]),
[ntp_ok=$enableval],
[case "$ac_cv_header_sys_tpro_h" in
yes)
esac
AC_MSG_CHECKING(TRAK 8810 GPS receiver)
-AC_ARG_ENABLE(TRAK, [ --enable-TRAK + TRAK 8810 GPS receiver],
+AC_ARG_ENABLE(TRAK,
+ AC_HELP_STRING([--enable-TRAK], [+ TRAK 8810 GPS receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
fi
AC_MSG_RESULT($ntp_ok)
-AC_MSG_CHECKING(Chrono-log K-series WWVB receiver)
-AC_ARG_ENABLE(CHRONOLOG, [ --enable-CHRONOLOG + Chrono-log K-series WWVB receiver],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
-if test "$ntp_ok" = "yes"; then
- ntp_refclock=yes
- AC_DEFINE(CLOCK_CHRONOLOG)
-fi
-AC_MSG_RESULT($ntp_ok)
-
-AC_MSG_CHECKING(Dumb generic hh:mm:ss local clock)
-AC_ARG_ENABLE(DUMBCLOCK, [ --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
-if test "$ntp_ok" = "yes"; then
- ntp_refclock=yes
- AC_DEFINE(CLOCK_DUMBCLOCK)
-fi
-AC_MSG_RESULT($ntp_ok)
-
-AC_MSG_CHECKING(Conrad parallel port radio clock)
-AC_ARG_ENABLE(PCF, [ --enable-PCF + Conrad parallel port radio clock],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
-if test "$ntp_ok" = "yes"; then
- ntp_refclock=yes
- AC_DEFINE(CLOCK_PCF)
-fi
-AC_MSG_RESULT($ntp_ok)
-
-AC_MSG_CHECKING(Spectracom 8170/Netclock/2 WWVB receiver)
-AC_ARG_ENABLE(SPECTRACOM, [ --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver],
- [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
-if test "$ntp_ok" = "yes"; then
- ntp_refclock=yes
- AC_DEFINE(CLOCK_SPECTRACOM)
-fi
-AC_MSG_RESULT($ntp_ok)
-
# Not on a vax-dec-bsd
AC_MSG_CHECKING(Kinemetrics/TrueTime receivers)
-AC_ARG_ENABLE(TRUETIME, [ --enable-TRUETIME s Kinemetrics/TrueTime receivers],
+AC_ARG_ENABLE(TRUETIME,
+ AC_HELP_STRING([--enable-TRUETIME], [s Kinemetrics/TrueTime receivers]),
[ntp_ok=$enableval],
- [case "$target" in
+ [case "$host" in
vax-dec-bsd)
ntp_ok=no
;;
AC_DEFINE(CLOCK_TRUETIME)
fi
AC_MSG_RESULT($ntp_ok)
-case "$ntp_ok$target" in
+case "$ntp_ok$host" in
yesvax-dec-bsd) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
esac
AC_MSG_RESULT($ntp_ok)
AC_MSG_CHECKING(Ultralink M320 WWVB receiver)
-AC_ARG_ENABLE(ULINK, [ --enable-ULINK + Ultralink WWVB receiver],
+AC_ARG_ENABLE(ULINK,
+ AC_HELP_STRING([--enable-ULINK], [+ Ultralink WWVB receiver]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eac])
if test "$ntp_ok" = "yes"; then
ntp_refclock=yes
fi
AC_MSG_RESULT($ntp_ok)
-AC_MSG_CHECKING(WWV receiver)
-AC_ARG_ENABLE(WWV, [ --enable-WWV + WWV Audio receiver],
- [ntp_ok=$enableval],
- [case "$ntp_eac$ntp_canaudio" in
- *no*) ntp_ok=no ;;
- *) ntp_ok=yes ;;
- esac])
-if test "$ntp_ok" = "yes"; then
- ntp_refclock=yes
- AC_DEFINE(CLOCK_WWV)
-fi
-AC_MSG_RESULT($ntp_ok)
-case "$ntp_ok$ntp_canaudio" in
- yesno) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
-esac
-
# Requires modem control
AC_MSG_CHECKING(USNO modem service)
-AC_ARG_ENABLE(USNO, [ --enable-USNO s USNO modem service],
+AC_ARG_ENABLE(USNO,
+ AC_HELP_STRING([--enable-USNO], [s USNO modem service]),
[ntp_ok=$enableval],
[AC_EGREP_CPP(yes,
[#include <termios.h>
fi
AC_MSG_RESULT($ntp_ok)
+AC_MSG_CHECKING(WWV receiver)
+AC_ARG_ENABLE(WWV,
+ AC_HELP_STRING([--enable-WWV], [+ WWV Audio receiver]),
+ [ntp_ok=$enableval],
+ [case "$ntp_eac$ntp_canaudio" in
+ *no*) ntp_ok=no ;;
+ *) ntp_ok=yes ;;
+ esac])
+if test "$ntp_ok" = "yes"; then
+ ntp_refclock=yes
+ AC_DEFINE(CLOCK_WWV)
+fi
+AC_MSG_RESULT($ntp_ok)
+case "$ntp_ok$ntp_canaudio" in
+ yesno) AC_MSG_WARN(*** But the expected answer is... no ***) ;;
+esac
+
AC_MSG_CHECKING(for Zyfer receiver)
AC_ARG_ENABLE(ZYFER,
AC_HELP_STRING([--enable-ZYFER], [+ Zyfer GPStarplus receiver]),
fi
AC_MSG_RESULT($ntp_ok)
+
AC_MSG_CHECKING(for default inclusion of all suitable PARSE clocks)
AC_ARG_ENABLE(parse-clocks, [ --enable-parse-clocks - include all suitable PARSE clocks:],
[ntp_eapc=$enableval],
ntp_rawdcf=no
AC_MSG_CHECKING(Diem Computime Radio Clock)
-AC_ARG_ENABLE(COMPUTIME, [ --enable-COMPUTIME s Diem Computime Radio Clock],
+AC_ARG_ENABLE(COMPUTIME,
+ AC_HELP_STRING([--enable-COMPUTIME], [s Diem Computime Radio Clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(ELV/DCF7000 clock)
-AC_ARG_ENABLE(DCF7000, [ --enable-DCF7000 s ELV/DCF7000 clock],
+AC_ARG_ENABLE(DCF7000,
+ AC_HELP_STRING([--enable-DCF7000], [s ELV/DCF7000 clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(HOPF 6021 clock)
-AC_ARG_ENABLE(HOPF6021, [ --enable-HOPF6021 s HOPF 6021 clock],
+AC_ARG_ENABLE(HOPF6021,
+ AC_HELP_STRING([--enable-HOPF6021 ], [s HOPF 6021 clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(Meinberg clocks)
-AC_ARG_ENABLE(MEINBERG, [ --enable-MEINBERG s Meinberg clocks],
+AC_ARG_ENABLE(MEINBERG,
+ AC_HELP_STRING([--enable-MEINBERG], [s Meinberg clocks]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(DCF77 raw time code)
-AC_ARG_ENABLE(RAWDCF, [ --enable-RAWDCF s DCF77 raw time code],
+AC_ARG_ENABLE(RAWDCF,
+ AC_HELP_STRING([--enable-RAWDCF], [s DCF77 raw time code]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
AC_CACHE_CHECK(if we must enable parity for RAWDCF,
ac_cv_var_rawdcf_parity,
[ans=no
- case "$target" in
+ case "$host" in
*-*-linux*)
ans=yes
;;
esac
AC_MSG_CHECKING(RCC 8000 clock)
-AC_ARG_ENABLE(RCC8000, [ --enable-RCC8000 s RCC 8000 clock],
+AC_ARG_ENABLE(RCC8000,
+ AC_HELP_STRING([--enable-RCC8000], [s RCC 8000 clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(Schmid DCF77 clock)
-AC_ARG_ENABLE(SCHMID, [ --enable-SCHMID s Schmid DCF77 clock],
+AC_ARG_ENABLE(SCHMID,
+ AC_HELP_STRING([--enable-SCHMID ], [s Schmid DCF77 clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(Trimble GPS receiver/TAIP protocol)
-AC_ARG_ENABLE(TRIMTAIP, [ --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol],
+AC_ARG_ENABLE(TRIMTAIP,
+ AC_HELP_STRING([--enable-TRIMTAIP], [s Trimble GPS receiver/TAIP protocol]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(Trimble GPS receiver/TSIP protocol)
-AC_ARG_ENABLE(TRIMTSIP, [ --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol],
+AC_ARG_ENABLE(TRIMTSIP,
+ AC_HELP_STRING([--enable-TRIMTSIP], [s Trimble GPS receiver/TSIP protocol]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(WHARTON 400A Series clock)
-AC_ARG_ENABLE(WHARTON, [ --enable-WHARTON s WHARTON 400A Series clock],
+AC_ARG_ENABLE(WHARTON,
+ AC_HELP_STRING([--enable-WHARTON], [s WHARTON 400A Series clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_CHECKING(VARITEXT clock)
-AC_ARG_ENABLE(VARITEXT, [ --enable-VARITEXT s VARITEXT clock],
+AC_ARG_ENABLE(VARITEXT,
+ AC_HELP_STRING([--enable-VARITEXT], [s VARITEXT clock]),
[ntp_ok=$enableval], [ntp_ok=$ntp_eapc])
if test "$ntp_ok" = "yes"; then
ntp_libparse=yes
esac
AC_MSG_RESULT($ans)
-AC_MSG_CHECKING(for the level of crypto support)
AC_ARG_WITH(crypto,
AC_HELP_STRING([--with-crypto], [+ ={autokey,rsaref}]),
dnl AC_HELP_STRING([--with-crypto], [+ ={autokey,openssl,rsaref}]),
AUTOKEY=1
;;
esac
+AC_MSG_CHECKING(for the level of crypto support)
AC_MSG_RESULT($ans)
AC_MSG_CHECKING(if we want to compile with ElectricFence)
AC_MSG_CHECKING(if we can make dcf parse utilities)
ans=no
if test "$ntp_parseutil" = "yes"; then
- case "$target" in
+ case "$host" in
*-*-sunos4*|*-*-solaris2*|*-*-linux*)
ans="dcfd testdcf"
DCFD=dcfd
ans=no
case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
yesyes)
- case "$target" in
+ case "$host" in
sparc-*-sunos4*)
case "$ac_cv_var_kernel_pll" in
yes)
AC_SUBST(MAKE_ADJTIMED)
AC_MSG_CHECKING(if we want HP-UX adjtimed support)
-case "$target" in
+case "$host" in
*-*-hpux[[56789]]*)
ans=yes
;;
fi
AC_MSG_RESULT($ans)
+AC_MSG_CHECKING(if we want QNX adjtime support)
+case "$host" in
+ *-*-qnx*)
+ ans=yes
+ ;;
+ *) ans=no
+ ;;
+esac
+if test "$ans" = "yes"; then
+ AC_DEFINE(NEED_QNX_ADJTIME, 1, [Do we need the qnx adjtime call?])
+fi
+AC_MSG_RESULT($ans)
+
AC_CACHE_CHECK(if we can read kmem, ac_cv_var_can_kmem,
[AC_ARG_ENABLE(kmem, [ --enable-kmem s read /dev/kmem for tick and/or tickadj],
[ans=$enableval],
*) ans=no
;;
esac
- case "$target" in
+ case "$host" in
*-*-aix*)
#ans=no
;;
[AC_ARG_ENABLE(accurate-adjtime, [ --enable-accurate-adjtime
s the adjtime() call is accurate],
[ans=$enableval],
- [case "$target" in
+ [case "$host" in
i386-sequent-ptx*)
ans=no
;;
AC_CACHE_CHECK([the name of 'tick' in the kernel],
ac_cv_var_nlist_tick,
[ans=_tick
-case "$target" in
+case "$host" in
m68*-hp-hpux*) # HP9000/300?
ans=_old_tick
;;
AC_CACHE_CHECK([for the units of 'tick'],
ac_cv_var_tick_nano,
[ans=usec
-case "$target" in
+case "$host" in
*-*-solaris2*)
ans=nsec
;;
AC_CACHE_CHECK([the name of 'tickadj' in the kernel],
ac_cv_var_nlist_tickadj,
[ans=_tickadj
-case "$target" in
+case "$host" in
m68*-hp-hpux*) # HP9000/300?
ans=_tickadj
;;
AC_CACHE_CHECK([for the units of 'tickadj'],
ac_cv_var_tickadj_nano,
[ans=usec
-case "$target" in
+case "$host" in
*-*-solaris2*)
ans=nsec
;;
#
AC_CACHE_CHECK([half-heartedly for 'dosynctodr' in the kernel],
ac_cv_var_nlist_dosynctodr,
-[case "$target" in
+[case "$host" in
*-apple-aux[[23]]*)
ans=no
;;
#
AC_CACHE_CHECK([half-heartedly for 'noprintf' in the kernel],
ac_cv_var_nlist_noprintf,
-[case "$target" in
+[case "$host" in
*-apple-aux[[23]]*)
ans=no
;;
[AC_ARG_ENABLE(tick, [ --enable-tick=VALUE s force a value for 'tick'],
[ans=$enableval],
[ans=no
- case "$target" in
+ case "$host" in
XXX-*-pc-cygwin*)
;;
*-univel-sysv*)
[AC_ARG_ENABLE(tickadj, [ --enable-tickadj=VALUE s force a value for 'tickadj'],
[ans=$enableval],
[ans='500/hz'
- case "$target" in
+ case "$host" in
*-fujitsu-uxp*)
case "$ac_cv_var_adjtime_is_accurate" in
yes) ans='tick/16' ;;
# 1/100s (system tick). Sigh ...
# Unfortunately, there is no easy way to know if particular release
# has this "feature" or any obvious way to test for it.
-case "$target" in
+case "$host" in
mips-sni-sysv4*) AC_DEFINE(RELIANTUNIX_CLOCK) ;;
esac
-case "$target" in
+case "$host" in
*-*-sco3.2v5*) AC_DEFINE(SCO5_CLOCK) ;;
esac
AC_SUBST(MAKE_NTPTIME)
AC_CACHE_CHECK(if we want and can make the ntptime utility, ac_cv_make_ntptime,
-[case "$target" in
+[case "$host" in
*) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
yesyes)
ans=yes
esac
AC_SUBST(MAKE_TICKADJ)
-case "$target" in
+case "$host" in
mips-sni-sysv4*)
# tickadj is pretty useless on newer versions of ReliantUNIX
# Do not bother
;;
*-*-solaris2*)
# DLM says tickadj is a no-no starting with solaris2.5
- case "$target" in
+ case "$host" in
*-*-solaris2.[0-4]*) ;;
*) ac_cv_make_tickadj=no ;;
esac
AC_SUBST(MAKE_TIMETRIM)
AC_CACHE_CHECK(if we want and can make the timetrim utility, ac_cv_make_timetrim,
-[case "$target" in
+[case "$host" in
*-*-irix*)
ac_cv_make_timetrim=yes
;;
[AC_ARG_ENABLE(udp-wildcard, [ --enable-udp-wildcard s use UDP wildcard delivery],
[ans=$enableval],
[ans=no
- case "$target" in
+ case "$host" in
*-fujitsu-uxp*)
ans=yes
;;
yes) AC_DEFINE(UDP_WILDCARD_DELIVERY) ;;
esac
-case "$host" in
- $target)
+case "$build" in
+ $host)
;;
- *) case "$target" in
+ *) case "$host" in
*-*-vxworks*)
LDFLAGS="$LDFLAGS -r"
;;
AC_CACHE_CHECK(if we should always slew the time, ac_cv_var_slew_always,
[AC_ARG_ENABLE(slew-always, [ --enable-slew-always s always slew the time],
[ans=$enableval],
- [case "$target" in
+ [case "$host" in
*-apple-aux[[23]]*)
ans=yes
;;
AC_CACHE_CHECK(if we should step and slew the time, ac_cv_var_step_slew,
[AC_ARG_ENABLE(step-slew, [ --enable-step-slew s step and slew the time],
[ans=$enableval],
- [case "$target" in
+ [case "$host" in
*-sni-sysv*)
ans=yes
;;
AC_CACHE_CHECK(if ntpdate should step the time, ac_cv_var_ntpdate_step,
[AC_ARG_ENABLE(ntpdate-step, [ --enable-ntpdate-step s if ntpdate should step the time],
[ans=$enableval],
- [case "$target" in
+ [case "$host" in
*-apple-aux[[23]]*)
ans=yes
;;
[AC_ARG_ENABLE(hourly-todr-sync, [ --enable-hourly-todr-sync
s if we should sync TODR hourly],
[ans=$enableval],
- [case "$target" in
+ [case "$host" in
*-*-nextstep*)
ans=yes
;;
AC_CACHE_CHECK(if we should avoid kernel FLL bug, ac_cv_var_kernel_fll_bug,
[AC_ARG_ENABLE(kernel-fll-bug, [ --enable-kernel-fll-bug s if we should avoid a kernel FLL bug],
[ans=$enableval],
- [case "$target" in
+ [case "$host" in
*-*-solaris2.6)
unamev=`uname -v`
case "$unamev" in
yes) AC_DEFINE(KERNEL_FLL_BUG) ;;
esac
-case "$host" in
- $target)
+case "$build" in
+ $host)
;;
- *) case "$target" in
+ *) case "$host" in
*-*-vxworks*)
LDFLAGS="$LDFLAGS -r"
;;
## the ANSI2KNR-filtering rules.
#LIB@&t@OBJS=`echo "$LIB@&t@OBJS" | sed 's,\.[[^.]]* ,$U&,g;s,\.[[^.]]*$,$U&,'`
-AC_CONFIG_FILES(Makefile adjtimed/Makefile clockstuff/Makefile \
-ElectricFence/Makefile
-include/Makefile kernel/Makefile kernel/sys/Makefile libntp/Makefile \
-libparse/Makefile librsaref/Makefile ntpd/Makefile ntpdc/Makefile \
-ntpdate/Makefile ntpq/Makefile ntptrace/Makefile parseutil/Makefile \
-scripts/Makefile scripts/calc_tickadj scripts/checktime scripts/freq_adj \
-scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver \
-scripts/plot_summary scripts/summary util/Makefile)
+AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES(ElectricFence/Makefile)
+AC_CONFIG_FILES(adjtimed/Makefile)
+AC_CONFIG_FILES(clockstuff/Makefile)
+AC_CONFIG_FILES(include/Makefile)
+AC_CONFIG_FILES(kernel/Makefile)
+AC_CONFIG_FILES(kernel/sys/Makefile)
+AC_CONFIG_FILES(libntp/Makefile)
+AC_CONFIG_FILES(libparse/Makefile)
+AC_CONFIG_FILES(librsaref/Makefile)
+AC_CONFIG_FILES(ntpd/Makefile)
+AC_CONFIG_FILES(ntpdate/Makefile)
+AC_CONFIG_FILES(ntpdc/Makefile)
+AC_CONFIG_FILES(ntpq/Makefile)
+AC_CONFIG_FILES(ntptrace/Makefile)
+AC_CONFIG_FILES(parseutil/Makefile)
+AC_CONFIG_FILES(scripts/Makefile)
+AC_CONFIG_FILES(scripts/calc_tickadj)
+AC_CONFIG_FILES(scripts/checktime)
+AC_CONFIG_FILES(scripts/freq_adj)
+AC_CONFIG_FILES(scripts/mkver)
+AC_CONFIG_FILES(scripts/ntp-wait)
+AC_CONFIG_FILES(scripts/ntpsweep)
+AC_CONFIG_FILES(scripts/ntpver)
+AC_CONFIG_FILES(scripts/plot_summary)
+AC_CONFIG_FILES(scripts/summary)
+AC_CONFIG_FILES(util/Makefile)
+
AC_CONFIG_COMMANDS(default, [[chmod +x scripts/calc_tickadj scripts/checktime scripts/freq_adj scripts/mkver scripts/ntp-wait scripts/ntpsweep scripts/ntpver scripts/plot_summary scripts/summary]], [])
+
AC_OUTPUT
-#test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])