Mercurial > mplayer.hg
changeset 4211:2c1ca684ff04
zr en/disable, libjpeg detection - patch by Rik Snel <rsnel@cube.dyndns.org>
author | arpi |
---|---|
date | Thu, 17 Jan 2002 01:27:20 +0000 |
parents | d43f0e4ac781 |
children | 3df2c500a2e9 |
files | configure |
diffstat | 1 files changed, 38 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Jan 17 01:15:31 2002 +0000 +++ b/configure Thu Jan 17 01:27:20 2002 +0000 @@ -154,6 +154,7 @@ --enable-3dfx build with 3dfx support [disable] --enable-tdfxfb build with tdfxfb support [disable] --enable-directfb build with DirectFB support [autodetect] + --enable-zr build with ZR36067/ZR36060 support [disable] Audio: --disable-ossaudio disable OSS sound support [autodetect] @@ -673,6 +674,7 @@ _xv=auto _sdl=auto _nas=auto +_jpeg=auto _png=auto _gl=auto _ggi=auto @@ -714,6 +716,7 @@ _3dfx=no _tdfxfb=no _directfb=auto +_zr=no _largefiles=no _vo2=no _language=en @@ -744,6 +747,8 @@ --disable-sdl) _sdl=no ;; --enable-nas) _nas=yes ;; --disable-nas) _nas=no ;; + --enable-jpeg) _jpeg=yes ;; + --disable-jpeg) _jpeg=no ;; --enable-png) _png=yes ;; --disable-png) _png=no ;; --enable-gl) _gl=yes ;; @@ -821,6 +826,8 @@ --disable-tdfxfb) _tdfxfb=no ;; --enable-directfb) _directfb=yes ;; --disable-directfb) _directfb=no ;; + --enable-zr) _zr=yes ;; + --disable-zr) _zr=no ;; --enable-mtrr) _mtrr=yes ;; --disable-mtrr) _mtrr=no ;; --enable-largefiles) _largefiles=yes ;; @@ -1825,6 +1832,34 @@ fi echores "$_dvb" +echocheck "JPEG support" +if test "$_jpeg" = auto; then + _jpeg=no +cat > $TMPC << EOF +#include <stdio.h> +#include <jpeglib.h> +int main(void) { return 0; } +EOF + cc_check -ljpeg && _jpeg=yes +fi +echores "$_jpeg" + +echocheck "zr" +if test "$_zr" = yes ; then + if test "$_jpeg" = yes ; then + _ld_jpeg='-ljpeg' + _def_zr='#define HAVE_ZR 1' + _vosrc="$_vosrc vo_zr.c" + _vomodules="zr $_vomodules" + echores "$_zr" + else + echores "jpeglib is required by zr, sorry" + _def_zr='#undef HAVE_ZR' + fi +else + _def_zr='#undef HAVE_ZR' + echores "$_zr" +fi echocheck "PNG support" if test "$_png" = auto ; then @@ -2800,7 +2835,7 @@ CC = $_cc AWK = $_awk # OPTFLAGS = -O4 $_profile $_debug $_march $_mcpu -pipe -fomit-frame-pointer -ffast-math -OPTFLAGS = $CFLAGS +OPTFLAGS = -Djpeg_fdct_ifast=jpeg_fdct_ifast2 $CFLAGS EXTRA_INC = $_inc_extra $_inc_gtk WIN32_PATH = -DWIN32_PATH=\\"$_win32libdir\\" @@ -2823,6 +2858,7 @@ GGI_LIB = $_ld_ggi MLIB_LIB = $_ld_mlib MLIB_INC = $_inc_mlib +JPEG_LIB = $_ld_jpeg PNG_LIB = $_ld_png SDL_LIB = $_ld_sdl SVGA_LIB = $_ld_svga @@ -3140,6 +3176,7 @@ $_def_3dfx $_def_tdfxfb $_def_directfb +$_def_zr $_def_mga $_def_xmga $_def_syncfb