summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2013-09-28 18:01:12 +0200
committerwm4 <wm4@nowhere>2013-10-03 23:14:03 +0200
commit32894736780ea63e5fea456de27650fc27ec57c6 (patch)
treea72fe21baacc223136b313c66717069172400722 /configure
parentbdc56771eb8fa06f47599d90370017a6791e631b (diff)
downloadmpv-32894736780ea63e5fea456de27650fc27ec57c6.tar.bz2
mpv-32894736780ea63e5fea456de27650fc27ec57c6.tar.xz
audio/out: add sndio support
Based on an earlier patch for mplayer by Alexandre Ratchov <alex@caoua.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 23 insertions, 0 deletions
diff --git a/configure b/configure
index 32525f9de9..2c41e05a34 100755
--- a/configure
+++ b/configure
@@ -364,6 +364,7 @@ Audio output:
--disable-alsa disable ALSA audio output [autodetect]
--disable-ossaudio disable OSS audio output [autodetect]
--disable-rsound disable RSound audio output [autodetect]
+ --disable-sndio disable sndio audio output [autodetect]
--disable-pulse disable Pulseaudio audio output [autodetect]
--disable-portaudio disable PortAudio audio output [autodetect]
--disable-jack disable JACK audio output [autodetect]
@@ -459,6 +460,7 @@ _lcms2=auto
_xinerama=auto
_vm=auto
_xf86keysym=auto
+_sndio=auto
_alsa=auto
_select=yes
_radio=no
@@ -625,6 +627,8 @@ for ac_option do
--disable-ossaudio) _ossaudio=no ;;
--enable-rsound) _rsound=yes ;;
--disable-rsound) _rsound=no ;;
+ --enable-sndio) _sndio=yes ;;
+ --disable-sndio) _sndio=no ;;
--enable-pulse) _pulse=yes ;;
--disable-pulse) _pulse=no ;;
--enable-portaudio) _portaudio=yes ;;
@@ -2323,6 +2327,23 @@ else
fi
+echocheck "sndio"
+if test "$_sndio" = auto ; then
+ _sndio=no
+ statement_check sndio.h 'struct sio_par par; sio_initpar(&par);' -lsndio && _sndio=yes
+fi
+echores "$_sndio"
+
+if test "$_sndio" = yes ; then
+ def_sndio='#define CONFIG_SNDIO 1'
+ aomodules="sndio $_aomodules"
+ libs_mplayer="$libs_mplayer -lsndio"
+else
+ def_sndio='#undef CONFIG_SNDIO'
+ noaomodules="sndio $_noaomodules"
+fi
+
+
echocheck "pulse"
if test "$_pulse" = auto ; then
_pulse=no
@@ -3290,6 +3311,7 @@ PVR = $_pvr
RADIO=$_radio
RADIO_CAPTURE=$_radio_capture
RSOUND = $_rsound
+SNDIO = $_sndio
STREAM_CACHE = $_stream_cache
TV = $_tv
TV_V4L2 = $_tv_v4l2
@@ -3426,6 +3448,7 @@ $def_ossaudio_devmixer
$def_pulse
$def_portaudio
$def_rsound
+$def_sndio
$def_ladspa
$def_libbs2b