Mercurial > mplayer.hg
comparison configure @ 23762:896a1faed1d2
Group all vo driver checks together.
author | diego |
---|---|
date | Sat, 14 Jul 2007 15:11:08 +0000 |
parents | 604adfeb3e64 |
children | 926ca3ac30e5 |
comparison
equal
deleted
inserted
replaced
23761:604adfeb3e64 | 23762:896a1faed1d2 |
---|---|
3686 _novomodules="tga $_novomodules" | 3686 _novomodules="tga $_novomodules" |
3687 fi | 3687 fi |
3688 echores "$_tga" | 3688 echores "$_tga" |
3689 | 3689 |
3690 | 3690 |
3691 echocheck "md5sum support" | |
3692 if test "$_md5sum" = yes; then | |
3693 _def_md5sum="#define HAVE_MD5SUM" | |
3694 _vosrc="$_vosrc vo_md5sum.c" | |
3695 _vomodules="md5sum $_vomodules" | |
3696 else | |
3697 _def_md5sum="#undef HAVE_MD5SUM" | |
3698 _novomodules="md5sum $_novomodules" | |
3699 fi | |
3700 echores "$_md5sum" | |
3701 | |
3702 | |
3703 echocheck "bl" | |
3704 if test "$_bl" = yes ; then | |
3705 _def_bl='#define HAVE_BL 1' | |
3706 _vosrc="$_vosrc vo_bl.c" | |
3707 _vomodules="bl $_vomodules" | |
3708 else | |
3709 _def_bl='#undef HAVE_BL' | |
3710 _novomodules="bl $_novomodules" | |
3711 fi | |
3712 echores "$_bl" | |
3713 | |
3714 | |
3691 echocheck "DirectFB" | 3715 echocheck "DirectFB" |
3692 if test "$_directfb" = auto ; then | 3716 if test "$_directfb" = auto ; then |
3693 _directfb=no | 3717 _directfb=no |
3694 cat > $TMPC <<EOF | 3718 cat > $TMPC <<EOF |
3695 #include <directfb.h> | 3719 #include <directfb.h> |
4048 _novomodules="opengl $_novomodules" | 4072 _novomodules="opengl $_novomodules" |
4049 fi | 4073 fi |
4050 echores "$_gl" | 4074 echores "$_gl" |
4051 | 4075 |
4052 | 4076 |
4077 echocheck "VIDIX" | |
4078 _vidix=no | |
4079 _def_vidix='#undef CONFIG_VIDIX' | |
4080 _def_vidix_drv_cyberblade='#undef CONFIG_VIDIX_DRV_CYBERBLADE' | |
4081 _vidix_drv_cyberblade=no | |
4082 _def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' | |
4083 _vidix_drv_ivtv=no | |
4084 _def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' | |
4085 _vidix_drv_ivtv=no | |
4086 _def_vidix_drv_mach64='#undef CONFIG_VIDIX_DRV_MACH64' | |
4087 _vidix_drv_mach64=no | |
4088 _def_vidix_drv_mga='#undef CONFIG_VIDIX_DRV_MGA' | |
4089 _vidix_drv_mga=no | |
4090 _def_vidix_drv_mga_crtc2='#undef CONFIG_VIDIX_DRV_MGA_CRTC2' | |
4091 _vidix_drv_mga_crtc2=no | |
4092 _def_vidix_drv_nvidia='#undef CONFIG_VIDIX_DRV_NVIDIA' | |
4093 _vidix_drv_nvidia=no | |
4094 _def_vidix_drv_pm2='#undef CONFIG_VIDIX_DRV_PM2' | |
4095 _vidix_drv_pm2=no | |
4096 _def_vidix_drv_pm3='#undef CONFIG_VIDIX_DRV_PM3' | |
4097 _vidix_drv_pm3=no | |
4098 _def_vidix_drv_radeon='#undef CONFIG_VIDIX_DRV_RADEON' | |
4099 _vidix_drv_radeon=no | |
4100 _def_vidix_drv_rage128='#undef CONFIG_VIDIX_DRV_RAGE128' | |
4101 _vidix_drv_rage128=no | |
4102 _def_vidix_drv_savage='#undef CONFIG_VIDIX_DRV_SAVAGE' | |
4103 _vidix_drv_savage=no | |
4104 _def_vidix_drv_sis='#undef CONFIG_VIDIX_DRV_SIS' | |
4105 _vidix_drv_sis=no | |
4106 _def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME' | |
4107 _vidix_drv_unichrome=no | |
4108 if test "$_vidix_internal" = auto ; then | |
4109 _vidix_internal=no | |
4110 x86 && _vidix_internal=yes | |
4111 # this is broken currently, undefined references to inw, outw etc. | |
4112 #ppc && linux && _vidix_internal=yes | |
4113 alpha && linux && _vidix_internal=yes | |
4114 qnx || beos || darwin && _vidix_internal=no | |
4115 fi | |
4116 if test "$_vidix_internal" = yes; then | |
4117 _res_comment="internal" | |
4118 _vidix_external=no | |
4119 _vidix=yes | |
4120 elif test "$_vidix_external" = auto; then | |
4121 _vidix_external=no | |
4122 cat > $TMPC <<EOF | |
4123 #include <vidix/vidix.h> | |
4124 int main(void) { return 0; } | |
4125 EOF | |
4126 cc_check -lvidix && _vidix_external=yes && _res_comment="external" \ | |
4127 && _vidix=yes | |
4128 fi | |
4129 echores "$_vidix" | |
4130 | |
4131 if test "$_vidix" = yes ; then | |
4132 _def_vidix='#define CONFIG_VIDIX 1' | |
4133 _vosrc="$_vosrc vo_cvidix.c" | |
4134 _vomodules="cvidix $_vomodules" | |
4135 test "$_vidix_drivers" || _vidix_drivers="cyberblade ivtv mach64 mga mga_crtc2 nvidia pm2 pm3 radeon rage128 savage sis unichrome" | |
4136 test $_ivtv = "yes" || _vidix_drivers=`echo $_vidix_drivers | sed s/ivtv//` | |
4137 | |
4138 for driver in $_vidix_drivers ; do | |
4139 uc_driver=`echo $driver | tr '[a-z]' '[A-Z]'` | |
4140 eval _vidix_drv_${driver}=yes | |
4141 eval _def_vidix_drv_${driver}=\"\#define CONFIG_VIDIX_DRV_${uc_driver} 1\" | |
4142 done | |
4143 else | |
4144 _novomodules="cvidix $_novomodules" | |
4145 fi | |
4146 | |
4147 if test "$_vidix_internal" = yes ; then | |
4148 _def_vidix_pfx="#define MP_VIDIX_PFX \"$_libdir\" \"/mplayer/vidix/\" " | |
4149 elif test "$_vidix_external" = yes ; then | |
4150 _libs_mplayer="$_libs_mplayer -lvidix" | |
4151 _def_vidix_pfx='#define MP_VIDIX_PFX "" ' | |
4152 fi | |
4153 | |
4154 if test "$_vidix" = yes && win32; then | |
4155 _vosrc="$_vosrc vo_winvidix.c" | |
4156 _vomodules="winvidix $_vomodules" | |
4157 _libs_mplayer="$_libs_mplayer -lgdi32" | |
4158 else | |
4159 _novomodules="winvidix $_novomodules" | |
4160 fi | |
4161 if test "$_vidix" = yes && test "$_x11" = yes; then | |
4162 _vosrc="$_vosrc vo_xvidix.c" | |
4163 _vomodules="xvidix $_vomodules" | |
4164 else | |
4165 _novomodules="xvidix $_novomodules" | |
4166 fi | |
4167 | |
4168 | |
4053 echocheck "/dev/mga_vid" | 4169 echocheck "/dev/mga_vid" |
4054 if test "$_mga" = auto ; then | 4170 if test "$_mga" = auto ; then |
4055 _mga=no | 4171 _mga=no |
4056 test -c /dev/mga_vid && _mga=yes | 4172 test -c /dev/mga_vid && _mga=yes |
4057 fi | 4173 fi |
4307 _inputmodules="dvb $_inputmodules" | 4423 _inputmodules="dvb $_inputmodules" |
4308 else | 4424 else |
4309 _dvbin=no | 4425 _dvbin=no |
4310 _noinputmodules="dvb $_noinputmodules" | 4426 _noinputmodules="dvb $_noinputmodules" |
4311 fi | 4427 fi |
4428 | |
4429 | |
4430 echocheck "zr" | |
4431 if test "$_zr" = auto ; then | |
4432 #36067's seem to identify themselves as 36057PQC's, so the line | |
4433 #below should work for 36067's and 36057's. | |
4434 if grep -e "Multimedia video controller: Zoran Corporation ZR36057" /proc/pci > /dev/null 2>&1; then | |
4435 _zr=yes | |
4436 else | |
4437 _zr=no | |
4438 fi | |
4439 fi | |
4440 if test "$_zr" = yes ; then | |
4441 if test "$_libavcodec_a" = yes ; then | |
4442 _def_zr='#define HAVE_ZR 1' | |
4443 _vosrc="$_vosrc vo_zr2.c vo_zr.c jpeg_enc.c" | |
4444 _vomodules="zr zr2 $_vomodules" | |
4445 else | |
4446 _res_comment="libavcodec (static) is required by zr, sorry" | |
4447 _novomodules="zr $_novomodules" | |
4448 _def_zr='#undef HAVE_ZR' | |
4449 fi | |
4450 else | |
4451 _def_zr='#undef HAVE_ZR' | |
4452 _novomodules="zr zr2 $_novomodules" | |
4453 fi | |
4454 echores "$_zr" | |
4455 | |
4312 | 4456 |
4313 echocheck "PNG support" | 4457 echocheck "PNG support" |
4314 if test "$_png" = auto ; then | 4458 if test "$_png" = auto ; then |
4315 _png=no | 4459 _png=no |
4316 if irix ; then | 4460 if irix ; then |
6145 test "$_libpostproc_so" = yes \ | 6289 test "$_libpostproc_so" = yes \ |
6146 && _def_libpostproc_so='#define USE_LIBPOSTPROC_SO 1' | 6290 && _def_libpostproc_so='#define USE_LIBPOSTPROC_SO 1' |
6147 echores "$_libpostproc" | 6291 echores "$_libpostproc" |
6148 | 6292 |
6149 | 6293 |
6150 echocheck "md5sum support" | |
6151 if test "$_md5sum" = yes; then | |
6152 _def_md5sum="#define HAVE_MD5SUM" | |
6153 _vosrc="$_vosrc vo_md5sum.c" | |
6154 _vomodules="md5sum $_vomodules" | |
6155 else | |
6156 _def_md5sum="#undef HAVE_MD5SUM" | |
6157 _novomodules="md5sum $_novomodules" | |
6158 fi | |
6159 echores "$_md5sum" | |
6160 | |
6161 echocheck "libamr narrowband" | 6294 echocheck "libamr narrowband" |
6162 if test "$_libamr_nb" = auto ; then | 6295 if test "$_libamr_nb" = auto ; then |
6163 _libamr_nb=no | 6296 _libamr_nb=no |
6164 cat > $TMPC << EOF | 6297 cat > $TMPC << EOF |
6165 #include <amrnb/interf_dec.h> | 6298 #include <amrnb/interf_dec.h> |
6229 else | 6362 else |
6230 _def_libdv='#undef HAVE_LIBDV095' | 6363 _def_libdv='#undef HAVE_LIBDV095' |
6231 _nocodecmodules="libdv $_nocodecmodules" | 6364 _nocodecmodules="libdv $_nocodecmodules" |
6232 fi | 6365 fi |
6233 echores "$_libdv" | 6366 echores "$_libdv" |
6234 | |
6235 echocheck "zr" | |
6236 if test "$_zr" = auto ; then | |
6237 #36067's seem to identify themselves as 36057PQC's, so the line | |
6238 #below should work for 36067's and 36057's. | |
6239 if grep -e "Multimedia video controller: Zoran Corporation ZR36057" /proc/pci > /dev/null 2>&1; then | |
6240 _zr=yes | |
6241 else | |
6242 _zr=no | |
6243 fi | |
6244 fi | |
6245 if test "$_zr" = yes ; then | |
6246 if test "$_libavcodec_a" = yes ; then | |
6247 _def_zr='#define HAVE_ZR 1' | |
6248 _vosrc="$_vosrc vo_zr2.c vo_zr.c jpeg_enc.c" | |
6249 _vomodules="zr zr2 $_vomodules" | |
6250 else | |
6251 _res_comment="libavcodec (static) is required by zr, sorry" | |
6252 _novomodules="zr $_novomodules" | |
6253 _def_zr='#undef HAVE_ZR' | |
6254 fi | |
6255 else | |
6256 _def_zr='#undef HAVE_ZR' | |
6257 _novomodules="zr zr2 $_novomodules" | |
6258 fi | |
6259 echores "$_zr" | |
6260 | |
6261 echocheck "bl" | |
6262 if test "$_bl" = yes ; then | |
6263 _def_bl='#define HAVE_BL 1' | |
6264 _vosrc="$_vosrc vo_bl.c" | |
6265 _vomodules="bl $_vomodules" | |
6266 else | |
6267 _def_bl='#undef HAVE_BL' | |
6268 _novomodules="bl $_novomodules" | |
6269 fi | |
6270 echores "$_bl" | |
6271 | 6367 |
6272 | 6368 |
6273 echocheck "XviD" | 6369 echocheck "XviD" |
6274 if test "$_xvid" = auto ; then | 6370 if test "$_xvid" = auto ; then |
6275 _xvid=no | 6371 _xvid=no |
7071 test "$_debug" != "" && _def_debug='#define MP_DEBUG 1' | 7167 test "$_debug" != "" && _def_debug='#define MP_DEBUG 1' |
7072 | 7168 |
7073 _def_linux='#undef TARGET_LINUX' | 7169 _def_linux='#undef TARGET_LINUX' |
7074 linux && _def_linux='#define TARGET_LINUX 1' | 7170 linux && _def_linux='#define TARGET_LINUX 1' |
7075 | 7171 |
7076 | |
7077 echocheck "VIDIX" | |
7078 _vidix=no | |
7079 _def_vidix='#undef CONFIG_VIDIX' | |
7080 _def_vidix_drv_cyberblade='#undef CONFIG_VIDIX_DRV_CYBERBLADE' | |
7081 _vidix_drv_cyberblade=no | |
7082 _def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' | |
7083 _vidix_drv_ivtv=no | |
7084 _def_vidix_drv_ivtv='#undef CONFIG_VIDIX_DRV_IVTV' | |
7085 _vidix_drv_ivtv=no | |
7086 _def_vidix_drv_mach64='#undef CONFIG_VIDIX_DRV_MACH64' | |
7087 _vidix_drv_mach64=no | |
7088 _def_vidix_drv_mga='#undef CONFIG_VIDIX_DRV_MGA' | |
7089 _vidix_drv_mga=no | |
7090 _def_vidix_drv_mga_crtc2='#undef CONFIG_VIDIX_DRV_MGA_CRTC2' | |
7091 _vidix_drv_mga_crtc2=no | |
7092 _def_vidix_drv_nvidia='#undef CONFIG_VIDIX_DRV_NVIDIA' | |
7093 _vidix_drv_nvidia=no | |
7094 _def_vidix_drv_pm2='#undef CONFIG_VIDIX_DRV_PM2' | |
7095 _vidix_drv_pm2=no | |
7096 _def_vidix_drv_pm3='#undef CONFIG_VIDIX_DRV_PM3' | |
7097 _vidix_drv_pm3=no | |
7098 _def_vidix_drv_radeon='#undef CONFIG_VIDIX_DRV_RADEON' | |
7099 _vidix_drv_radeon=no | |
7100 _def_vidix_drv_rage128='#undef CONFIG_VIDIX_DRV_RAGE128' | |
7101 _vidix_drv_rage128=no | |
7102 _def_vidix_drv_savage='#undef CONFIG_VIDIX_DRV_SAVAGE' | |
7103 _vidix_drv_savage=no | |
7104 _def_vidix_drv_sis='#undef CONFIG_VIDIX_DRV_SIS' | |
7105 _vidix_drv_sis=no | |
7106 _def_vidix_drv_unichrome='#undef CONFIG_VIDIX_DRV_UNICHROME' | |
7107 _vidix_drv_unichrome=no | |
7108 if test "$_vidix_internal" = auto ; then | |
7109 _vidix_internal=no | |
7110 x86 && _vidix_internal=yes | |
7111 # this is broken currently, undefined references to inw, outw etc. | |
7112 #ppc && linux && _vidix_internal=yes | |
7113 alpha && linux && _vidix_internal=yes | |
7114 qnx || beos || darwin && _vidix_internal=no | |
7115 fi | |
7116 if test "$_vidix_internal" = yes; then | |
7117 _res_comment="internal" | |
7118 _vidix_external=no | |
7119 _vidix=yes | |
7120 elif test "$_vidix_external" = auto; then | |
7121 _vidix_external=no | |
7122 cat > $TMPC <<EOF | |
7123 #include <vidix/vidix.h> | |
7124 int main(void) { return 0; } | |
7125 EOF | |
7126 cc_check -lvidix && _vidix_external=yes && _res_comment="external" \ | |
7127 && _vidix=yes | |
7128 fi | |
7129 echores "$_vidix" | |
7130 | |
7131 if test "$_vidix" = yes ; then | |
7132 _def_vidix='#define CONFIG_VIDIX 1' | |
7133 _vosrc="$_vosrc vo_cvidix.c" | |
7134 _vomodules="cvidix $_vomodules" | |
7135 test "$_vidix_drivers" || _vidix_drivers="cyberblade ivtv mach64 mga mga_crtc2 nvidia pm2 pm3 radeon rage128 savage sis unichrome" | |
7136 test $_ivtv = "yes" || _vidix_drivers=`echo $_vidix_drivers | sed s/ivtv//` | |
7137 | |
7138 for driver in $_vidix_drivers ; do | |
7139 uc_driver=`echo $driver | tr '[a-z]' '[A-Z]'` | |
7140 eval _vidix_drv_${driver}=yes | |
7141 eval _def_vidix_drv_${driver}=\"\#define CONFIG_VIDIX_DRV_${uc_driver} 1\" | |
7142 done | |
7143 else | |
7144 _novomodules="cvidix $_novomodules" | |
7145 fi | |
7146 | |
7147 if test "$_vidix_internal" = yes ; then | |
7148 _def_vidix_pfx="#define MP_VIDIX_PFX \"$_libdir\" \"/mplayer/vidix/\" " | |
7149 elif test "$_vidix_external" = yes ; then | |
7150 _libs_mplayer="$_libs_mplayer -lvidix" | |
7151 _def_vidix_pfx='#define MP_VIDIX_PFX "" ' | |
7152 fi | |
7153 | |
7154 if test "$_vidix" = yes && win32; then | |
7155 _vosrc="$_vosrc vo_winvidix.c" | |
7156 _vomodules="winvidix $_vomodules" | |
7157 _libs_mplayer="$_libs_mplayer -lgdi32" | |
7158 else | |
7159 _novomodules="winvidix $_novomodules" | |
7160 fi | |
7161 if test "$_vidix" = yes && test "$_x11" = yes; then | |
7162 _vosrc="$_vosrc vo_xvidix.c" | |
7163 _vomodules="xvidix $_vomodules" | |
7164 else | |
7165 _novomodules="xvidix $_novomodules" | |
7166 fi | |
7167 | 7172 |
7168 echocheck "joystick" | 7173 echocheck "joystick" |
7169 _def_joystick='#undef HAVE_JOYSTICK' | 7174 _def_joystick='#undef HAVE_JOYSTICK' |
7170 if test "$_joystick" = yes ; then | 7175 if test "$_joystick" = yes ; then |
7171 if linux ; then | 7176 if linux ; then |