From 1999d5cf555c6f373549840d40f8565dcabad93b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 11 Jul 2019 15:23:08 +0200 Subject: conditionally compile pulse.c only when using pulseaudio fixes #352 --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index cf9e430..95009ac 100644 --- a/configure.ac +++ b/configure.ac @@ -80,16 +80,19 @@ AC_CANONICAL_HOST PKG_CHECK_MODULES([CONFUSE], [libconfuse]) PKG_CHECK_MODULES([YAJL], [yajl]) +pulse=false case $host_os in linux*) PKG_CHECK_MODULES([NLGENL], [libnl-genl-3.0]) PKG_CHECK_MODULES([ALSA], [alsa]) PKG_CHECK_MODULES([PULSE], [libpulse]) + pulse=true ;; netbsd*) AC_SEARCH_LIBS([prop_string_create], [prop]) ;; esac +AM_CONDITIONAL([PULSE], [test x$pulse = xtrue]) dnl TODO: check for libbsd for GNU/kFreeBSD -- cgit v1.2.3