1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 04:42:10 +00:00

configure: fix recently added tests

Commit 4d016a9 added some configure tests using statement_check.
They wrongly used $_ld_tmp, which causes random failure, depending on
whether the previous test using $_ld_tmp was successful. This happened
because I blindly copied the statement_checks from somewhere else.
Fix them.
This commit is contained in:
wm4 2013-02-11 01:02:28 +01:00
parent 01869d1391
commit f7636474eb

4
configure vendored
View File

@ -2665,7 +2665,7 @@ fi
echocheck "libavcodec AVCodecDescriptor API"
_avcodec_codec_desc_api=no
statement_check libavcodec/avcodec.h 'const AVCodecDescriptor *desc = avcodec_descriptor_get_by_name("c")' $_ld_tmp && _avcodec_codec_desc_api=yes
statement_check libavcodec/avcodec.h 'const AVCodecDescriptor *desc = avcodec_descriptor_get_by_name("c")' && _avcodec_codec_desc_api=yes
if test "$_avcodec_codec_desc_api" = yes ; then
def_avcodec_codec_desc_api='#define HAVE_AVCODEC_CODEC_DESC_API 1'
else
@ -2676,7 +2676,7 @@ echores "$_avcodec_codec_desc_api"
echocheck "libavcodec av_codec_is_decoder API"
_avcodec_is_decoder_api=no
statement_check libavcodec/avcodec.h 'av_codec_is_decoder(NULL)' $_ld_tmp && _avcodec_is_decoder_api=yes
statement_check libavcodec/avcodec.h 'av_codec_is_decoder(NULL)' && _avcodec_is_decoder_api=yes
if test "$_avcodec_is_decoder_api" = yes ; then
def_avcodec_is_decoder_api='#define HAVE_AVCODEC_IS_DECODER_API 1'
else