diff options
author | wm4 <wm4@nowhere> | 2013-02-11 01:02:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-11 01:08:48 +0100 |
commit | f7636474eb661587c74486fcc3f1038f4e26b68b (patch) | |
tree | b28055a9d33943a11be8b3dc04b2caf426c7987a | |
parent | 01869d1391fc5cc843e132f9d05d6896ba5b4d6b (diff) | |
download | mpv-f7636474eb661587c74486fcc3f1038f4e26b68b.tar.bz2 mpv-f7636474eb661587c74486fcc3f1038f4e26b68b.tar.xz |
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.
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |