summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e2e86f4..bac146f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,16 @@ DATADIR=`(
)`
AC_SUBST([DATADIR])
+py_module=libxml2
+AC_MSG_CHECKING(for python module $py_module)
+echo "import $py_module" | python - &>/dev/null
+if test $? -ne 0; then
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(Python module $py_module is needed to run this package)
+else
+ AC_MSG_RESULT(found)
+fi
+
AC_CONFIG_FILES([
Makefile
itstool