Mercurial > mplayer.hg
changeset 6723:0a1caa7fc82a
vd_xvid need divx.h
author | albeu |
---|---|
date | Sat, 13 Jul 2002 12:02:57 +0000 |
parents | 27321e6b0b25 |
children | ab3d2c60b454 |
files | configure |
diffstat | 1 files changed, 5 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Jul 13 09:42:21 2002 +0000 +++ b/configure Sat Jul 13 12:02:57 2002 +0000 @@ -3550,44 +3550,38 @@ echocheck "XviD" cat > $TMPC << EOF #include <xvid.h> +#include <divx4.h> int main(void) { xvid_init(0, 0, 0, 0); return 0; } EOF if test "$_xvid" != no && cc_check -lm "$_xvidcore" ; then _xvid=yes _ld_xvid="$_xvidcore" _def_xvid='#define HAVE_XVID 1' + _def_divx4_h='#define HAVE_DIVX4_H 1' _codecmodules="xvid $_codecmodules" elif test "$_xvid" != no && cc_check -lm -lxvidcore ; then _xvid=yes _ld_xvid='-lxvidcore' _def_xvid='#define HAVE_XVID 1' + _def_divx4_h='#define HAVE_DIVX4_H 1' _codecmodules="xvid $_codecmodules" else _xvid=no _ld_xvid='' _def_xvid='#undef HAVE_XVID' + _def_divx4_h='#undef HAVE_DIVX4_H' _nocodecmodules="xvid $_nocodecmodules" fi echores "$_xvid" _xvidcompat=no -_def_divx4_h='#undef HAVE_DIVX4_H' if test "$_xvid" = yes ; then echocheck "DivX4 compatibility in XviD" cat > $TMPC << EOF #include <divx4.h> int main(void) { (void) decore(0, 0, 0, 0); return 0; } EOF - if cc_check -lm "$_ld_xvid" ; then - _xvidcompat='yes (using divx4.h)' - _def_divx4_h='#define HAVE_DIVX4_H 1' - else - cat > $TMPC << EOF -#include <decore.h> -int main(void) { (void) decore(0, 0, 0, 0); return 0; } -EOF - cc_check -lm "$_ld_xvid" && _xvidcompat='yes (using decore.h)' - fi + cc_check -lm "$_ld_xvid" && _xvidcompat=yes echores "$_xvidcompat" fi