diff options
author | Grigori Goronzy <greg@blackbox> | 2009-06-23 06:31:13 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-06-24 20:49:21 +0200 |
commit | 91d0d3a0824c755608c1c69d6b1192d114a50a96 (patch) | |
tree | 627236b3a571856917980dd58c2d44a89ecf4294 /configure | |
parent | c67b681e4c87bc28e39c4897062b2c492d067c34 (diff) | |
download | mpv-91d0d3a0824c755608c1c69d6b1192d114a50a96.tar.bz2 mpv-91d0d3a0824c755608c1c69d6b1192d114a50a96.tar.xz |
Add OSS4 vmix volume control to ao_oss
Support for per-application volume control, introduced by OSS4.
This adds a check in configure to add the proper include path
to the CFLAGS, if needed. The path is taken from /etc/oss.conf.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -5351,6 +5351,15 @@ EOF cc_check && _real_ossaudio=yes if test "$_real_ossaudio" = yes; then def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' + # Check for OSS4 headers (override default headers) + # Does not apply to systems where OSS4 is native (e.g. FreeBSD) + if test -f /etc/oss.conf; then + . /etc/oss.conf + _ossinc="$OSSLIBDIR/include" + if test -f "$_ossinc/sys/soundcard.h"; then + extra_cflags="-I$_ossinc $extra_cflags" + fi + fi elif netbsd || openbsd ; then def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' extra_ldflags="$extra_ldflags -lossaudio" |