diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-12-02 09:22:47 +0100 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2014-12-03 11:48:52 +0100 |
commit | 580f468900830592fb247952e5325eedc2297ba4 (patch) | |
tree | ab31c23db51934523ad2222a2c462454afd4b242 | |
parent | 13a3daa9285a8c5b0c1058e7e89d2a4de1cd8ad1 (diff) |
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>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/Makefile.am | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index fe8423f9d..a888c9986 100644 --- a/configure.ac +++ b/configure.ac @@ -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. #### diff --git a/src/Makefile.am b/src/Makefile.am index 4e60a9852..88a824e10 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 |