aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-libexec.m4
diff options
context:
space:
mode:
authorAntonio Russo <[email protected]>2018-06-07 12:59:59 -0400
committerBrian Behlendorf <[email protected]>2018-06-07 09:59:59 -0700
commit39042f97365c0e677e5e77ded90372526422afdf (patch)
treefeaf6e681cc3b9bd677bfd442b4e54e14c1b8a33 /config/user-libexec.m4
parentfba33c3819761487a75c8f1307482959105a6269 (diff)
Tunable directory for zfs runtime scripts
zpool and zed place scripts in subdirectories of libexecdir. Some distributions locate architecture independent scripts in other locations (e.g. Debian). To avoid these paths getting out of sync, centralize the definitions. Build zfs-test's default.cfg by Makefile. Use the new directory logic building tests/zfs-tests/include/default.cfg.in. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Antonio Russo <[email protected]> Closes #7597
Diffstat (limited to 'config/user-libexec.m4')
-rw-r--r--config/user-libexec.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/config/user-libexec.m4 b/config/user-libexec.m4
new file mode 100644
index 000000000..31bcea3fc
--- /dev/null
+++ b/config/user-libexec.m4
@@ -0,0 +1,9 @@
+AC_DEFUN([ZFS_AC_CONFIG_USER_ZFSEXEC], [
+ AC_ARG_WITH(zfsexecdir,
+ AC_HELP_STRING([--with-zfsexecdir=DIR],
+ [install scripts [[@<:@libexecdir@:>@/zfs]]]),
+ [zfsexecdir=$withval],
+ [zfsexecdir="${libexecdir}/zfs"])
+
+ AC_SUBST([zfsexecdir])
+])