@@ -680,9 +680,6 @@ MKDIR_P
680680INSTALL_DATA
681681INSTALL_SCRIPT
682682INSTALL_PROGRAM
683- OPCODEHGEN
684- PYTHON
685- ASDLGEN
686683ac_ct_READELF
687684READELF
688685ARFLAGS
@@ -743,6 +740,7 @@ CONFIG_ARGS
743740SOVERSION
744741VERSION
745742PYTHON_FOR_BUILD
743+ PYTHON_FOR_GEN
746744host_os
747745host_vendor
748746host_cpu
@@ -776,7 +774,6 @@ infodir
776774docdir
777775oldincludedir
778776includedir
779- runstatedir
780777localstatedir
781778sharedstatedir
782779sysconfdir
@@ -887,7 +884,6 @@ datadir='${datarootdir}'
887884sysconfdir=' ${prefix}/etc'
888885sharedstatedir=' ${prefix}/com'
889886localstatedir=' ${prefix}/var'
890- runstatedir=' ${localstatedir}/run'
891887includedir=' ${prefix}/include'
892888oldincludedir=' /usr/include'
893889docdir=' ${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1140,15 +1136,6 @@ do
11401136 | -silent | --silent | --silen | --sile | --sil)
11411137 silent=yes ;;
11421138
1143- -runstatedir | --runstatedir | --runstatedi | --runstated \
1144- | --runstate | --runstat | --runsta | --runst | --runs \
1145- | --run | --ru | --r)
1146- ac_prev=runstatedir ;;
1147- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149- | --run=* | --ru=* | --r=* )
1150- runstatedir=$ac_optarg ;;
1151-
11521139 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11531140 ac_prev=sbindir ;;
11541141 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12861273for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12871274 datadir sysconfdir sharedstatedir localstatedir includedir \
12881275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289- libdir localedir mandir runstatedir
1276+ libdir localedir mandir
12901277do
12911278 eval ac_val=\$ $ac_var
12921279 # Remove trailing slashes.
@@ -1439,7 +1426,6 @@ Fine tuning of the installation directories:
14391426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
14401427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
14411428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
14431429 --libdir=DIR object code libraries [EPREFIX/lib]
14441430 --includedir=DIR C header files [PREFIX/include]
14451431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -2995,6 +2981,56 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
29952981# pybuilddir.txt will be created by --generate-posix-vars in the Makefile
29962982rm -f pybuilddir.txt
29972983
2984+ for ac_prog in python$PACKAGE_VERSION python3 python
2985+ do
2986+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2987+ set dummy $ac_prog ; ac_word=$2
2988+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
2989+ $as_echo_n " checking for $ac_word ... " >&6 ; }
2990+ if ${ac_cv_prog_PYTHON_FOR_GEN+: } false ; then :
2991+ $as_echo_n " (cached) " >&6
2992+ else
2993+ if test -n " $PYTHON_FOR_GEN " ; then
2994+ ac_cv_prog_PYTHON_FOR_GEN=" $PYTHON_FOR_GEN " # Let the user override the test.
2995+ else
2996+ as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
2997+ for as_dir in $PATH
2998+ do
2999+ IFS=$as_save_IFS
3000+ test -z " $as_dir " && as_dir=.
3001+ for ac_exec_ext in ' ' $ac_executable_extensions ; do
3002+ if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
3003+ ac_cv_prog_PYTHON_FOR_GEN=" $ac_prog "
3004+ $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
3005+ break 2
3006+ fi
3007+ done
3008+ done
3009+ IFS=$as_save_IFS
3010+
3011+ fi
3012+ fi
3013+ PYTHON_FOR_GEN=$ac_cv_prog_PYTHON_FOR_GEN
3014+ if test -n " $PYTHON_FOR_GEN " ; then
3015+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON_FOR_GEN " >&5
3016+ $as_echo " $PYTHON_FOR_GEN " >&6 ; }
3017+ else
3018+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
3019+ $as_echo " no" >&6 ; }
3020+ fi
3021+
3022+
3023+ test -n " $PYTHON_FOR_GEN " && break
3024+ done
3025+ test -n " $PYTHON_FOR_GEN " || PYTHON_FOR_GEN=" not-found"
3026+
3027+ if test " $PYTHON_FOR_GEN " = not-found; then
3028+ PYTHON_FOR_GEN=' @echo "Cannot generate $@, python not found !" && \
3029+ echo "To skip re-generation of $@ run <make touch> or <make -t $@>." && \
3030+ echo "Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>." && false &&'
3031+ fi
3032+
3033+
29983034if test " $cross_compiling " = yes; then
29993035 { $as_echo " $as_me :${as_lineno-$LINENO } : checking for python interpreter for cross build" >&5
30003036$as_echo_n " checking for python interpreter for cross build... " >&6 ; }
@@ -6295,107 +6331,6 @@ fi
62956331
62966332
62976333
6298- for ac_prog in python$PACKAGE_VERSION python3 python
6299- do
6300- # Extract the first word of "$ac_prog", so it can be a program name with args.
6301- set dummy $ac_prog ; ac_word=$2
6302- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6303- $as_echo_n " checking for $ac_word ... " >&6 ; }
6304- if ${ac_cv_prog_PYTHON+: } false ; then :
6305- $as_echo_n " (cached) " >&6
6306- else
6307- if test -n " $PYTHON " ; then
6308- ac_cv_prog_PYTHON=" $PYTHON " # Let the user override the test.
6309- else
6310- as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
6311- for as_dir in $PATH
6312- do
6313- IFS=$as_save_IFS
6314- test -z " $as_dir " && as_dir=.
6315- for ac_exec_ext in ' ' $ac_executable_extensions ; do
6316- if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
6317- ac_cv_prog_PYTHON=" $ac_prog "
6318- $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
6319- break 2
6320- fi
6321- done
6322- done
6323- IFS=$as_save_IFS
6324-
6325- fi
6326- fi
6327- PYTHON=$ac_cv_prog_PYTHON
6328- if test -n " $PYTHON " ; then
6329- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON " >&5
6330- $as_echo " $PYTHON " >&6 ; }
6331- else
6332- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6333- $as_echo " no" >&6 ; }
6334- fi
6335-
6336-
6337- test -n " $PYTHON " && break
6338- done
6339- test -n " $PYTHON " || PYTHON=" not-found"
6340-
6341- if test " $PYTHON " = not-found; then
6342- ASDLGEN=" @echo python: $PYTHON ! cannot run \$ (srcdir)/Parser/asdl_c.py #"
6343- else
6344- ASDLGEN=" $PYTHON "
6345- fi
6346-
6347-
6348- for ac_prog in python$PACKAGE_VERSION python3 python
6349- do
6350- # Extract the first word of "$ac_prog", so it can be a program name with args.
6351- set dummy $ac_prog ; ac_word=$2
6352- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
6353- $as_echo_n " checking for $ac_word ... " >&6 ; }
6354- if ${ac_cv_prog_PYTHON+: } false ; then :
6355- $as_echo_n " (cached) " >&6
6356- else
6357- if test -n " $PYTHON " ; then
6358- ac_cv_prog_PYTHON=" $PYTHON " # Let the user override the test.
6359- else
6360- as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
6361- for as_dir in $PATH
6362- do
6363- IFS=$as_save_IFS
6364- test -z " $as_dir " && as_dir=.
6365- for ac_exec_ext in ' ' $ac_executable_extensions ; do
6366- if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
6367- ac_cv_prog_PYTHON=" $ac_prog "
6368- $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
6369- break 2
6370- fi
6371- done
6372- done
6373- IFS=$as_save_IFS
6374-
6375- fi
6376- fi
6377- PYTHON=$ac_cv_prog_PYTHON
6378- if test -n " $PYTHON " ; then
6379- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $PYTHON " >&5
6380- $as_echo " $PYTHON " >&6 ; }
6381- else
6382- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
6383- $as_echo " no" >&6 ; }
6384- fi
6385-
6386-
6387- test -n " $PYTHON " && break
6388- done
6389- test -n " $PYTHON " || PYTHON=" not-found"
6390-
6391- if test " $PYTHON " = not-found; then
6392- OPCODEHGEN=" @echo python: $PYTHON ! cannot run Tools/scripts/generate_opcode_h.py"
6393- else
6394- OPCODEHGEN=" $PYTHON "
6395- fi
6396-
6397-
6398-
63996334case $MACHDEP in
64006335bsdos* |hp* |HP* )
64016336 # install -d does not work on BSDI or HP-UX
0 commit comments