Mercurial > mplayer.hg
comparison configure @ 11492:ad57fa26c89b
remove useless --with-xvidcore option and add *-xvidlibdir and *-xvidincdir
author | iive |
---|---|
date | Tue, 18 Nov 2003 02:32:42 +0000 |
parents | c615d753501f |
children | 36fbfcf9b742 |
comparison
equal
deleted
inserted
replaced
11491:5af505348795 | 11492:ad57fa26c89b |
---|---|
306 --with-codecsdir=DIR Binary codec files in DIR | 306 --with-codecsdir=DIR Binary codec files in DIR |
307 --with-win32libdir=DIR W*ndows DLL files in DIR | 307 --with-win32libdir=DIR W*ndows DLL files in DIR |
308 --with-xanimlibdir=DIR XAnim DLL files in DIR | 308 --with-xanimlibdir=DIR XAnim DLL files in DIR |
309 --with-reallibdir=DIR RealPlayer DLL files in DIR | 309 --with-reallibdir=DIR RealPlayer DLL files in DIR |
310 --with-xvmclib=PATH path to adapter specific XvMCxxxxx.so (e.g. NVIDIA) | 310 --with-xvmclib=PATH path to adapter specific XvMCxxxxx.so (e.g. NVIDIA) |
311 --with-xvidcore=PATH path to XviD libxvidcore.a | 311 --with-xvidlibdir=DIR libxvidcore (XviD) in DIR |
312 (e.g. /opt/lib/libxvidcore.a) | 312 --with-xvidincdir=DIR XviD header in DIR |
313 | |
313 --with-sdl-config=PATH path to sdl*-config (e.g. /opt/bin/sdl-config) | 314 --with-sdl-config=PATH path to sdl*-config (e.g. /opt/bin/sdl-config) |
314 --with-freetype-config=PATH path to freetype-config | 315 --with-freetype-config=PATH path to freetype-config |
315 (e.g. /opt/bin/freetype-config) | 316 (e.g. /opt/bin/freetype-config) |
316 --with-gtk-config=PATH path to gtk*-config (e.g. /opt/bin/gtk-config) | 317 --with-gtk-config=PATH path to gtk*-config (e.g. /opt/bin/gtk-config) |
317 --with-glib-config=PATH path to glib*-config (e.g. /opt/bin/glib-config) | 318 --with-glib-config=PATH path to glib*-config (e.g. /opt/bin/glib-config) |
1077 fi | 1078 fi |
1078 | 1079 |
1079 | 1080 |
1080 _prefix="/usr/local" | 1081 _prefix="/usr/local" |
1081 _xvmclib="XvMCNVIDIA" | 1082 _xvmclib="XvMCNVIDIA" |
1082 _xvidcore="xvidcore" | |
1083 | 1083 |
1084 # GOTCHA: the variables below defines the default behavior for autodetection | 1084 # GOTCHA: the variables below defines the default behavior for autodetection |
1085 # and have - unless stated otherwise - at least 2 states : yes no | 1085 # and have - unless stated otherwise - at least 2 states : yes no |
1086 # If autodetection is available then the third state is: auto | 1086 # If autodetection is available then the third state is: auto |
1087 _libavcodec=auto | 1087 _libavcodec=auto |
1529 _xvmclib=`echo $ac_option | cut -d '=' -f 2` | 1529 _xvmclib=`echo $ac_option | cut -d '=' -f 2` |
1530 ;; | 1530 ;; |
1531 --with-dvbincdir=*) | 1531 --with-dvbincdir=*) |
1532 _inc_dvb=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | 1532 _inc_dvb=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` |
1533 ;; | 1533 ;; |
1534 --with-xvidcore=*) | 1534 --with-xvidlibdir=*) |
1535 _xvidcore=`echo $ac_option | cut -d '=' -f 2` | 1535 _ld_xvid=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` |
1536 ;; | |
1537 --with-xvidincdir=*) | |
1538 _inc_xvid=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'` | |
1536 ;; | 1539 ;; |
1537 --with-sdl-config=*) | 1540 --with-sdl-config=*) |
1538 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` | 1541 _sdlconfig=`echo $ac_option | cut -d '=' -f 2` |
1539 ;; | 1542 ;; |
1540 --with-freetype-config=*) | 1543 --with-freetype-config=*) |
4962 echocheck "XviD" | 4965 echocheck "XviD" |
4963 cat > $TMPC << EOF | 4966 cat > $TMPC << EOF |
4964 #include <xvid.h> | 4967 #include <xvid.h> |
4965 int main(void) { xvid_init(0, 0, 0, 0); return 0; } | 4968 int main(void) { xvid_init(0, 0, 0, 0); return 0; } |
4966 EOF | 4969 EOF |
4967 if test "$_xvid" != no && cc_check -l$_xvidcore -lm ; then | 4970 _ld_xvid="$_ld_xvid -lxvidcore" |
4971 if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid ; then | |
4968 _xvid=yes | 4972 _xvid=yes |
4969 _ld_xvid="-l$_xvidcore" | |
4970 _def_xvid3='#define HAVE_XVID3 1' | 4973 _def_xvid3='#define HAVE_XVID3 1' |
4971 _def_xvid4='#undef HAVE_XVID4' | 4974 _def_xvid4='#undef HAVE_XVID4' |
4972 _codecmodules="xvid $_codecmodules" | 4975 _codecmodules="xvid $_codecmodules" |
4973 else | 4976 else |
4974 cat > $TMPC << EOF | 4977 cat > $TMPC << EOF |
4975 #include <xvid.h> | 4978 #include <xvid.h> |
4976 int main(void) { xvid_global(0, 0, 0, 0); return 0; } | 4979 int main(void) { xvid_global(0, 0, 0, 0); return 0; } |
4977 EOF | 4980 EOF |
4978 if test "$_xvid" != no && cc_check -l$_xvidcore -lm ; then | 4981 if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid ; then |
4979 _xvid=yes | 4982 _xvid=yes |
4980 _ld_xvid="-l$_xvidcore" | |
4981 _def_xvid3='#undef HAVE_XVID3' | 4983 _def_xvid3='#undef HAVE_XVID3' |
4982 _def_xvid4='#define HAVE_XVID4 1' | 4984 _def_xvid4='#define HAVE_XVID4 1' |
4983 _codecmodules="xvid $_codecmodules" | 4985 _codecmodules="xvid $_codecmodules" |
4984 else | 4986 else |
4985 _xvid=no | 4987 _xvid=no |
4986 _ld_xvid='' | 4988 _ld_xvid='' |
4987 _def_xvid3='#undef HAVE_XVID3' | 4989 _def_xvid3='#undef HAVE_XVID3' |
4988 _def_xvid4='#undef HAVE_XVID4' | 4990 _def_xvid4='#undef HAVE_XVID4' |
4989 _nocodecmodules="xvid $_nocodecmodules" | 4991 _nocodecmodules="xvid $_nocodecmodules" |
4990 fi | 4992 fi |
4991 fi | 4993 fi |
4992 echores "$_xvid" | 4994 echores "$_xvid" |
4993 | 4995 |
4994 _xvidcompat=no | 4996 _xvidcompat=no |
5843 FAME_LIB = $_ld_fame | 5845 FAME_LIB = $_ld_fame |
5844 MP1E_DEP = $_dep_mp1e | 5846 MP1E_DEP = $_dep_mp1e |
5845 MP1E_LIB = $_ld_mp1e | 5847 MP1E_LIB = $_ld_mp1e |
5846 ARCH_LIB = $_ld_arch $_ld_iconv | 5848 ARCH_LIB = $_ld_arch $_ld_iconv |
5847 XVID = $_xvid | 5849 XVID = $_xvid |
5850 XVID_INC = $_inc_xvid | |
5848 XVID_LIB = $_ld_xvid | 5851 XVID_LIB = $_ld_xvid |
5849 DECORE_LIB = $_ld_decore $_ld_mp3lame | 5852 DECORE_LIB = $_ld_decore $_ld_mp3lame |
5850 MENCODER = $_mencoder | 5853 MENCODER = $_mencoder |
5851 ENCORE_LIB = $_ld_encore $_ld_mp3lame | 5854 ENCORE_LIB = $_ld_encore $_ld_mp3lame |
5852 DIRECTFB_INC = $_inc_directfb | 5855 DIRECTFB_INC = $_inc_directfb |