summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure b/configure
index 529ef8577a..7009aada48 100755
--- a/configure
+++ b/configure
@@ -6388,7 +6388,16 @@ cat > $TMPC << EOF
#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 @@ fi
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; }