configure: fix new libatopology check

This commit is contained in:
Jaroslav Kysela 2020-01-03 23:46:51 +01:00
parent 56e1b879d4
commit 996a638e04

View file

@ -49,6 +49,7 @@ AC_CHECK_LIB([asound], [snd_seq_client_info_get_pid], [HAVE_SEQ_CLIENT_INFO_GET_
if test "$HAVE_SEQ_CLIENT_INFO_GET_PID" = "yes" ; then if test "$HAVE_SEQ_CLIENT_INFO_GET_PID" = "yes" ; then
AC_DEFINE([HAVE_SEQ_CLIENT_INFO_GET_PID], 1, [alsa-lib supports snd_seq_client_info_get_pid]) AC_DEFINE([HAVE_SEQ_CLIENT_INFO_GET_PID], 1, [alsa-lib supports snd_seq_client_info_get_pid])
fi fi
AC_CHECK_LIB([atopology], [snd_tplg_save], [have_topology="no"])
# #
# NOTE: The library 'libffado' (at least v2.4.1) executes ctor/dtor of instances # NOTE: The library 'libffado' (at least v2.4.1) executes ctor/dtor of instances
@ -70,11 +71,6 @@ AM_CONDITIONAL(HAVE_TOPOLOGY, test "$have_topology" = "yes")
AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes") AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes")
AM_CONDITIONAL(HAVE_FFADO, test "$have_ffado" = "yes") AM_CONDITIONAL(HAVE_FFADO, test "$have_ffado" = "yes")
# old libasound with the topology routines in the main library
if test "x$have_topology" = "xyes" -a "x$ALSA_TOPOLOGY_LIBS" = "x"; then
ALSA_TOPOLOGY_LIBS="$ALSA_LIBS"
fi
dnl Use tinyalsa dnl Use tinyalsa
alsabat_backend_tiny= alsabat_backend_tiny=
AC_ARG_ENABLE(alsabat_backend_tiny, AC_ARG_ENABLE(alsabat_backend_tiny,