Ticket #1570: mplayer-1.0_rc2_p20090731-configure-fix-x264-test.3.patch
| File mplayer-1.0_rc2_p20090731-configure-fix-x264-test.3.patch, 1.6 KB (added by , 17 years ago) |
|---|
-
(a) configure_orig vs. (b) configure
a b 7176 7176 7177 7177 7178 7178 echocheck "x264" 7179 if test "$_x264" = auto ; then7179 if test "$_x264" = auto || test "$_x264" = yes || test "_x264_lavc" = auto || test "$_x264_lavc" = 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=no 7188 _x264_tmp=no 7189 _x264_lavc_tmp=no 7189 7190 for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do 7190 cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264_tmp=yes && break7191 cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264_tmp=yes && _x264_lavc_tmp=yes && break 7191 7192 done 7193 if test "$_x264" = auto ; then 7194 if test "$_x264_tmp" = yes ; then 7195 _x264=yes 7196 else 7197 _x264=no 7198 fi 7199 else 7200 if test "$_x264_tmp" = no ; then 7201 die "x264 test failed" 7202 fi 7203 fi 7204 if test "$_x264_lavc" = auto ; then 7205 if test "$_x264_lavc_tmp" = yes ; then 7206 _x264_lavc=yes 7207 else 7208 _x264_lavc=no 7209 fi 7210 else 7211 if test "$_x264_lavc_tmp" = no ; then 7212 die "x264_lavc test failed" 7213 fi 7214 fi 7215 fi 7192 7216 7193 7217 if test "$_x264" = yes ; then 7194 7218 def_x264='#define CONFIG_X264 1' 7219 libs_mplayer="$libs_mplayer $_ld_x264" 7195 7220 _codecmodules="x264 $_codecmodules" 7196 7221 test "$_x264_lavc" = auto && _x264_lavc=yes 7197 7222 if test "$_x264_lavc" = yes ; then 7198 7223 def_x264_lavc='#define CONFIG_LIBX264 1' 7199 libs_m player="$libs_mplayer $_ld_x264"7224 libs_mencoder="$libs_mencoder $_ld_x264" 7200 7225 _libavencoders="$_libavencoders LIBX264_ENCODER" 7201 7226 fi 7202 7227 else
