configure: Check optional py.test availability when building with python eggs

This commit is contained in:
Martin Willi
2015-03-18 13:59:15 +01:00
parent c193b5947a
commit 07302b2f7c
+2
View File
@@ -1198,6 +1198,7 @@ if test x$python_eggs = xtrue; then
else else
AC_SUBST(PYTHONEGGINSTALLDIR, "--install-dir $pythoneggdir") AC_SUBST(PYTHONEGGINSTALLDIR, "--install-dir $pythoneggdir")
fi fi
AC_PATH_PROG([PY_TEST], [py.test], [], [$PATH:/bin:/usr/bin:/usr/local/bin])
fi fi
# =============================================== # ===============================================
@@ -1567,6 +1568,7 @@ AM_CONDITIONAL(USE_SYSTEMD, test x$systemd = xtrue)
AM_CONDITIONAL(USE_LEGACY_SYSTEMD, test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno) AM_CONDITIONAL(USE_LEGACY_SYSTEMD, test -n "$systemdsystemunitdir" -a "x$systemdsystemunitdir" != xno)
AM_CONDITIONAL(USE_RUBY_GEMS, test x$ruby_gems = xtrue) AM_CONDITIONAL(USE_RUBY_GEMS, test x$ruby_gems = xtrue)
AM_CONDITIONAL(USE_PYTHON_EGGS, test x$python_eggs = xtrue) AM_CONDITIONAL(USE_PYTHON_EGGS, test x$python_eggs = xtrue)
AM_CONDITIONAL(USE_PY_TEST, test "x$PY_TEST" != x)
# ======================== # ========================
# set global definitions # set global definitions