summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a0a72fd29..d24ed8f7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1387,6 +1387,12 @@ AS_IF([test "x$with_python" = xyes], [
])
])
+dnl FIXME: the python3 should be fixed in future.
+AS_CASE([$PYTHON_VERSION],
+ [2.*], [],
+ [3.*], [AC_MSG_ERROR([pylibmount will not work with python3])],
+ [AC_MSG_ERROR([unanticipated python version])]
+)
UL_BUILD_INIT([pylibmount], [check])
UL_REQUIRES_HAVE([pylibmount], [python])