mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 12:22:22 +00:00
Actually run a detection whether external libass exists, instead
of just assuming it does when internal libass is disabled. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31266 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2bdc2412a1
commit
b2219eaa07
19
configure
vendored
19
configure
vendored
@ -6424,8 +6424,23 @@ EOF
|
||||
ass_internal=no
|
||||
res_comment="FreeType >= 2.2.1 needed"
|
||||
elif test "$ass_internal" = no ; then
|
||||
res_comment="external"
|
||||
extra_ldflags="$extra_ldflags -lass"
|
||||
cat > $TMPC << EOF
|
||||
#include <ass/ass.h>
|
||||
int main(void) {
|
||||
#if defined(LIBASS_VERSION) && LIBASS_VERSION >= 0x00907010
|
||||
ass_process_force_style(0);
|
||||
#else
|
||||
process_force_style(0);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
if cc_check -lass ; then
|
||||
res_comment="external"
|
||||
extra_ldflags="$extra_ldflags -lass"
|
||||
else
|
||||
_ass=no
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if test "$_ass" = yes ; then
|
||||
|
Loading…
Reference in New Issue
Block a user