Mercurial > mplayer.hg
changeset 1826:fc5efe18d15e
OggVorbis lib detection, manual language selection and some minor stuff.
author | atmos4 |
---|---|
date | Sat, 01 Sep 2001 19:36:44 +0000 |
parents | 1791c7930776 |
children | 9d62dcf8c7c5 |
files | configure |
diffstat | 1 files changed, 32 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Sep 01 18:39:46 2001 +0000 +++ b/configure Sat Sep 01 19:36:44 2001 +0000 @@ -6,6 +6,9 @@ # # Changes in reversed order: # +# 2001/08/27 by Johannes Feigl +# - added manual selection of language +# # 2001/08/22 by Nick Kurshev # - added autodetection of local language # @@ -126,6 +129,7 @@ --prefix=DIR use this prefix for installing mplayer [/usr/local] --datadir=DIR use this prefix for installing machine independent data [/usr/local/share/mplayer] + --language=LANGUAGE selects manual a language, e.g. de, en, hu, pl, ... --enable-debug[=1-3] compile debugging information into mplayer [disable] --enable-profile compile profiling information into mplayer [disable] --enable-largefiles build with support for files >2^32 bytes long [disable] @@ -149,6 +153,7 @@ --enable-x11 build with X11 render support [autodetect] --enable-fbdev build with FBDev render support [_not_ autodetected] --enable-mlib build with MLIB support ( only Solaris ) + --enable-oggvorbis build with OggVorbis support [autodetect] --enable-termcap use termcap database for key codes --enable-xmmp use XMMP audio drivers @@ -213,6 +218,9 @@ --as=*) _as=`echo $ac_option | cut -d '=' -f 2` ;; + --language=*) + LINGUAS=`echo $ac_option | cut -d '=' -f 2` + ;; --disable-gcc-checking) _skip_cc_check=yes ;; @@ -748,6 +756,7 @@ echo Checking for language ... "$LINGUAS" _mp_help="help_mp-"$LINGUAS".h" if test ! -f "$_mp_help"; then +echo "Language file ("$_mp_help") not found!" LINGUAS="en" _mp_help="help_mp-"$LINGUAS".h" fi @@ -814,6 +823,9 @@ _png=no $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes +_vorbis=no +$_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lvorbis -lm > /dev/null 2>&1 && _vorbis=yes + _ggi=no $_cc $_extraincdir $_extralibdir $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes @@ -972,6 +984,7 @@ return 0; } EOF +_memalign_def='/* #define memalign(a,b) malloc(b) */' $_cc -o $TMPO $TMPC 2> /dev/null || _memalign_def='#define memalign(a,b) malloc(b)' fi @@ -1158,6 +1171,9 @@ --enable-mlib) _mlib=yes ;; + --enable-vorbis) + _vorbis=yes + ;; --enable-termcap) _termcap=yes ;; @@ -1303,6 +1319,9 @@ --enable-divx4) _divx4linux=yes ;; + --disable-vorbis) + _vorbis=no + ;; --enable-new-gui) _gui=yes ;; @@ -1523,6 +1542,7 @@ echo "Checking for DeCSS support ... $_css" echo "Checking for DVDread support ... $_dvdread" echo "Checking for PNG support ... $_png" +echo "Checking for OggVorbis support ... $_vorbis" echo "Checking for Win32 DLL support ... $_win32dll" echo "Checking for DirectShow ... $_dshow" @@ -1790,6 +1810,13 @@ _libpng='-lpng -lz' fi +if [ $_vorbis = yes ]; then + _vorbis='#define HAVE_OGGVORBIS' + _libvorbis='-lvorbis -lm' +else + _vorbis='#undef HAVE_OGGVORBIS' +fi + _aosrc='' _alsa5='#undef HAVE_ALSA5' @@ -2099,7 +2126,7 @@ X11_INC=$_x11incdir X11DIR=$_x11libdir -X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib +X_LIBS=$_x11libdir $_extralibdir $_gllib $_ggilib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib $_aalib $_libvorbis TERMCAP_LIB=$_libtermcap XMM_LIBS = $_xmmplibs @@ -2293,8 +2320,12 @@ /* termcap flag for getch2.c */ $_termcap +/* enable PNG support */ $_png +/* enable OggVorbis support */ +$_vorbis + $_streamingdef /* Extension defines */