From 78fea15390a9d1c8e81a059e9685e4df38fb381e Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 18 Feb 2020 19:44:36 +0100 Subject: [PATCH] alsa.m4: another fix to not link all binaries with -latopology Preserve LIBS when the -latopology is tested. It's added later. Signed-off-by: Jaroslav Kysela --- utils/alsa.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/alsa.m4 b/utils/alsa.m4 index 320e4336..04cc8808 100644 --- a/utils/alsa.m4 +++ b/utils/alsa.m4 @@ -160,11 +160,13 @@ AC_CHECK_LIB([asound], [snd_ctl_open],, ) if test "x$enable_atopology" = "xyes"; then alsa_topology_found=yes +alsa_save_LIBS2="$LIBS" AC_CHECK_LIB([atopology], [snd_tplg_new],, [ifelse([$3], , [AC_MSG_ERROR(No linkable libatopology was found.)]) alsa_topology_found=no, ] ) +LIBS="$alsa_save_LIBS2" fi else if test "x$enable_atopology" = "xyes"; then -- 2.47.3