@@ -802,8 +802,10 @@ enable_mzschemeinterp
802
802
with_plthome
803
803
enable_perlinterp
804
804
enable_pythoninterp
805
+ with_python_command
805
806
with_python_config_dir
806
807
enable_python3interp
808
+ with_python3_command
807
809
with_python3_config_dir
808
810
enable_tclinterp
809
811
with_tclsh
@@ -1532,8 +1534,10 @@ Optional Packages:
1532
1534
--with-lua-prefix=PFX Prefix where Lua is installed.
1533
1535
--with-luajit Link with LuaJIT instead of Lua.
1534
1536
--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)
1537
1541
--with-tclsh=PATH which tclsh to use (default: tclsh8.0)
1538
1542
--with-ruby-command=RUBY name of the Ruby command (default: ruby)
1539
1543
--with-x use the X Window System
@@ -5937,6 +5941,21 @@ if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; th
5937
5941
as_fn_error $? " cannot use Python with tiny or small features" " $LINENO " 5
5938
5942
fi
5939
5943
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
5940
5959
for ac_prog in python2 python
5941
5960
do
5942
5961
# Extract the first word of "$ac_prog", so it can be a program name with args.
5982
6001
test -n " $vi_cv_path_python " && break
5983
6002
done
5984
6003
6004
+ fi
5985
6005
if test " X$vi_cv_path_python " ! = " X" ; then
5986
6006
5987
6007
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking Python version" >&5
@@ -6271,6 +6291,21 @@ if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic";
6271
6291
as_fn_error $? " cannot use Python with tiny or small features" " $LINENO " 5
6272
6292
fi
6273
6293
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
6274
6309
for ac_prog in python3 python
6275
6310
do
6276
6311
# Extract the first word of "$ac_prog", so it can be a program name with args.
6316
6351
test -n " $vi_cv_path_python3 " && break
6317
6352
done
6318
6353
6354
+ fi
6319
6355
if test " X$vi_cv_path_python3 " ! = " X" ; then
6320
6356
6321
6357
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking Python version" >&5
0 commit comments