chiark / gitweb /
build-sys: do not try to build test-rtnl-manual w/o kmod
[elogind.git] / Makefile.am
index 0ad1729c0b2f0eed7d06c0e3e4bc2a6d814de3b3..451e53ace343d69ccaf320224d21695eae93b23a 100644 (file)
@@ -1176,8 +1176,12 @@ manual_tests += \
        test-install \
        test-watchdog \
        test-log \
-       test-ipcrm \
+       test-ipcrm
+
+if HAVE_KMOD
+manual_tests += \
        test-rtnl-manual
+endif
 
 tests += \
        test-job-type \
@@ -1402,10 +1406,14 @@ test_ipcrm_LDADD = \
 test_rtnl_manual_SOURCES = \
        src/test/test-rtnl-manual.c
 
+test_rtnl_manual_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(KMOD_CFLAGS)
+
 test_rtnl_manual_LDADD = \
        libsystemd-internal.la \
        libsystemd-shared.la \
-       -lkmod
+       $(KMOD_LIBS)
 
 test_ellipsize_SOURCES = \
        src/test/test-ellipsize.c