add support for newer libdca

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24985 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rathann 2007-11-06 23:44:53 +00:00
parent 58ecb061ad
commit b5c7ff5192
1 changed files with 4 additions and 2 deletions

6
configure vendored
View File

@ -5983,11 +5983,13 @@ if test "$_libdca" = auto ; then
#include <dts.h>
int main(void) { dts_init (0); return 0; }
EOF
cc_check -ldts $_ld_lm && _libdca=yes
for _ld_dca in -ldts -ldca ; do
cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \
&& _libdca=yes && break
done
fi
if test "$_libdca" = yes ; then
_def_libdca='#define USE_LIBDCA 1'
_ld_extra="$_ld_extra -ldts"
_codecmodules="libdca $_codecmodules"
else
_def_libdca='#undef USE_LIBDCA'