From b2ccf8dd31d1457ae9f0ae270054117179220370 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 7 Apr 2015 08:29:34 +0000 Subject: Imported from /home/lorry/working-area/delta_ntp/ntp-4.2.8p2.tar.gz. --- sntp/m4/ntp_libntp.m4 | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'sntp/m4/ntp_libntp.m4') diff --git a/sntp/m4/ntp_libntp.m4 b/sntp/m4/ntp_libntp.m4 index 13a621d..3aa3dff 100644 --- a/sntp/m4/ntp_libntp.m4 +++ b/sntp/m4/ntp_libntp.m4 @@ -78,6 +78,12 @@ esac AC_CHECK_FUNCS([getclock stime timegm strlcpy strlcat]) +# Bug 2713 +LDADD_LIBUTIL= +AC_SUBST([LDADD_LIBUTIL]) +HMS_SEARCH_LIBS([LDADD_LIBUTIL], [snprintb], [util], + [AC_DEFINE([USE_SNPRINTB], 1, [OK to use snprintb()?])]) + dnl HP-UX 11.31 on HPPA has a net/if.h that can't be compiled with gcc4 dnl due to an incomplete type (a union) mpinfou used in an array. gcc3 dnl compiles it without complaint. The mpinfou union is defined later @@ -872,13 +878,13 @@ AC_CACHE_CHECK( [for SIGIO], [ntp_cv_hdr_def_sigio], [AC_PREPROC_IFELSE( - [ + [AC_LANG_SOURCE([ #include #ifndef SIGIO # error #endif - ], + ])], [ntp_cv_hdr_def_sigio=yes], [ntp_cv_hdr_def_sigio=no] )] @@ -941,13 +947,13 @@ AC_CACHE_CHECK( [for SIGPOLL], [ntp_cv_hdr_def_sigpoll], [AC_PREPROC_IFELSE( - [ + [AC_LANG_SOURCE([ #include #ifndef SIGPOLL # error #endif - ], + ])], [ntp_cv_hdr_def_sigpoll=yes], [ntp_cv_hdr_def_sigpoll=no] )] -- cgit v1.2.1