[vlc-commits] [Git][videolan/vlc][3.0.x] configure: detect SpatialaudioVersion.h presence using the library version
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Aug 25 13:35:00 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
d3df7feb by Steve Lhomme at 2026-08-25T13:27:04+00:00
configure: detect SpatialaudioVersion.h presence using the library version
Just like in meson. When the system has a newer version of the library installed
but pkg-config points to a different version, it will detect it's present even though
we don't build with that version.
(cherry picked from commit 23e672fdc178898eff42f4ef6decadff23f9ce60)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
1 changed file:
- configure.ac
Changes:
=====================================
configure.ac
=====================================
@@ -2927,12 +2927,9 @@ dnl
PKG_ENABLE_MODULES_VLC([SPATIALAUDIO], [], [spatialaudio], [Ambisonic channel mixer and binauralizer], [auto])
AS_IF([test -n ${SPATIALAUDIO_CFLAGS+set}], [
- VLC_SAVE_FLAGS
- AX_APPEND_FLAG([$SPATIALAUDIO_CFLAGS], [CFLAGS])
- AC_CHECK_HEADER([spatialaudio/SpatialaudioVersion.h], [
- AX_APPEND_FLAG([-DHAVE_SPATIALAUDIOVERSION_H=1], [SPATIALAUDIO_CFLAGS])
- ])
- VLC_RESTORE_FLAGS
+ PKG_CHECK_MODULES(SPATIALAUDIO_040, [spatialaudio >= 0.4.0], [
+ AX_APPEND_FLAG([-DHAVE_SPATIALAUDIOVERSION_H=1], [SPATIALAUDIO_CFLAGS])
+ ],[:])
])
dnl
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d3df7feb44436e10944dfe39403285adc4252d58
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d3df7feb44436e10944dfe39403285adc4252d58
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list