From 8c0e0e019b84d84e12f8f03d03ac72f206ced390 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 8 Aug 2013 17:14:17 -0700 Subject: [PATCH] Add check for PulseAudio. --- configure.ac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/configure.ac b/configure.ac index ca6ad3db..1045d62e 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,29 @@ fi AC_SUBST(VORBIS_LIBS) +# +# PulseAudio +# + +have_pulse=yes +PULSE_LIBS= + +AC_CHECK_LIB([pulse-simple], [pa_simple_new], [PULSE_LIBS="$PULSE_LIBS -lpulse-simple"], [have_pulse=no]) +AM_CONDITIONAL([ENABLE_PULSE], [test "x${have_pulse}" = "xyes"]) + +if test "x${have_pulse}" = "xno" +then + AC_MSG_WARN([ + -------------------------------------------- + Unable to find libpulse-simple + Sound support for VNC will be disabled + --------------------------------------------]) +else + AC_DEFINE([ENABLE_PULSE]) +fi + +AC_SUBST(PULSE_LIBS) + # # PANGO # @@ -511,6 +534,7 @@ $PACKAGE_NAME version $PACKAGE_VERSION libssl .............. ${have_ssl} libVNCServer ........ ${have_libvncserver} libvorbis ........... ${have_vorbis} + libpulse-simple ..... ${have_pulse} Protocol support: