diff options
author | Clement Chauplannaz <chauplac@gmail.com> | 2013-06-09 16:52:29 +0200 |
---|---|---|
committer | Clement Chauplannaz <chauplac@gmail.com> | 2013-06-18 22:40:03 +0200 |
commit | c9dd17a6504339eb712e0688b68de01566792b7a (patch) | |
tree | c35decd8b0bea8676598713cf7df2e7e71724a7a | |
parent | 5040a328ba73ec3dd119f013b9a12a2fdc99a6b9 (diff) | |
download | itstool-c9dd17a6504339eb712e0688b68de01566792b7a.tar.gz |
Configure: test for python module libxml2 presence
-rw-r--r-- | configure.ac | 10 |
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 |