configure.ac: fix avfoundation + ensure

AV Foundation was never enabled due to a error in configure

broken since f1745fba (2025-05-23)
This commit is contained in:
Martin Pulec
2025-12-04 14:36:57 +01:00
parent 3b713aae48
commit 247a594f47

View File

@@ -1288,7 +1288,7 @@ AC_ARG_ENABLE(avfoundation,
[avfoundation_req=auto]
)
if test "$system?" = MacOSX && test "${avfoundation_req?}" != no
if test "${system?}" = MacOSX && test "${avfoundation_req?}" != no
then
AVFOUNDATION_LIB="-framework AppKit -framework AVFoundation -framework CoreMedia -framework CoreVideo"
AVFOUNDATION_OBJ="src/video_capture/avfoundation.o"
@@ -1296,6 +1296,9 @@ then
avfoundation=yes
fi
ENSURE_FEATURE_PRESENT([${avfoundation_req?}], [${avfoundation?}],
[AV Foundation not found])
# ------------------------------------------------------------------------------
# SDL1/2/3 Stuff
# ------------------------------------------------------------------------------