]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2686] refclock_gpsdjson needs strtoll(), which is not always present
authorHarlan Stenn <stenn@ntp.org>
Fri, 12 Dec 2014 08:49:58 +0000 (08:49 +0000)
committerHarlan Stenn <stenn@ntp.org>
Fri, 12 Dec 2014 08:49:58 +0000 (08:49 +0000)
bk: 548aac36IWKrxo3fzjZFLjVI2OIU8A

ChangeLog
configure.ac

index 18e431ea0dc0459cfca57b46302f4e0fb3fb7fa7..b21dae7d4747bf6f24bc9ce713b893b3b94c2dce 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 2686] refclock_gpsdjson needs strtoll(), which is not always present.
 (4.2.7p484-RC) 2014/12/11 Released by Harlan Stenn <stenn@ntp.org>
 (4.2.7p483) 2014/12/08 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 2685] Better document the KOD file for sntp.
index 1044d8c61e9a89c015568e87e329cf06bb0c8369..82c6795d1993f2a61576d9e3afcfaeccea2f87d4 100644 (file)
@@ -2343,6 +2343,7 @@ case "$ntp_ok" in
 esac
 AC_MSG_RESULT([$ntp_ok])
 
+AC_CHECK_FUNCS([strtoll])
 AC_MSG_CHECKING([for GPSD JSON receiver])
 AC_ARG_ENABLE(
     [GPSD],
@@ -2351,7 +2352,10 @@ AC_ARG_ENABLE(
        [+ GPSD JSON receiver]
     )],
     [ntp_ok=$enableval],
-    [ntp_ok=$ntp_eac]
+    [case "$ac_cv_func_strtoll" in
+     yes) ntp_ok=$ntp_eac ;;
+     *)   ntp_ok="no" ;;
+    esac]
 )
 case "$ntp_ok" in
  yes)