forked from geany/geany
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check for lxml package if Python is enabled
This prevents a make-time error later if it can't be imported.
- Loading branch information
1 parent
7abe35f
commit 02c39a3
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,6 +80,15 @@ AC_DEFUN([GEANY_CHECK_PYTHON], | |
AM_PATH_PYTHON([2.7], [], []) | ||
AM_CONDITIONAL([WITH_PYTHON], [test -n "$PYTHON"]) | ||
AM_COND_IF([WITH_PYTHON], | ||
[GEANY_STATUS_ADD([Using Python version], [$PYTHON_VERSION])]) | ||
AM_COND_IF([WITH_PYTHON], [ | ||
AC_MSG_CHECKING([for python lxml package]) | ||
$PYTHON -c 'import lxml' 1>&2 2>/dev/null | ||
This comment has been minimized.
Sorry, something went wrong. |
||
AS_IF([test $? -eq 0], [ | ||
This comment has been minimized.
Sorry, something went wrong.
b4n
Collaborator
|
||
AC_MSG_RESULT([found]) | ||
], [ | ||
AC_MSG_RESULT([not found]) | ||
AC_MSG_ERROR([unable to import the python lxml package, is it installed?]) | ||
]) | ||
GEANY_STATUS_ADD([Using Python version], [$PYTHON_VERSION]) | ||
]) | ||
]) |
most people will to the contrary,
2>&1 >/dev/null
, but fair enough :)