Skip to content

Commit 41d3e19

Browse files
committed
configure.ac: if file not foud, print missing lib
1 parent 434d23d commit 41d3e19

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

configure.ac

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,14 @@ AC_ARG_ENABLE(file,
19831983
[file_req=$build_default]
19841984
)
19851985

1986-
if test $file_req != no && test $libavcodec = yes && test $libswscale = yes; then
1986+
if test "${file_req?}" = no; then
1987+
unset missing_item
1988+
elif test "${libavcodec?}" != yes; then
1989+
missing_item=libavcodec
1990+
elif test "${libswscale?}" != yes; then
1991+
missing_item=libswscale
1992+
else
1993+
missing_item=libavformat
19871994
PKG_CHECK_MODULES([LIBAVFORMAT], [libavformat], [found_libavformat=yes], [found_libavformat=no])
19881995
if test "$found_libavformat" != yes; then
19891996
SAVED_LIBS=$LIBS
@@ -2010,7 +2017,8 @@ src/video_capture/file.o "$LIBAVCODEC_LIBS $LIBAVFORMAT_LIBS $LIBSWSCALE_LIBS"
20102017
fi
20112018
fi
20122019

2013-
ENSURE_FEATURE_PRESENT([${file_req?}], [${file?}], [Vidcap file input dependencies not found])
2020+
ENSURE_FEATURE_PRESENT([${file_req?}], [${file?}], [Vidcap file input ]dnl
2021+
[dependencies not found: ${missing_item?}])
20142022

20152023
# -------------------------------------------------------------------------------------------------
20162024
# DRM display

0 commit comments

Comments
 (0)