diff options
author | Thomas Haller <thaller@redhat.com> | 2014-08-26 19:11:22 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-08-26 19:37:51 +0200 |
commit | e1de236db1de03fbd1384040dfe0ecb0223fc2f0 (patch) | |
tree | 9eff4f27ff20bbff5f8ac29ffd81c42d4dafe125 /callouts | |
parent | fb7b08388e9de5440962337e20a823bbf9d019ae (diff) |
build: add configure option not to install udev rules
Previously, user could only change the udev base directory,
but not disabling installation entirely.
Support this now with:
./configure --with-udev-dir=no
or
./configure --without-udev-dir
Also, just passing '--with-udev-dir' equals '--with-udev-dir=yes'.
Treat 'yes' equal to the default '/lib/udev'.
Also, check that the path is an absolute path starting with a '/'.
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'callouts')
-rw-r--r-- | callouts/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/callouts/Makefile.am b/callouts/Makefile.am index 1e7001c34e..1d1eb3c764 100644 --- a/callouts/Makefile.am +++ b/callouts/Makefile.am @@ -69,8 +69,10 @@ libtest_dispatcher_envp_la_LIBADD = \ $(DBUS_LIBS) -udevrulesdir = $(UDEV_BASE_DIR)/rules.d +if WITH_UDEV_DIR +udevrulesdir = $(UDEV_DIR)/rules.d udevrules_DATA = 77-nm-olpc-mesh.rules +endif dbusactivationdir = $(datadir)/dbus-1/system-services dbusactivation_in_files = org.freedesktop.nm_dispatcher.service.in |