summaryrefslogtreecommitdiffstats
path: root/config/always-python.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/always-python.m4')
-rw-r--r--config/always-python.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/config/always-python.m4 b/config/always-python.m4
index c1c07597e..c01e631a8 100644
--- a/config/always-python.m4
+++ b/config/always-python.m4
@@ -49,6 +49,10 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_PYTHON], [
AM_CONDITIONAL([USING_PYTHON_2], [test "x${PYTHON_VERSION%%\.*}" = x2])
AM_CONDITIONAL([USING_PYTHON_3], [test "x${PYTHON_VERSION%%\.*}" = x3])
+ AM_COND_IF([USING_PYTHON_2],
+ [AC_SUBST([PYTHON_SHEBANG], [python2])],
+ [AC_SUBST([PYTHON_SHEBANG], [python3])])
+
dnl #
dnl # Request that packages be built for a specific Python version.
dnl #