@@ -802,8 +802,10 @@ enable_mzschemeinterp
802802with_plthome
803803enable_perlinterp
804804enable_pythoninterp
805+ with_python_command
805806with_python_config_dir
806807enable_python3interp
808+ with_python3_command
807809with_python3_config_dir
808810enable_tclinterp
809811with_tclsh
@@ -1532,8 +1534,10 @@ Optional Packages:
15321534 --with-lua-prefix=PFX Prefix where Lua is installed.
15331535 --with-luajit Link with LuaJIT instead of Lua.
15341536 --with-plthome=PLTHOME Use PLTHOME.
1535- --with-python-config-dir=PATH Python's config directory
1536- --with-python3-config-dir=PATH Python's config directory
1537+ --with-python-command=NAME name of the Python 2 command (default: python2 or python)
1538+ --with-python-config-dir=PATH Python's config directory (deprecated)
1539+ --with-python3-command=NAME name of the Python 3 command (default: python3 or python)
1540+ --with-python3-config-dir=PATH Python's config directory (deprecated)
15371541 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
15381542 --with-ruby-command=RUBY name of the Ruby command (default: ruby)
15391543 --with-x use the X Window System
@@ -5937,6 +5941,21 @@ if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; th
59375941 as_fn_error $? " cannot use Python with tiny or small features" " $LINENO " 5
59385942 fi
59395943
5944+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking --with-python-command argument" >&5
5945+ $as_echo_n " checking --with-python-command argument... " >&6 ; }
5946+
5947+
5948+ # Check whether --with-python-command was given.
5949+ if test " ${with_python_command+set} " = set ; then :
5950+ withval=$with_python_command ; vi_cv_path_python=" $withval " ; { $as_echo " $as_me :${as_lineno-$LINENO } : result: $vi_cv_path_python " >&5
5951+ $as_echo " $vi_cv_path_python " >&6 ; }
5952+ else
5953+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5954+ $as_echo " no" >&6 ; }
5955+ fi
5956+
5957+
5958+ if test " X$vi_cv_path_python " = " X" ; then
59405959 for ac_prog in python2 python
59415960do
59425961 # Extract the first word of "$ac_prog", so it can be a program name with args.
59826001 test -n " $vi_cv_path_python " && break
59836002done
59846003
6004+ fi
59856005 if test " X$vi_cv_path_python " ! = " X" ; then
59866006
59876007 { $as_echo " $as_me :${as_lineno-$LINENO } : checking Python version" >&5
@@ -6271,6 +6291,21 @@ if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic";
62716291 as_fn_error $? " cannot use Python with tiny or small features" " $LINENO " 5
62726292 fi
62736293
6294+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking --with-python3-command argument" >&5
6295+ $as_echo_n " checking --with-python3-command argument... " >&6 ; }
6296+
6297+
6298+ # Check whether --with-python3-command was given.
6299+ if test " ${with_python3_command+set} " = set ; then :
6300+ withval=$with_python3_command ; vi_cv_path_python3=" $withval " ; { $as_echo " $as_me :${as_lineno-$LINENO } : result: $vi_cv_path_python3 " >&5
6301+ $as_echo " $vi_cv_path_python3 " >&6 ; }
6302+ else
6303+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6304+ $as_echo " no" >&6 ; }
6305+ fi
6306+
6307+
6308+ if test " X$vi_cv_path_python3 " = " X" ; then
62746309 for ac_prog in python3 python
62756310do
62766311 # Extract the first word of "$ac_prog", so it can be a program name with args.
63166351 test -n " $vi_cv_path_python3 " && break
63176352done
63186353
6354+ fi
63196355 if test " X$vi_cv_path_python3 " ! = " X" ; then
63206356
63216357 { $as_echo " $as_me :${as_lineno-$LINENO } : checking Python version" >&5
0 commit comments