rendered paste body 6575 echocheck "x264" 6576 if test "$_x264" = auto ; then 6577 cat > $TMPC << EOF 6578 #include <inttypes.h> 6579 #include <x264.h> 6580 #if X264_BUILD < 53 6581 #error We do not support old versions of x264. Get the latest from SVN. 6582 #endif 6583 int main(void) { x264_encoder_open((void*)0); return 0; } 6584 EOF 6585 _x264=no 6586 for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do 6587 cc_check $_ld_x264 && _libs_mencoder="$_libs_mencoder $_ld_x264" && _x264=yes && break 6588 done 6589 fi 6590 6591 if test "$_x264" = yes ; then 6592 _def_x264='#define HAVE_X264 1' 6593 _codecmodules="x264 $_codecmodules" 6594 test "$_x264_lavc" = auto && _x264_lavc=yes 6595 if test "$_x264_lavc" = yes ; then 6596 _def_x264_lavc='#define CONFIG_LIBX264 1' 6597 _libs_mplayer="$_libs_mplayer $_ld_x264" 6598 _libavencoders="$_libavencoders LIBX264_ENCODER" 6599 fi 6600 else 6601 _x264_lavc=no 6602 _def_x264='#undef HAVE_X264' 6603 _def_x264_lavc='#undef CONFIG_LIBX264' 6604 _nocodecmodules="x264 $_nocodecmodules" 6605 fi 6606 _res_comment="in libavcodec: $_x264_lavc" 6607 echores "$_x264"