summaryrefslogtreecommitdiffstats
path: root/config/user-udev.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/user-udev.m4')
-rw-r--r--config/user-udev.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/config/user-udev.m4 b/config/user-udev.m4
new file mode 100644
index 000000000..47da60478
--- /dev/null
+++ b/config/user-udev.m4
@@ -0,0 +1,14 @@
+AC_DEFUN([ZFS_AC_CONFIG_USER_UDEV], [
+ AC_ARG_WITH(udevdir,
+ AC_HELP_STRING([--with-udevdir=DIR],
+ [install udev helpers [[EPREFIX/lib/udev]]]),
+ udevdir=$withval, udevdir='${exec_prefix}/lib/udev')
+
+ AC_ARG_WITH(udevruledir,
+ AC_HELP_STRING([--with-udevruledir=DIR],
+ [install udev rules [[UDEVDIR/rules.d]]]),
+ udevruledir=$withval, udevruledir='${udevdir}/rules.d')
+
+ AC_SUBST(udevdir)
+ AC_SUBST(udevruledir)
+])