From b68e9f33bb275033006efa2de74c5f76dca645fd Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Tue, 5 May 2026 21:02:51 -0400
Subject: [PATCH 4/4] fix lcms2 so it auto-sets to no if not found

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

diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac
index 0a198ea1..05499ad8 100644
--- a/cinelerra-5.1/configure.ac
+++ b/cinelerra-5.1/configure.ac
@@ -738,8 +738,9 @@ if test "x$HAVE_LIBZIMG" != "xyes" -a "x$WANT_LIBZIMG" = "xyes"; then
 fi
 
 CHECK_LIB([LIBLCMS2], [lcms2], [cmsOpenProfileFromMemTHR])
-if test "x$HAVE_LIBLCMS2" != "xyes" -a "x$WANT_LIBLCMS2" = "xyes"; then
-  AC_MSG_ERROR([requires lcms2 support.])
+if test "x$HAVE_LIBLCMS2" != "xyes" -a "x$WANT_LIBLCMS2" != "xno"; then
+  AC_MSG_WARN([requires optional lcms2 support.])
+  WANT_LIBLCMS2="no"
 fi
 
 #CHECK_LIB([NVENC], [nvidia-encode], [NvEncodeAPICreateInstance])
-- 
2.30.2

