configure: check for python-yaml

Don't install suricata-update if python-yaml does not
exist.
pull/3563/head
Jason Ish 7 years ago committed by Victor Julien
parent 5eb7f0f77c
commit db36708756

@ -104,6 +104,19 @@
fi
AM_CONDITIONAL([HAVE_PYTHON], [test "x$enable_python" = "xyes"])
# Check for python-yaml.
have_python_yaml="no"
if test "x$enable_python" = "xyes"; then
AC_MSG_CHECKING([for python-yaml])
if $HAVE_PYTHON -c "import yaml" 2>/dev/null; then
have_python_yaml="yes"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
fi
AM_CONDITIONAL([HAVE_PYTHON_YAML], [test "x$have_python_yaml" = "xyes"])
AC_PATH_PROG(HAVE_WGET, wget, "no")
if test "$HAVE_WGET" = "no"; then
AC_PATH_PROG(HAVE_CURL, curl, "no")

@ -1,4 +1,5 @@
if HAVE_PYTHON
if HAVE_PYTHON_YAML
install-exec-local:
cd $(srcdir) && \
@ -20,3 +21,4 @@ clean-local:
distclean-local:
endif
endif

Loading…
Cancel
Save