[vlc-commits] [Git][videolan/vlc][master] configure: only use PKG_CHECK_MODULES to check the version of asdcplib

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Apr 23 10:35:28 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8654d2f2 by Steve Lhomme at 2026-04-23T09:49:33+00:00
configure: only use PKG_CHECK_MODULES to check the version of asdcplib

Ref. #29792

Co-authored-by: Alexandre Janniaux <ajanni at videolabs.io>

- - - - -


1 changed file:

- configure.ac


Changes:

=====================================
configure.ac
=====================================
@@ -2464,19 +2464,23 @@ AM_CONDITIONAL([HAVE_AVFOUNDATION], [test "${have_avfoundation}" != "no"])
 dnl
 dnl  DCP plugin (using asdcplib)
 dnl
-PKG_WITH_MODULES([ASDCP], [asdcplib], [
-    have_asdcp="yes"
-
-    dnl asdcplib doesn't provide a version define
+ASDCPLIB_FACTORY=0
+PKG_WITH_MODULES([ASDCP], [asdcplib])
+AS_IF([test "${enable_asdcp}" = "yes"],[
+    dnl asdcplib does not provide a version define
     dnl check the factory necessary API from the package version
-    PKG_WITH_MODULES([ASDCP], [asdcplib >= 2.12.2], [
+    AC_MSG_CHECKING([asdcplib API version])
+    ($PKG_CONFIG --print-errors "asdcplib >= 2.12.2") 2>&1
+    ac_status=$?
+    AS_IF([test $ac_status = 0],[
         ASDCPLIB_FACTORY=1
+        AC_MSG_RESULT([2.12.2 API])
     ],[
-        ASDCPLIB_FACTORY=0
+        AC_MSG_RESULT([old API])
     ])
 ])
 AC_SUBST([ASDCPLIB_FACTORY])
-AM_CONDITIONAL([HAVE_ASDCP], [test "${have_asdcp}" = "yes"])
+AM_CONDITIONAL([HAVE_ASDCP], [test "${enable_asdcp}" = "yes"])
 
 dnl
 dnl  Demux plugins



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8654d2f27e918be876323b679f941e1dc6421b6e

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8654d2f27e918be876323b679f941e1dc6421b6e
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list