From 34b6ffbaa757943798cebe270c65bfeaf7eeeb87 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 12 Sep 2024 11:56:09 +0200 Subject: [PATCH] configure.ac: lavc cuda conv check improvement - assume the feature, not cuda, when ensuring - improved the message what can be wrong --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6146fbdfb..44278ee73 100644 --- a/configure.ac +++ b/configure.ac @@ -1787,6 +1787,7 @@ ENSURE_FEATURE_PRESENT([$libswscale_req], [$libswscale], [Libswscale not found]) # ------------------------------------------------------------------------------------------------- # Libav # ------------------------------------------------------------------------------------------------- +lavc_cuda=no libavcodec=no libavcodec_audio=no AC_ARG_ENABLE(libavcodec, @@ -1869,7 +1870,8 @@ else fi ENSURE_FEATURE_PRESENT([$libavcodec_req], [$libavcodec], [Libavcodec not found]) -ENSURE_FEATURE_PRESENT([$lavc_cuda_conv_req], [$FOUND_CUDA], [CUDA not found for lavc CUDA convs]) +ENSURE_FEATURE_PRESENT([$lavc_cuda_conv_req], [$lavc_cuda], + [either libavcodec or CUDA>=9 missing for lavc_cuda]) # ------------------------------------------------------------------------------------------------- # File vidcap/display