Skip to content

Commit

Permalink
configure.ac: lavc cuda conv check improvement
Browse files Browse the repository at this point in the history
- assume the feature, not cuda, when ensuring
- improved the message what can be wrong
  • Loading branch information
MartinPulec committed Sep 12, 2024
1 parent 92565ca commit 34b6ffb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 34b6ffb

Please sign in to comment.