From 40282e3ef7c4daf7f7aca14b0947b9b79904559d Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Tue, 17 Feb 2026 15:00:41 +0300
Subject: [PATCH] Python3/python check in configure.ac

---
 cinelerra-5.1/configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index 8bb04d06..4cfa2b11 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -29,6 +29,11 @@ if test x"$LIBTOOL" == x"no" ; then
 AC_MSG_ERROR([Please install libtool])
 fi
 
+AC_CHECK_PROGS(PYTHON,[python3 python],[python])
+if test x"$PYTHON" == x"no" ; then
+AC_MSG_ERROR([Please install python/python3])
+fi
+
 m4_ifdef(
     [AX_APPEND_COMPILE_FLAGS],
     [],
-- 
2.53.0

