mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
configure: check for python3 existence
This commit is contained in:
parent
bc1034aac2
commit
850f2b4511
13
configure
vendored
13
configure
vendored
@ -43,6 +43,15 @@ configuration="$*"
|
||||
|
||||
# Prefer these macros to full length text !
|
||||
# These macros only return an error code - NO display is done
|
||||
command_check() {
|
||||
echo >> "$TMPLOG"
|
||||
echo "$@" >> "$TMPLOG"
|
||||
"$@" >> "$TMPLOG" 2>&1
|
||||
TMPRES="$?"
|
||||
echo >> "$TMPLOG"
|
||||
return "$TMPRES"
|
||||
}
|
||||
|
||||
compile_check() {
|
||||
source="$1"
|
||||
shift
|
||||
@ -1088,6 +1097,10 @@ echocheck "working compiler"
|
||||
cflag_check "" || die "Compiler is not functioning correctly. Check your installation and custom CFLAGS $CFLAGS ."
|
||||
echo "yes"
|
||||
|
||||
echocheck "python3"
|
||||
command_check python3 -c '' || die "Python 3 is not functioning correctly. Check your installation and PATH."
|
||||
echo yes
|
||||
|
||||
if test -z "$_target" && x86 ; then
|
||||
cat > $TMPC << EOF
|
||||
int main(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user