comparison configure @ 31507:a99971661060

libvpx does not require static libavcodec
author siretart
date Sun, 27 Jun 2010 19:55:17 +0000
parents c58656034ad2
children effd6503b84c
comparison
equal deleted inserted replaced
31506:c58656034ad2 31507:a99971661060
7575 echores "$_libschroedinger_lavc" 7575 echores "$_libschroedinger_lavc"
7576 7576
7577 echocheck "libvpx" 7577 echocheck "libvpx"
7578 if test "$_libvpx_lavc" = auto; then 7578 if test "$_libvpx_lavc" = auto; then
7579 _libvpx_lavc=no 7579 _libvpx_lavc=no
7580 if test "$_libavcodec_a" != yes; then
7581 res_comment="libavcodec (static) is required by libvpx, sorry"
7582 else
7583 cat > $TMPC << EOF 7580 cat > $TMPC << EOF
7584 #include <vpx/vpx_encoder.h> 7581 #include <vpx/vpx_encoder.h>
7585 #include <vpx/vpx_decoder.h> 7582 #include <vpx/vpx_decoder.h>
7586 #include <vpx/vp8dx.h> 7583 #include <vpx/vp8dx.h>
7587 #include <vpx/vp8cx.h> 7584 #include <vpx/vp8cx.h>
7591 vpx_codec_enc_init(NULL, &vpx_codec_vp8_dx_algo, NULL, 0); 7588 vpx_codec_enc_init(NULL, &vpx_codec_vp8_dx_algo, NULL, 0);
7592 return 0; 7589 return 0;
7593 } 7590 }
7594 EOF 7591 EOF
7595 cc_check -lvpx && _libvpx_lavc=yes && extra_ldflags="$extra_ldflags -lvpx" 7592 cc_check -lvpx && _libvpx_lavc=yes && extra_ldflags="$extra_ldflags -lvpx"
7596 fi
7597 fi 7593 fi
7598 if test "$_libvpx_lavc" = yes ; then 7594 if test "$_libvpx_lavc" = yes ; then
7599 def_libvpx_lavc='#define CONFIG_LIBVPX 1' 7595 def_libvpx_lavc='#define CONFIG_LIBVPX 1'
7600 _libavdecoders="$_libavdecoders LIBVPX_DECODER" 7596 _libavdecoders="$_libavdecoders LIBVPX_DECODER"
7601 _libavencoders="$_libavencoders LIBVPX_ENCODER" 7597 _libavencoders="$_libavencoders LIBVPX_ENCODER"