aboutsummaryrefslogtreecommitdiffstats
path: root/config/always-pyzfs.m4
diff options
context:
space:
mode:
authorDamian Szuberski <[email protected]>2022-11-17 03:27:53 +1000
committerGitHub <[email protected]>2022-11-16 09:27:53 -0800
commitc3b6fd3d594f27827d69d972b41520ef0646bdea (patch)
tree262cc1c37ab75440842b085ac17366890e90b0e2 /config/always-pyzfs.m4
parent2163cde450d0898b5f7bac16afb4e238485411ff (diff)
Make autodetection disable pyzfs for kernel/srpm configurations
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Richard Yao <[email protected]> Signed-off-by: szubersk <[email protected]> Closes #13394 Closes #14178
Diffstat (limited to 'config/always-pyzfs.m4')
-rw-r--r--config/always-pyzfs.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/config/always-pyzfs.m4 b/config/always-pyzfs.m4
index 996a2a6e2..9b123b1b2 100644
--- a/config/always-pyzfs.m4
+++ b/config/always-pyzfs.m4
@@ -47,6 +47,16 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_PYZFS], [
AC_SUBST(DEFINE_PYZFS)
dnl #
+ dnl # Autodetection disables pyzfs if kernel or srpm config
+ dnl #
+ AS_IF([test "x$enable_pyzfs" = xcheck], [
+ AS_IF([test "x$ZFS_CONFIG" = xkernel -o "x$ZFS_CONFIG" = xsrpm ], [
+ enable_pyzfs=no
+ AC_MSG_NOTICE([Disabling pyzfs for kernel/srpm config])
+ ])
+ ])
+
+ dnl #
dnl # Python "packaging" (or, failing that, "distlib") module is required to build and install pyzfs
dnl #
AS_IF([test "x$enable_pyzfs" = xcheck -o "x$enable_pyzfs" = xyes], [