]> git.alsa-project.org Git - alsa-utils.git/commitdiff
configure: fix new libatopology check
authorJaroslav Kysela <perex@perex.cz>
Fri, 3 Jan 2020 22:46:51 +0000 (23:46 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 9 Feb 2020 19:52:30 +0000 (20:52 +0100)
configure.ac

index 4bee49be81ba823e59c0db3e075fc8e1e942c48e..b7ed81a0d32cc3bd4fc5c60da1fe47767b26481c 100644 (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
     AC_DEFINE([HAVE_SEQ_CLIENT_INFO_GET_PID], 1, [alsa-lib supports snd_seq_client_info_get_pid])
 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
@@ -70,11 +71,6 @@ AM_CONDITIONAL(HAVE_TOPOLOGY, test "$have_topology" = "yes")
 AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "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
 alsabat_backend_tiny=
 AC_ARG_ENABLE(alsabat_backend_tiny,