]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Include Linux-specific refclock_tsyncpci.c in --enable-all-clocks only
authorDave Hart <hart@ntp.org>
Wed, 21 Mar 2012 03:04:51 +0000 (03:04 +0000)
committerDave Hart <hart@ntp.org>
Wed, 21 Mar 2012 03:04:51 +0000 (03:04 +0000)
  on Linux.
Clean up configure.ac m4 quoting, indents to match current style.

bk: 4f694553Vhfoxpeor2evfqyex-vtWg

configure.ac
ntpd/refclock_tsyncpci.c

index 2ee017387d66cb6ea26dcfe0c6a188e8bf7715aa..b3a6fa7ad383dfff18f4bb4798fe9a88824dc4de 100644 (file)
@@ -2425,14 +2425,27 @@ fi
 AC_MSG_RESULT([$ntp_ok])
 
 AC_MSG_CHECKING([Spectracom TSYNC PCI timing board])
-AC_ARG_ENABLE(TSYNCPCI,
-    AC_HELP_STRING([--enable-TSYNCPCI], [+ Spectracom TSYNC timing board]),
-    [ntp_ok=$enableval], [ntp_ok=$ntp_eac])
+case "$host" in
+ *-*-*linux*)
+    ntp_ok=$ntp_eac
+    ;;
+ *)
+    ntp_ok=no
+esac
+AC_ARG_ENABLE(
+    [TSYNCPCI],
+    [AS_HELP_STRING(
+       [--enable-TSYNCPCI],
+       [+ Spectracom TSYNC timing board]
+    )],
+    [ntp_ok=$enableval],
+    []
+)
 if test "$ntp_ok" = "yes"; then
     ntp_refclock=yes
-    AC_DEFINE(CLOCK_TSYNCPCI, 1, [Spectracom TSYNC timing board])
+    AC_DEFINE([CLOCK_TSYNCPCI], [1], [Spectracom TSYNC timing board])
 fi
-AC_MSG_RESULT($ntp_ok)
+AC_MSG_RESULT([$ntp_ok])
 
 AC_MSG_CHECKING([WWV receiver])
 AC_ARG_ENABLE(
index 1fe52f34b299fd9a0d07ea65ab818621ecbad4f7..a2370cefe3beaf7777bd3471de1139f33bae7ec2 100644 (file)
@@ -32,7 +32,9 @@
 #if defined(REFCLOCK) && defined(CLOCK_TSYNCPCI)
 
 #include <asm/ioctl.h>
-#include <sys/ioctl.h>
+#ifdef HAVE_SYS_IOCTL_H
+# include <sys/ioctl.h>
+#endif
 
 #include <stdio.h>
 #include <ctype.h>