summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2012-11-19 11:49:42 -0500
committerRichard Yao <ryao@cs.stonybrook.edu>2012-11-23 01:55:28 -0500
commitc4d1ce9b754e6eed60d2625cc4fff224898aa5d5 (patch)
treeb49d37e4dd0fc0c69686abf5c18ed8eb11369011 /src/test
parent135d61df6f66d0c0e67aec62f76ee7f2a409a3ce (diff)
Use libkmod only when requested
We support module loading through modprobe when libkmod is neither available nor wanted. Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/Makefile.am b/src/test/Makefile.am
index d50200d821..642e7c2efe 100644
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -28,9 +28,12 @@ test_udev_LDADD = \
$(top_builddir)/src/libudev/libudev-private.la \
$(top_builddir)/src/udev/libudev-core.la \
$(BLKID_LIBS) \
- $(KMOD_LIBS) \
$(SELINUX_LIBS)
+if HAVE_LIBKMOD
+test_udev_LDADD += $(KMOD_LIBS)
+endif
+
test_udev_CPPFLAGS = \
-I $(top_srcdir)/src/udev \
$(AM_CPPFLAGS)