comparison configure @ 9022:b345f92422b4

This patch adds support for 4Front Technologies commercial Open Sound System (TM) driver for NetBSD and OpenBSD. Also, it stops unnecesarily pulling in the libossaudio compatibility library on NetBSD when ossaudio is disabled, as is already done on OpenBSD. (Other systems don't have a compatibility layer; they either have OSS audio in the kernel or they don't, so they wouldn't be affected.) Patch was committed to NetBSD pkgsrc by Johny C. Lam <jlam@netbsd.org>. Frederick Bruckman <fredb@immanent.net>
author arpi
date Sun, 19 Jan 2003 15:43:12 +0000
parents cd54e6e1c761
children 6dcba6346b88
comparison
equal deleted inserted replaced
9021:070b91093606 9022:b345f92422b4
3196 _aomodules="oss $_aomodules" 3196 _aomodules="oss $_aomodules"
3197 if test "$_linux_devfs" = yes; then 3197 if test "$_linux_devfs" = yes; then
3198 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' 3198 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"'
3199 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' 3199 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"'
3200 else 3200 else
3201 if netbsd || openbsd ; then 3201 cat > $TMPC << EOF
3202 #include <sys/ioctl.h>
3203 $_inc_soundcard
3204 #ifdef OPEN_SOUND_SYSTEM
3205 int main(void) { return 0; }
3206 #else
3207 #error Not the real thing
3208 #endif
3209 EOF
3210 _real_ossaudio=no
3211 cc_check && _real_ossaudio=yes
3212 if test "$_real_ossaudio" = yes; then
3213 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
3214 elif netbsd || openbsd ; then
3202 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"' 3215 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound"'
3203 openbsd && _ld_arch="$_ld_arch -lossaudio" 3216 _ld_arch="$_ld_arch -lossaudio"
3204 else 3217 else
3205 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' 3218 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"'
3206 fi 3219 fi
3207 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' 3220 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"'
3208 fi 3221 fi
4679 test "$_real" = yes && _ld_dl_dynamic='-rdynamic' 4692 test "$_real" = yes && _ld_dl_dynamic='-rdynamic'
4680 4693
4681 _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic" 4694 _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic"
4682 bsdos && _ld_arch="$_ld_arch -ldvd" 4695 bsdos && _ld_arch="$_ld_arch -ldvd"
4683 if netbsd ; then 4696 if netbsd ; then
4684 _ld_arch="$_ld_arch -lossaudio"
4685 x86 && _ld_arch="$_ld_arch -li386" 4697 x86 && _ld_arch="$_ld_arch -li386"
4686 fi 4698 fi
4687 4699
4688 _def_debug='#undef MP_DEBUG' 4700 _def_debug='#undef MP_DEBUG'
4689 test "$_debug" != "" && _def_debug='#define MP_DEBUG 1' 4701 test "$_debug" != "" && _def_debug='#define MP_DEBUG 1'