Mercurial > mplayer.hg
changeset 525:4f60cf0f5148
png detection, Xv detect fixes
author | arpi_esp |
---|---|
date | Thu, 19 Apr 2001 19:59:11 +0000 |
parents | 9105fc95636c |
children | e537bdec1ecc |
files | configure |
diffstat | 1 files changed, 30 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Thu Apr 19 19:43:18 2001 +0000 +++ b/configure Thu Apr 19 19:59:11 2001 +0000 @@ -184,17 +184,18 @@ pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2` pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` -_css=no _mmx=no _mmx2=no _3dnow=no _mtrr=no _sse=no + _mga=no _gl=no _sdl=no _xv=no _vm=no +_xdpms=no _3dfx=no _syncfb=no _mlib=no @@ -205,7 +206,7 @@ _svga=no _fbdev=yes _lirc=no -_xdpms=no +_css=no _x=1 _y=1 @@ -404,6 +405,9 @@ _termcap=no $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes +_png=no +$_cc $TMPC -o $TMPO -lpng &> /dev/null && _png=yes + _binutils=no as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes @@ -417,18 +421,18 @@ if [ $_x11 = yes ]; then $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes -$_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes +$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXv &> /dev/null && _xv=yes -$_cc $TMPC -o $TMPO $_x11libdir -lGL &> /dev/null && _gl=yes +$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL &> /dev/null && _gl=yes cat > $TMPC << EOF #include <GL/gl.h> int main( void ) { return 0; } EOF -$_cc $TMPC -o $TMPO $_x11libdir -lGL &> /dev/null || \ +$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL &> /dev/null || \ { _gl=no; echo "GL includes not found!";} -$_cc $TMPC -o $TMPO $_x11libdir -lXxf86vm &> /dev/null && _vm=yes +$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm &> /dev/null && _vm=yes cat > $TMPC << EOF #include <stdio.h> @@ -469,6 +473,9 @@ --enable-css) _css=yes ;; + --enable-png) + _png=yes + ;; --enable-sse) _sse=yes ;; @@ -538,6 +545,9 @@ --disable-css) _css=no ;; + --disable-png) + _png=no + ;; --disable-sse) _sse=no ;; @@ -645,6 +655,7 @@ echo "Checking for SVGAlib ... $_svga" echo "Checking for FBDev ... $_fbdev" echo "Checking for DeCSS support ... $_css" +echo "Checking for PNG support ... $_png" # write conf files. if [ $_gl = yes ]; then @@ -720,6 +731,9 @@ _lirclibs='' fi +if [ $_png = yes ]; then + _libpng='-lpng' +fi echo echo "Creating $MCONF" @@ -733,7 +747,7 @@ # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib -X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib +X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng TERMCAP_LIB=$_libtermcap XMM_LIBS = $_xmmplibs LIRC_LIBS = $_lirclibs @@ -774,6 +788,14 @@ _vosrc='' +if [ $_png = yes ]; then + _png='#define HAVE_PNG' + _vosrc=$_vosrc' vo_png.c' +else + _png='#undef HAVE_PNG' +fi + + if [ $_mlib = yes ]; then _mlib='#define HAVE_MLIB' _vosrc=$_vosrc' yuv2rgb_mlib.c' @@ -932,6 +954,7 @@ /* termcap flag for getch2.c */ $_termcap +$_png /* Extension defines */ $_mlib // available only on solaris