[FFmpeg-devel] [PATCH] configure: fix metal detection and respect explicit disable

Aman Karmani ffmpeg at tmm1.net
Sun Dec 19 07:35:21 EET 2021


From: Aman Karmani <aman at tmm1.net>

Signed-off-by: Aman Karmani <aman at tmm1.net>
---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index d8b07c8e00..d9d41b2273 100755
--- a/configure
+++ b/configure
@@ -1758,6 +1758,7 @@ EXTERNAL_AUTODETECT_LIBRARY_LIST="
     libxcb_xfixes
     lzma
     mediafoundation
+    metal
     schannel
     sdl2
     securetransport
@@ -6328,13 +6329,13 @@ enabled appkit       && check_apple_framework AppKit
 enabled audiotoolbox && check_apple_framework AudioToolbox
 enabled avfoundation && check_apple_framework AVFoundation
 enabled coreimage    && check_apple_framework CoreImage
+enabled metal        && check_apple_framework Metal
 enabled videotoolbox && check_apple_framework VideoToolbox
 
 check_apple_framework CoreFoundation
 check_apple_framework CoreMedia
 check_apple_framework CoreVideo
 check_apple_framework CoreAudio
-check_apple_framework Metal
 
 enabled avfoundation && {
     disable coregraphics applicationservices
-- 
2.33.0



More information about the ffmpeg-devel mailing list