diff options
Diffstat (limited to 'src/udev/Makefile.am')
-rw-r--r-- | src/udev/Makefile.am | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/udev/Makefile.am b/src/udev/Makefile.am index ab1322a1a2..7ceb31951a 100644 --- a/src/udev/Makefile.am +++ b/src/udev/Makefile.am @@ -6,6 +6,7 @@ udevhomedir = $(udevlibexecdir) AM_CPPFLAGS = \ -include $(top_builddir)/config.h \ + -DMODPROBE=\"$(MODPROBE)\" \ -DROOTPREFIX=\"$(rootprefix)\" \ -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \ -I $(top_srcdir)/src/libudev @@ -101,13 +102,19 @@ include_HEADERS = \ libudev_core_la_CFLAGS = \ $(AM_CFLAGS) \ - $(BLKID_CFLAGS) \ - $(KMOD_CFLAGS) + $(BLKID_CFLAGS) + +if HAVE_LIBKMOD +libudev_core_la_CFLAGS += $(KMOD_CFLAGS) +endif libudev_core_la_LIBADD = \ $(top_builddir)/src/libudev/libudev-private.la \ - $(BLKID_LIBS) \ - $(KMOD_LIBS) + $(BLKID_LIBS) + +if HAVE_LIBKMOD +libudev_core_la_LIBADD += $(KMOD_LIBS) +endif if HAVE_ACL libudev_core_la_SOURCES += \ |