mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- Issue #16262: fix out-of-src-tree builds, if mercurial is not installed.
This commit is contained in:
commit
aee3c76acf
5 changed files with 31 additions and 25 deletions
12
configure.ac
12
configure.ac
|
@ -1000,12 +1000,12 @@ if test "$cross_compiling" = yes; then
|
|||
fi
|
||||
AC_SUBST(READELF)
|
||||
|
||||
AC_SUBST(DISABLE_ASDLGEN)
|
||||
DISABLE_ASDLGEN=""
|
||||
AC_CHECK_PROG(HAS_PYTHON, python, found, not-found)
|
||||
if test $HAS_HG != found -o $HAS_PYTHON != found
|
||||
then
|
||||
DISABLE_ASDLGEN="@echo hg: $HAS_HG, python: $HAS_PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #"
|
||||
AC_SUBST(ASDLGEN)
|
||||
AC_CHECK_PROGS(PYTHON, python$PACKAGE_VERSION python3 python, not-found)
|
||||
if $PYTHON = not-found; then
|
||||
ASDLGEN="@echo python: $PYTHON! cannot run \$(srcdir)/Parser/asdl_c.py #"
|
||||
else
|
||||
ASDLGEN="$PYTHON"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue