From c9dd17a6504339eb712e0688b68de01566792b7a Mon Sep 17 00:00:00 2001 From: Clement Chauplannaz Date: Sun, 9 Jun 2013 16:52:29 +0200 Subject: Configure: test for python module libxml2 presence --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') 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 -- cgit v1.2.1