Commit 5d562483 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

PulseAudio: define HAVE_PULSE

This will be needed if/when we get a PulseAudio input and SD.
parent 98a2c4f8
...@@ -3479,12 +3479,20 @@ fi ...@@ -3479,12 +3479,20 @@ fi
dnl dnl
dnl Pulseaudio module dnl Pulseaudio module
dnl dnl
PKG_ENABLE_MODULES_VLC([PULSE], [], [libpulse >= 0.9.22], [PulseAudio support], [auto]) AC_ARG_ENABLE(pulse,
[AS_HELP_STRING([--enable-pulse],
dnl [use the PulseAudio client library (default auto)])])
dnl Portaudio module have_pulse="no"
dnl AS_IF([test "${enable_pulse}" != "no"], [
PKG_ENABLE_MODULES_VLC([PORTAUDIO], [], [portaudio-2.0], [Portaudio library support], [auto]) PKG_CHECK_MODULES([PULSE], [libpulse >= 0.9.22], [
have_pulse="yes"
], [
AS_IF([test "x${enable_pulse}" != "x"], [
AC_MSG_ERROR([$PULSE_PKG_ERRORS. PulseAudio 0.9.22 or later required.])
])
])
])
AM_CONDITIONAL([HAVE_PULSE], [test "${have_pulse}" = "yes"])
dnl dnl
dnl ALSA module dnl ALSA module
...@@ -3503,6 +3511,11 @@ AS_IF([test "${enable_alsa}" != "no"], [ ...@@ -3503,6 +3511,11 @@ AS_IF([test "${enable_alsa}" != "no"], [
]) ])
AM_CONDITIONAL([HAVE_ALSA], [test "${have_alsa}" = "yes"]) AM_CONDITIONAL([HAVE_ALSA], [test "${have_alsa}" = "yes"])
dnl
dnl Portaudio module
dnl
PKG_ENABLE_MODULES_VLC([PORTAUDIO], [], [portaudio-2.0], [Portaudio library support], [auto])
dnl dnl
dnl win32 waveOut plugin dnl win32 waveOut plugin
dnl dnl
......
...@@ -6,7 +6,6 @@ SOURCES_waveout = waveout.c windows_audio_common.h ...@@ -6,7 +6,6 @@ SOURCES_waveout = waveout.c windows_audio_common.h
SOURCES_portaudio = portaudio.c SOURCES_portaudio = portaudio.c
SOURCES_auhal = auhal.c SOURCES_auhal = auhal.c
SOURCES_jack = jack.c SOURCES_jack = jack.c
SOURCES_pulse = pulse.c
SOURCES_audioqueue = audioqueue.c SOURCES_audioqueue = audioqueue.c
libvlc_LTLIBRARIES += libaout_file_plugin.la libvlc_LTLIBRARIES += libaout_file_plugin.la
...@@ -18,3 +17,11 @@ libalsa_plugin_la_DEPENDENCIES = ...@@ -18,3 +17,11 @@ libalsa_plugin_la_DEPENDENCIES =
if HAVE_ALSA if HAVE_ALSA
libvlc_LTLIBRARIES += libalsa_plugin.la libvlc_LTLIBRARIES += libalsa_plugin.la
endif endif
libpulse_plugin_la_SOURCES = pulse.c
libpulse_plugin_la_CFLAGS = $(AM_CFLAGS) $(PULSE_CFLAGS)
libpulse_plugin_la_LIBADD = $(AM_LIBADD) $(PULSE_LIBADD)
libpulse_plugin_la_DEPENDENCIES =
if HAVE_PULSE
libvlc_LTLIBRARIES += libpulse_plugin.la
endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment