* [Bug 2886] Mis-spelling: "outlyer" should be "outlier". dave@horsfall.org
* [Bug 2889] ntp-dev-4.3.67 does not build on Windows. perlinger@ntp.org
* [Bug 2890] Ignore ENOBUFS on routing netlink socket. Konstantin Khlebnikov.
+* [Bug 2906] make check needs better support for pthreads. Harlan Stenn.
* [Bug 2907] dist* build targets require our libevent/ to be enabled. HStenn.
* libntp/emalloc.c: Remove explicit include of stdint.h. Harlan Stenn.
* Put Unity CPPFLAGS items in unity_config.h. Harlan Stenn.
ntp_libevent_min_version=m4_default([$1], [2.0.9])
ntp_libevent_tearoff=m4_default([$2], [libevent])
+AC_SUBST([CFLAGS_LIBEVENT])
AC_SUBST([CPPFLAGS_LIBEVENT])
AC_SUBST([LDADD_LIBEVENT])
then
ntp_use_local_libevent=no
AC_MSG_NOTICE([Using the installed libevent])
+ CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
# HMS: I hope the following is accurate.
# We don't need -levent, we only need -levent_core.
fileHandlingTest.c \
$(NULL)
+test_crypto_CFLAGS = \
+ $(CFLAGS_LIBEVENT) \
+ $(AM_CFLAGS) \
+ $(NULL)
+
test_crypto_SOURCES = \
crypto.c \
run-crypto.c \
###
-test_caltontp_LDADD = \
- $(LDADD) \
- -lpthread \
+test_caltontp_CFLAGS = \
+ $(CFLAGS_LIBEVENT) \
+ $(AM_CFLAGS) \
$(NULL)
test_caltontp_SOURCES = \
###
-test_caljulian_LDADD = \
- $(LDADD) \
- -lpthread \
+test_caljulian_CFLAGS = \
+ $(CFLAGS_LIBEVENT) \
+ $(AM_CFLAGS) \
$(NULL)
test_caljulian_SOURCES = \
###
-test_decodenetnum_LDADD = \
- $(LDADD) \
- -lpthread \
+test_decodenetnum_CFLAGS = \
+ $(CFLAGS_LIBEVENT) \
+ $(AM_CFLAGS) \
$(NULL)
test_decodenetnum_SOURCES = \
###
-test_strtolfp_LDADD = \
- $(LDADD) \
- -lpthread \
+test_strtolfp_CFLAGS = \
+ $(CFLAGS_LIBEVENT) \
+ $(AM_CFLAGS) \
$(NULL)
test_strtolfp_SOURCES = \
test-ntp_scanner \
$(NULL)
-# test-ntp_signd \ #doesn't work, can't link it because you can't link static function
+EXTRA_PROGRAMS = \
+ test-ntp_signd \ #doesn't work, can't link it because you can't link static function
+ $(NULL)
if GTEST_AVAILABLE
check_PROGRAMS += tests
else
-EXTRA_PROGRAMS = tests
+EXTRA_PROGRAMS += tests
endif
LDADD = \