Make autogen.sh look for "python3" if "python" isn't found before
giving up. Change-Id: Id109c78f90da71c54c7b4fd6df20cc153248f46f Reviewed-on: https://code.wireshark.org/review/5623 Reviewed-by: Stephen Fisher <sfisher@sdf.org>
This commit is contained in:
parent
3b7c165e20
commit
d5a4cc34ec
|
@ -37,7 +37,12 @@ AUTOCONF=autoconf
|
|||
|
||||
# Check for python. Python did not support --version before version 2.5.
|
||||
# Until we require a version > 2.5, we should use -V.
|
||||
PYVER=`python -V 2>&1 | sed 's/Python *//'`
|
||||
PYVER=`exec python -V 2>&1 | sed 's/Python *//'`
|
||||
# If "python" isn't found, try "python3"
|
||||
if test "$PYVER" = "exec: python: not found"
|
||||
then
|
||||
PYVER=`exec python3 -V 2>&1 | sed 's/Python *//'`
|
||||
fi
|
||||
case "$PYVER" in
|
||||
2*|3*)
|
||||
;;
|
||||
|
@ -51,7 +56,6 @@ _EOF_
|
|||
DIE="exit 1"
|
||||
esac
|
||||
|
||||
|
||||
ACVER=`$AUTOCONF --version | grep '^autoconf' | sed 's/.*) *//'`
|
||||
case "$ACVER" in
|
||||
'' | 0.* | 1.* | 2.[0-5]* )
|
||||
|
|
Loading…
Reference in New Issue