Skip to content

Instantly share code, notes, and snippets.

@paxswill
Last active December 16, 2015 22:19
Show Gist options
  • Save paxswill/5505920 to your computer and use it in GitHub Desktop.
Save paxswill/5505920 to your computer and use it in GitHub Desktop.
--- src/configure 2013-05-02 18:03:49.000000000 -0400
+++ src/configure 2013-05-02 18:12:00.000000000 -0400
@@ -775,6 +795,7 @@
enable_pythoninterp
with_python_config_dir
enable_python3interp
+with_python3
with_python3_config_dir
enable_tclinterp
with_tclsh
@@ -1487,6 +1506,7 @@
--with-lua-prefix=PFX Prefix where Lua is installed.
--with-plthome=PLTHOME Use PLTHOME.
--with-python-config-dir=PATH Python's config directory
+ --with-python3=PATH which python to use (default: python3)
--with-python3-config-dir=PATH Python's config directory
--with-tclsh=PATH which tclsh to use (default: tclsh8.0)
--with-ruby-command=RUBY name of the Ruby command (default: ruby)
@@ -5548,45 +5608,19 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5
$as_echo "$enable_python3interp" >&6; }
if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then
- # Extract the first word of "python3", so it can be a program name with args.
-set dummy python3; ac_word=$2
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
-$as_echo_n "checking for $ac_word... " >&6; }
-if ${ac_cv_path_vi_cv_path_python3+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- case $vi_cv_path_python3 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
-done
- done
-IFS=$as_save_IFS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-python3 argument" >&5
+$as_echo_n "checking --with-python3 argument... " >&6; }
- ;;
-esac
-fi
-vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3
-if test -n "$vi_cv_path_python3"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5
-$as_echo "$vi_cv_path_python3" >&6; }
+# Check whether --with-python3 was given.
+if test "${with_python3+set}" = set; then :
+ withval=$with_python3; python_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_name" >&5
+$as_echo "$python_name" >&6; }
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+ python_name="python3"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
+ vi_cv_path_python3=$python_name
if test "X$vi_cv_path_python3" != "X"; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment