build-sys: Don't build srbchannel-test on targets without srbchannel

Reported-by: Felipe Sateler <fsateler@debian.org>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
David Henningsson 2014-12-02 09:22:47 +01:00
parent 13a3daa928
commit 580f468900
2 changed files with 6 additions and 1 deletions

View file

@ -449,6 +449,7 @@ AC_CHECK_HEADERS_ONCE([execinfo.h])
AC_CHECK_HEADERS_ONCE([langinfo.h])
AC_CHECK_HEADERS_ONCE([regex.h pcreposix.h])
AM_CONDITIONAL(HAVE_SYS_EVENTFD_H, test "x$ac_cv_header_sys_eventfd_h" = "xyes")
#### Typdefs, structures, etc. ####

View file

@ -288,11 +288,15 @@ TESTS_daemon = \
if !OS_IS_WIN32
TESTS_default += \
srbchannel-test \
sigbus-test \
usergroup-test
endif
if HAVE_SYS_EVENTFD_H
TESTS_default += \
srbchannel-test
endif
if !OS_IS_DARWIN
TESTS_default += \
once-test