fix for when python3 not installed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2cbb898cff
commit
c8148015ff
1 changed files with 7 additions and 3 deletions
10
configure.in
10
configure.in
|
|
@ -679,13 +679,17 @@ else
|
||||||
# First figure out the name of the Python3 executable
|
# First figure out the name of the Python3 executable
|
||||||
|
|
||||||
if test "x$PY3BIN" = xyes; then
|
if test "x$PY3BIN" = xyes; then
|
||||||
AC_CHECK_PROGS(PYTHON3, [python3 python3.0])
|
AC_CHECK_PROGS(PYTHON3, [python3 python3.0])
|
||||||
else
|
else
|
||||||
PYTHON3="$PY3BIN"
|
PYTHON3="$PY3BIN"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for Python 3.x development tools (header files, static library and python3-config)
|
# Check for Python 3.x development tools (header files, static library and python3-config)
|
||||||
AC_CHECK_PROGS(PY3CONFIG, [$PYTHON3-config python3-config python3.0-config])
|
if test "x$PYTHON3" = x; then
|
||||||
|
AC_CHECK_PROGS(PY3CONFIG, [python3-config python3.0-config])
|
||||||
|
else
|
||||||
|
AC_CHECK_PROGS(PY3CONFIG, [$PYTHON3-config python3-config python3.0-config])
|
||||||
|
fi
|
||||||
|
|
||||||
if test -n "$PYTHON3" -a -n "$PY3CONFIG"; then
|
if test -n "$PYTHON3" -a -n "$PY3CONFIG"; then
|
||||||
AC_MSG_CHECKING([for Python 3.x prefix])
|
AC_MSG_CHECKING([for Python 3.x prefix])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue