summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRudolf Polzer <divverent@xonotic.org>2012-08-16 11:08:38 +0200
committerwm4 <wm4@nowhere>2012-08-16 17:16:05 +0200
commit850f2b4511608e4b19f15c645416d962ec5e1af1 (patch)
treea2dfc439986a856712cad9c9344f468857a53ecc
parentbc1034aac2bbe6dd51b4e7c3aaf4589702034540 (diff)
downloadmpv-850f2b4511608e4b19f15c645416d962ec5e1af1.tar.bz2
mpv-850f2b4511608e4b19f15c645416d962ec5e1af1.tar.xz
configure: check for python3 existence
-rwxr-xr-xconfigure13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure b/configure
index 9f2ed5828c..2e6187ad37 100755
--- a/configure
+++ b/configure
@@ -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) {