Ticket #1570: mplayer-1.0_rc2_p20090731-configure-fix-x264-test.patch
| File mplayer-1.0_rc2_p20090731-configure-fix-x264-test.patch, 1.0 KB (added by , 17 years ago) |
|---|
-
/var/tmp/portage/media-video/mplayer-1.0_rc2_p20090731-r1/work/mplayer-1.0_rc2_p20090731/
old new 7176 7176 7177 7177 7178 7178 echocheck "x264" 7179 if test "$_x264" = auto ; then7179 if test "$_x264" = auto || test "$_x264" = yes ; then 7180 7180 cat > $TMPC << EOF 7181 7181 #include <inttypes.h> 7182 7182 #include <x264.h> … … 7185 7185 #endif 7186 7186 int main(void) { x264_encoder_open((void*)0); return 0; } 7187 7187 EOF 7188 _x264 =no7188 _x264_tmp=no 7189 7189 for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do 7190 7190 cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264_tmp=yes && break 7191 7191 done 7192 if test "$_x264" = auto ; then 7193 if test "$_x264_tmp" = yes ; then 7194 _x264=yes 7195 else 7196 _x264=no 7197 fi 7198 else 7199 if test "$_x264_tmp" = no ; then 7200 die "x264 test failed" 7201 fi 7202 fi 7203 fi 7192 7204 7193 7205 if test "$_x264" = yes ; then 7194 7206 def_x264='#define CONFIG_X264 1'
