X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=configure.ac;h=1aff72d3b1bf2d780594e4c8ecc47b75e7e11a46;hp=1391d033b4b39db25982564656ad86a13bd03609;hb=be8737ae386166d2f279767ac87b226204c0de7e;hpb=49100d2abd1fc7ff36287de8c2645d37068784c2 diff --git a/configure.ac b/configure.ac index 1391d033b..1aff72d3b 100644 --- a/configure.ac +++ b/configure.ac @@ -216,8 +216,13 @@ AC_ARG_WITH([python], have_lxml=no AS_IF([test "x$with_python" != "xno"], [ AM_PATH_PYTHON(,, [:]) - AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes], [have_lxml=no]) - AS_IF([test "$PYTHON" != : -a $have_lxml = yes], [have_python=yes]) + AS_IF([test "x$PYTHON" != "x:"], [ + AC_MSG_CHECKING([for python lxml module]) + AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes]) + AC_MSG_RESULT([$have_lxml]) + AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes], + [AC_MSG_WARN([*** python support requires python-lxml module installed])]) + ]) ]) AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) AS_IF([test "x$PYTHON_BINARY" = "x"],