# HG changeset patch # User iive # Date 1146769816 0 # Node ID 67a41ab8e9edebe9e05a9a008f9ec4b69ec0fb52 # Parent e68027956822129ae812e54a8ceb2ebcf7f72a74 x264 linking now requires explicit x11 libraries inclusion. As side effect this fix simplifies the complicated expression. diff -r e68027956822 -r 67a41ab8e9ed configure --- a/configure Thu May 04 16:34:05 2006 +0000 +++ b/configure Thu May 04 19:10:16 2006 +0000 @@ -6452,10 +6452,17 @@ int main(void) { x264_encoder_open((void*)0); return 0; } EOF _ld_x264="$_ld_x264 -lx264 $_ld_pthread" -if test "$_x264" != no && \ -( cc_check $_inc_x264 $_ld_x264 $_ld_lm || \ -( test "$_x11" = yes && cc_check $_inc_x264 $_inc_x11 $_ld_x264 $_ld_x11 $_ld_lm )) ; \ -then +if test "$_x264" != no ; then + _x264=no + if cc_check $_inc_x264 $_ld_x264 $_ld_lm ; then + _x264=yes + elif test "$_x11" = yes && cc_check $_inc_x264 $_inc_x11 $_ld_x264 $_ld_x11 $_ld_lm ; then + _x264=yes + _ld_x264="$_ld_x264 $_ld_x11" + fi +fi + +if test "$_x264" = yes ; then _x264=yes _def_x264='#define HAVE_X264 1' _codecmodules="x264 $_codecmodules"