changeset 18386:e68027956822

check for XviD compiled with pthread support
author iive
date Thu, 04 May 2006 16:34:05 +0000
parents 4cdb4082d899
children 67a41ab8e9ed
files configure
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu May 04 12:36:34 2006 +0000
+++ b/configure	Thu May 04 16:34:05 2006 +0000
@@ -6388,7 +6388,16 @@
 #include <xvid.h>
 int main(void) { xvid_global(0, 0, 0, 0); return 0; }
 EOF
-  if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then
+  if test "$_xvid" != no ;then 
+    if cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then 
+    _xvid4=yes 
+    elif cc_check $_inc_xvid $_ld_xvid $_ld_lm $_ld_pthread ; then
+    _xvid4=yes;
+    _ld_xvid="$_ld_xvid $_ld_pthread"
+    fi
+  fi
+  
+  if test "$_xvid4" = yes ; then
     _xvid=yes
     _xvid4=yes
     _def_xvid3='#undef HAVE_XVID3'
@@ -6405,7 +6414,7 @@
 echores "$_xvid"
 
 if test "$_xvid4" = yes ; then
-  echocheck "XviD 1.1 or higher"
+  echocheck "XviD two pass plugin"
   cat > $TMPC << EOF
 #include <xvid.h>
 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; }