From: Harlan Stenn Date: Fri, 12 Dec 2014 08:49:58 +0000 (+0000) Subject: [Bug 2686] refclock_gpsdjson needs strtoll(), which is not always present X-Git-Tag: NTP_4_2_7P485_RC~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fa1c56e921dbe39301ee18cf9321790f4ecf27d;p=thirdparty%2Fntp.git [Bug 2686] refclock_gpsdjson needs strtoll(), which is not always present bk: 548aac36IWKrxo3fzjZFLjVI2OIU8A --- diff --git a/ChangeLog b/ChangeLog index 18e431ea0..b21dae7d4 100644 --- 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 (4.2.7p483) 2014/12/08 Released by Harlan Stenn * [Bug 2685] Better document the KOD file for sntp. diff --git a/configure.ac b/configure.ac index 1044d8c61..82c6795d1 100644 --- a/configure.ac +++ b/configure.ac @@ -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)