@@ -680,9 +680,6 @@ MKDIR_P
680680INSTALL_DATA
681681INSTALL_SCRIPT
682682INSTALL_PROGRAM
683- OPCODEHGEN
684- PYTHON
685- ASDLGEN
686683ac_ct_READELF
687684READELF
688685ARFLAGS
@@ -744,6 +741,7 @@ CONFIG_ARGS
744741SOVERSION
745742VERSION
746743PYTHON_FOR_BUILD
744+ PYTHON_FOR_GEN
747745host_os
748746host_vendor
749747host_cpu
@@ -777,7 +775,6 @@ infodir
777775docdir
778776oldincludedir
779777includedir
780- runstatedir
781778localstatedir
782779sharedstatedir
783780sysconfdir
@@ -888,7 +885,6 @@ datadir='${datarootdir}'
888885sysconfdir=' ${prefix}/etc'
889886sharedstatedir=' ${prefix}/com'
890887localstatedir=' ${prefix}/var'
891- runstatedir=' ${localstatedir}/run'
892888includedir=' ${prefix}/include'
893889oldincludedir=' /usr/include'
894890docdir=' ${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1141,15 +1137,6 @@ do
11411137 | -silent | --silent | --silen | --sile | --sil)
11421138 silent=yes ;;
11431139
1144- -runstatedir | --runstatedir | --runstatedi | --runstated \
1145- | --runstate | --runstat | --runsta | --runst | --runs \
1146- | --run | --ru | --r)
1147- ac_prev=runstatedir ;;
1148- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150- | --run=* | --ru=* | --r=* )
1151- runstatedir=$ac_optarg ;;
1152-
11531140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11541141 ac_prev=sbindir ;;
11551142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12871274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12881275 datadir sysconfdir sharedstatedir localstatedir includedir \
12891276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290- libdir localedir mandir runstatedir
1277+ libdir localedir mandir
12911278do
12921279 eval ac_val=\$ $ac_var
12931280 # Remove trailing slashes.
@@ -1440,7 +1427,6 @@ Fine tuning of the installation directories:
14401427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14411428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14421429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14441430 --libdir=DIR object code libraries [EPREFIX/lib]
14451431 --includedir=DIR C header files [PREFIX/include]
14461432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -2996,6 +2982,56 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
29962982# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
29972983rm -f pybuilddir.txt
29982984
2985+ for ac_prog in python$PACKAGE_VERSION python3 python
2986+ do
2987+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2988+ set dummy $ac_prog ; ac_word=$2
2989+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
2990+ $as_echo_n " checking for $ac_word ... " >&6 ; }
2991+ if ${ac_cv_prog_PYTHON_FOR_GEN+: } false ; then :
2992+ $as_echo_n " (cached) " >&6
2993+ else
2994+ if test -n " $PYTHON_FOR_GEN " ; then
2995+ ac_cv_prog_PYTHON_FOR_GEN=" $PYTHON_FOR_GEN " # Let the user override the test.
2996+ else
2997+ as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
2998+ for as_dir in $PATH
2999+ do
3000+ IFS=$as_save_IFS
3001+ test -z " $as_dir " && as_dir=.
3002+ for ac_exec_ext in ' ' $ac_executable_extensions ; do
3003+ if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
3004+ ac_cv_prog_PYTHON_FOR_GEN=" $ac_prog "
3005+ $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
3006+ break 2
3007+ fi
3008+ done
3009+ done
3010+ IFS=$as_save_IFS
3011+
3012+ fi
3013+ fi
3014+ PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN
3015+ if test -n " $PYTHON_FOR_GEN " ; then
3016+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON_FOR_GEN " >&5
3017+ $as_echo " $PYTHON_FOR_GEN " >&6 ; }
3018+ else
3019+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
3020+ $as_echo " no" >&6 ; }
3021+ fi
3022+
3023+
3024+ test -n " $PYTHON_FOR_GEN " && break
3025+ done
3026+ test -n " $PYTHON_FOR_GEN " || PYTHON_FOR_GEN=" not-found"
3027+
3028+ if test " $PYTHON_FOR_GEN " = not-found; then
3029+ PYTHON_FOR_GEN=' @echo "Cannot generate $@, python not found !" && \
3030+ echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \
3031+ echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&'
3032+ fi
3033+
3034+
29993035if test " $cross_compiling " = yes; then
30003036 { $as_echo " $as_me :${as_lineno-$LINENO } : checking for python interpreter for cross build" >&5
30013037$as_echo_n " checking for python interpreter for cross build... " >&6 ; }
@@ -6329,107 +6365,6 @@ fi
63296365
63306366
63316367
6332- for ac_prog in python$PACKAGE_VERSION python3 python
6333- do
6334- # Extract the first word of "$ac_prog", so it can be a program name with args.
6335- set dummy $ac_prog ; ac_word=$2
6336- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6337- $as_echo_n " checking for $ac_word ... " >&6 ; }
6338- if ${ac_cv_prog_PYTHON+: } false ; then :
6339- $as_echo_n " (cached) " >&6
6340- else
6341- if test -n " $PYTHON " ; then
6342- ac_cv_prog_PYTHON=" $PYTHON " # Let the user override the test.
6343- else
6344- as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
6345- for as_dir in $PATH
6346- do
6347- IFS=$as_save_IFS
6348- test -z " $as_dir " && as_dir=.
6349- for ac_exec_ext in ' ' $ac_executable_extensions ; do
6350- if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
6351- ac_cv_prog_PYTHON=" $ac_prog "
6352- $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
6353- break 2
6354- fi
6355- done
6356- done
6357- IFS=$as_save_IFS
6358-
6359- fi
6360- fi
6361- PYTHON=$ac_cv_prog_PYTHON
6362- if test -n " $PYTHON " ; then
6363- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON " >&5
6364- $as_echo " $PYTHON " >&6 ; }
6365- else
6366- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6367- $as_echo " no" >&6 ; }
6368- fi
6369-
6370-
6371- test -n " $PYTHON " && break
6372- done
6373- test -n " $PYTHON " || PYTHON=" not-found"
6374-
6375- if test " $PYTHON " = not-found; then
6376- ASDLGEN=" @echo python: $PYTHON ! cannot run \$ (srcdir)/Parser/asdl_c.py #"
6377- else
6378- ASDLGEN=" $PYTHON "
6379- fi
6380-
6381-
6382- for ac_prog in python$PACKAGE_VERSION python3 python
6383- do
6384- # Extract the first word of "$ac_prog", so it can be a program name with args.
6385- set dummy $ac_prog ; ac_word=$2
6386- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6387- $as_echo_n " checking for $ac_word ... " >&6 ; }
6388- if ${ac_cv_prog_PYTHON+: } false ; then :
6389- $as_echo_n " (cached) " >&6
6390- else
6391- if test -n " $PYTHON " ; then
6392- ac_cv_prog_PYTHON=" $PYTHON " # Let the user override the test.
6393- else
6394- as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
6395- for as_dir in $PATH
6396- do
6397- IFS=$as_save_IFS
6398- test -z " $as_dir " && as_dir=.
6399- for ac_exec_ext in ' ' $ac_executable_extensions ; do
6400- if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
6401- ac_cv_prog_PYTHON=" $ac_prog "
6402- $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
6403- break 2
6404- fi
6405- done
6406- done
6407- IFS=$as_save_IFS
6408-
6409- fi
6410- fi
6411- PYTHON=$ac_cv_prog_PYTHON
6412- if test -n " $PYTHON " ; then
6413- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON " >&5
6414- $as_echo " $PYTHON " >&6 ; }
6415- else
6416- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6417- $as_echo " no" >&6 ; }
6418- fi
6419-
6420-
6421- test -n " $PYTHON " && break
6422- done
6423- test -n " $PYTHON " || PYTHON=" not-found"
6424-
6425- if test " $PYTHON " = not-found; then
6426- OPCODEHGEN=" @echo python: $PYTHON ! cannot run Tools/scripts/generate_opcode_h.py"
6427- else
6428- OPCODEHGEN=" $PYTHON "
6429- fi
6430-
6431-
6432-
64336368case $MACHDEP in
64346369bsdos* |hp* |HP* )
64356370 # install -d does not work on BSDI or HP-UX
0 commit comments