comparison configure @ 28046:7df791e22c3f

Treat video output objects the same as everything else in the build system, i.e. have lines that conditionally enable each in the Makefile and corresponding variables set from configure.
author diego
date Wed, 03 Dec 2008 14:48:31 +0000
parents d55bae757b4e
children 936fc892dcab
comparison
equal deleted inserted replaced
28045:d55bae757b4e 28046:7df791e22c3f
3631 EOF 3631 EOF
3632 if cc_check -framework Carbon -framework QuickTime; then 3632 if cc_check -framework Carbon -framework QuickTime; then
3633 _ld_extra="$_ld_extra -framework Carbon -framework QuickTime" 3633 _ld_extra="$_ld_extra -framework Carbon -framework QuickTime"
3634 _quartz=yes 3634 _quartz=yes
3635 _def_quartz='#define CONFIG_QUARTZ 1' 3635 _def_quartz='#define CONFIG_QUARTZ 1'
3636 _vosrc="$_vosrc vo_quartz.c"
3637 _vomodules="quartz $_vomodules" 3636 _vomodules="quartz $_vomodules"
3638 _def_quicktime='#define CONFIG_QUICKTIME 1' 3637 _def_quicktime='#define CONFIG_QUICKTIME 1'
3639 else 3638 else
3640 _quartz=yes 3639 _quartz=yes
3641 _def_quartz='#undef CONFIG_QUARTZ' 3640 _def_quartz='#undef CONFIG_QUARTZ'
3646 #include <Carbon/Carbon.h> 3645 #include <Carbon/Carbon.h>
3647 #include <QuartzCore/CoreVideo.h> 3646 #include <QuartzCore/CoreVideo.h>
3648 int main(void) { return 0; } 3647 int main(void) { return 0; }
3649 EOF 3648 EOF
3650 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then 3649 if cc_check -framework Carbon -framework QuartzCore -framework OpenGL; then
3651 _vosrc="$_vosrc vo_macosx.m"
3652 _vomodules="macosx $_vomodules" 3650 _vomodules="macosx $_vomodules"
3653 _ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL" 3651 _ld_extra="$_ld_extra -framework Cocoa -framework QuartzCore -framework OpenGL"
3654 _def_corevideo='#define CONFIG_COREVIDEO 1' 3652 _def_corevideo='#define CONFIG_COREVIDEO 1'
3655 _corevideo=yes 3653 _corevideo=yes
3656 else 3654 else
3794 3792
3795 3793
3796 echocheck "tdfxfb" 3794 echocheck "tdfxfb"
3797 if test "$_tdfxfb" = yes ; then 3795 if test "$_tdfxfb" = yes ; then
3798 _def_tdfxfb='#define CONFIG_TDFXFB 1' 3796 _def_tdfxfb='#define CONFIG_TDFXFB 1'
3799 _vosrc="$_vosrc vo_tdfxfb.c"
3800 _vomodules="tdfxfb $_vomodules" 3797 _vomodules="tdfxfb $_vomodules"
3801 else 3798 else
3802 _def_tdfxfb='#undef CONFIG_TDFXFB' 3799 _def_tdfxfb='#undef CONFIG_TDFXFB'
3803 _novomodules="tdfxfb $_novomodules" 3800 _novomodules="tdfxfb $_novomodules"
3804 fi 3801 fi
3805 echores "$_tdfxfb" 3802 echores "$_tdfxfb"
3806 3803
3807 echocheck "s3fb" 3804 echocheck "s3fb"
3808 if test "$_s3fb" = yes ; then 3805 if test "$_s3fb" = yes ; then
3809 _def_s3fb='#define CONFIG_S3FB 1' 3806 _def_s3fb='#define CONFIG_S3FB 1'
3810 _vosrc="$_vosrc vo_s3fb.c"
3811 _vomodules="s3fb $_vomodules" 3807 _vomodules="s3fb $_vomodules"
3812 else 3808 else
3813 _def_s3fb='#undef CONFIG_S3FB' 3809 _def_s3fb='#undef CONFIG_S3FB'
3814 _novomodules="s3fb $_novomodules" 3810 _novomodules="s3fb $_novomodules"
3815 fi 3811 fi
3816 echores "$_s3fb" 3812 echores "$_s3fb"
3817 3813
3818 echocheck "wii" 3814 echocheck "wii"
3819 if test "$_wii" = yes ; then 3815 if test "$_wii" = yes ; then
3820 _def_wii='#define CONFIG_WII 1' 3816 _def_wii='#define CONFIG_WII 1'
3821 _vosrc="$_vosrc vo_wii.c"
3822 _vomodules="wii $_vomodules" 3817 _vomodules="wii $_vomodules"
3823 else 3818 else
3824 _def_wii='#undef CONFIG_WII' 3819 _def_wii='#undef CONFIG_WII'
3825 _novomodules="wii $_novomodules" 3820 _novomodules="wii $_novomodules"
3826 fi 3821 fi
3827 echores "$_wii" 3822 echores "$_wii"
3828 3823
3829 echocheck "tdfxvid" 3824 echocheck "tdfxvid"
3830 if test "$_tdfxvid" = yes ; then 3825 if test "$_tdfxvid" = yes ; then
3831 _def_tdfxvid='#define CONFIG_TDFX_VID 1' 3826 _def_tdfxvid='#define CONFIG_TDFX_VID 1'
3832 _vosrc="$_vosrc vo_tdfx_vid.c"
3833 _vomodules="tdfx_vid $_vomodules" 3827 _vomodules="tdfx_vid $_vomodules"
3834 else 3828 else
3835 _def_tdfxvid='#undef CONFIG_TDFX_VID' 3829 _def_tdfxvid='#undef CONFIG_TDFX_VID'
3836 _novomodules="tdfx_vid $_novomodules" 3830 _novomodules="tdfx_vid $_novomodules"
3837 fi 3831 fi
3854 _xvr100=no 3848 _xvr100=no
3855 cc_check && _xvr100=yes 3849 cc_check && _xvr100=yes
3856 fi 3850 fi
3857 if test "$_xvr100" = yes ; then 3851 if test "$_xvr100" = yes ; then
3858 _def_xvr100='#define CONFIG_XVR100 1' 3852 _def_xvr100='#define CONFIG_XVR100 1'
3859 _vosrc="$_vosrc vo_xvr100.c"
3860 _vomodules="xvr100 $_vomodules" 3853 _vomodules="xvr100 $_vomodules"
3861 else 3854 else
3862 _def_tdfxvid='#undef CONFIG_XVR100' 3855 _def_tdfxvid='#undef CONFIG_XVR100'
3863 _novomodules="xvr100 $_novomodules" 3856 _novomodules="xvr100 $_novomodules"
3864 fi 3857 fi
3865 echores "$_xvr100" 3858 echores "$_xvr100"
3866 3859
3867 echocheck "tga" 3860 echocheck "tga"
3868 if test "$_tga" = yes ; then 3861 if test "$_tga" = yes ; then
3869 _def_tga='#define CONFIG_TGA 1' 3862 _def_tga='#define CONFIG_TGA 1'
3870 _vosrc="$_vosrc vo_tga.c"
3871 _vomodules="tga $_vomodules" 3863 _vomodules="tga $_vomodules"
3872 else 3864 else
3873 _def_tga='#undef CONFIG_TGA' 3865 _def_tga='#undef CONFIG_TGA'
3874 _novomodules="tga $_novomodules" 3866 _novomodules="tga $_novomodules"
3875 fi 3867 fi
3877 3869
3878 3870
3879 echocheck "md5sum support" 3871 echocheck "md5sum support"
3880 if test "$_md5sum" = yes; then 3872 if test "$_md5sum" = yes; then
3881 _def_md5sum="#define CONFIG_MD5SUM" 3873 _def_md5sum="#define CONFIG_MD5SUM"
3882 _vosrc="$_vosrc vo_md5sum.c"
3883 _vomodules="md5sum $_vomodules" 3874 _vomodules="md5sum $_vomodules"
3884 else 3875 else
3885 _def_md5sum="#undef CONFIG_MD5SUM" 3876 _def_md5sum="#undef CONFIG_MD5SUM"
3886 _novomodules="md5sum $_novomodules" 3877 _novomodules="md5sum $_novomodules"
3887 fi 3878 fi
3889 3880
3890 3881
3891 echocheck "yuv4mpeg support" 3882 echocheck "yuv4mpeg support"
3892 if test "$_yuv4mpeg" = yes; then 3883 if test "$_yuv4mpeg" = yes; then
3893 _def_yuv4mpeg="#define CONFIG_YUV4MPEG" 3884 _def_yuv4mpeg="#define CONFIG_YUV4MPEG"
3894 _vosrc="$_vosrc vo_yuv4mpeg.c"
3895 _vomodules="yuv4mpeg $_vomodules" 3885 _vomodules="yuv4mpeg $_vomodules"
3896 else 3886 else
3897 _def_yuv4mpeg="#undef CONFIG_YUV4MPEG" 3887 _def_yuv4mpeg="#undef CONFIG_YUV4MPEG"
3898 _novomodules="yuv4mpeg $_novomodules" 3888 _novomodules="yuv4mpeg $_novomodules"
3899 fi 3889 fi
3901 3891
3902 3892
3903 echocheck "bl" 3893 echocheck "bl"
3904 if test "$_bl" = yes ; then 3894 if test "$_bl" = yes ; then
3905 _def_bl='#define CONFIG_BL 1' 3895 _def_bl='#define CONFIG_BL 1'
3906 _vosrc="$_vosrc vo_bl.c"
3907 _vomodules="bl $_vomodules" 3896 _vomodules="bl $_vomodules"
3908 else 3897 else
3909 _def_bl='#undef CONFIG_BL' 3898 _def_bl='#undef CONFIG_BL'
3910 _novomodules="bl $_novomodules" 3899 _novomodules="bl $_novomodules"
3911 fi 3900 fi
3959 fi 3948 fi
3960 echores "$_directfb" 3949 echores "$_directfb"
3961 3950
3962 if test "$_directfb" = yes ; then 3951 if test "$_directfb" = yes ; then
3963 _def_directfb='#define CONFIG_DIRECTFB 1' 3952 _def_directfb='#define CONFIG_DIRECTFB 1'
3964 _vosrc="$_vosrc vo_directfb2.c"
3965 _vomodules="directfb $_vomodules" 3953 _vomodules="directfb $_vomodules"
3966 _libs_mplayer="$_libs_mplayer -ldirectfb" 3954 _libs_mplayer="$_libs_mplayer -ldirectfb"
3967 else 3955 else
3968 _def_directfb='#undef CONFIG_DIRECTFB' 3956 _def_directfb='#undef CONFIG_DIRECTFB'
3969 _novomodules="directfb $_novomodules" 3957 _novomodules="directfb $_novomodules"
3970 fi 3958 fi
3971 if test "$_dfbmga" = yes; then 3959 if test "$_dfbmga" = yes; then
3972 _vosrc="$_vosrc vo_dfbmga.c"
3973 _vomodules="dfbmga $_vomodules" 3960 _vomodules="dfbmga $_vomodules"
3974 _def_dfbmga='#define CONFIG_DFBMGA 1' 3961 _def_dfbmga='#define CONFIG_DFBMGA 1'
3975 else 3962 else
3976 _novomodules="dfbmga $_novomodules" 3963 _novomodules="dfbmga $_novomodules"
3977 _def_dfbmga='#undef CONFIG_DFBMGA' 3964 _def_dfbmga='#undef CONFIG_DFBMGA'
4019 && _x11=yes && break 4006 && _x11=yes && break
4020 done 4007 done
4021 fi 4008 fi
4022 if test "$_x11" = yes ; then 4009 if test "$_x11" = yes ; then
4023 _def_x11='#define CONFIG_X11 1' 4010 _def_x11='#define CONFIG_X11 1'
4024 _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c"
4025 _vomodules="x11 xover $_vomodules" 4011 _vomodules="x11 xover $_vomodules"
4026 else 4012 else
4027 _x11=no 4013 _x11=no
4028 _def_x11='#undef CONFIG_X11' 4014 _def_x11='#undef CONFIG_X11'
4029 _novomodules="x11 $_novomodules" 4015 _novomodules="x11 $_novomodules"
4101 fi 4087 fi
4102 4088
4103 if test "$_xv" = yes ; then 4089 if test "$_xv" = yes ; then
4104 _def_xv='#define CONFIG_XV 1' 4090 _def_xv='#define CONFIG_XV 1'
4105 _libs_mplayer="$_libs_mplayer -lXv" 4091 _libs_mplayer="$_libs_mplayer -lXv"
4106 _vosrc="$_vosrc vo_xv.c"
4107 _vomodules="xv $_vomodules" 4092 _vomodules="xv $_vomodules"
4108 else 4093 else
4109 _def_xv='#undef CONFIG_XV' 4094 _def_xv='#undef CONFIG_XV'
4110 _novomodules="xv $_novomodules" 4095 _novomodules="xv $_novomodules"
4111 fi 4096 fi
4129 done 4114 done
4130 fi 4115 fi
4131 if test "$_xvmc" = yes ; then 4116 if test "$_xvmc" = yes ; then
4132 _def_xvmc='#define HAVE_XVMC 1' 4117 _def_xvmc='#define HAVE_XVMC 1'
4133 _libs_mplayer="$_libs_mplayer -lXvMC -l$_xvmclib" 4118 _libs_mplayer="$_libs_mplayer -lXvMC -l$_xvmclib"
4134 _vosrc="$_vosrc vo_xvmc.c"
4135 _vomodules="xvmc $_vomodules" 4119 _vomodules="xvmc $_vomodules"
4136 _res_comment="using $_xvmclib" 4120 _res_comment="using $_xvmclib"
4137 else 4121 else
4138 _def_xvmc='#undef HAVE_XVMC' 4122 _def_xvmc='#undef HAVE_XVMC'
4139 _novomodules="xvmc $_novomodules" 4123 _novomodules="xvmc $_novomodules"
4240 _res_comment="using DGA 2.0" 4224 _res_comment="using DGA 2.0"
4241 fi 4225 fi
4242 if test "$_dga" = yes ; then 4226 if test "$_dga" = yes ; then
4243 _def_dga='#define CONFIG_DGA 1' 4227 _def_dga='#define CONFIG_DGA 1'
4244 _libs_mplayer="$_libs_mplayer -lXxf86dga" 4228 _libs_mplayer="$_libs_mplayer -lXxf86dga"
4245 _vosrc="$_vosrc vo_dga.c"
4246 _vomodules="dga $_vomodules" 4229 _vomodules="dga $_vomodules"
4247 else 4230 else
4248 _novomodules="dga $_novomodules" 4231 _novomodules="dga $_novomodules"
4249 fi 4232 fi
4250 echores "$_dga" 4233 echores "$_dga"
4251 4234
4252 4235
4253 echocheck "3dfx" 4236 echocheck "3dfx"
4254 if test "$_3dfx" = yes && test "$_dga" = yes ; then 4237 if test "$_3dfx" = yes && test "$_dga" = yes ; then
4255 _def_3dfx='#define CONFIG_3DFX 1' 4238 _def_3dfx='#define CONFIG_3DFX 1'
4256 _vosrc="$_vosrc vo_3dfx.c"
4257 _vomodules="3dfx $_vomodules" 4239 _vomodules="3dfx $_vomodules"
4258 else 4240 else
4259 _def_3dfx='#undef CONFIG_3DFX' 4241 _def_3dfx='#undef CONFIG_3DFX'
4260 _novomodules="3dfx $_novomodules" 4242 _novomodules="3dfx $_novomodules"
4261 fi 4243 fi
4300 else 4282 else
4301 _gl=no 4283 _gl=no
4302 fi 4284 fi
4303 if test "$_gl" = yes ; then 4285 if test "$_gl" = yes ; then
4304 _def_gl='#define CONFIG_GL 1' 4286 _def_gl='#define CONFIG_GL 1'
4305 _vosrc="$_vosrc vo_gl.c vo_gl2.c gl_common.c"
4306 if test "$_gl_win32" = yes ; then 4287 if test "$_gl_win32" = yes ; then
4307 _def_gl_win32='#define GL_WIN32 1' 4288 _def_gl_win32='#define GL_WIN32 1'
4308 _vosrc="$_vosrc w32_common.c"
4309 _res_comment="win32 version" 4289 _res_comment="win32 version"
4310 fi 4290 fi
4311 _vomodules="opengl $_vomodules" 4291 _vomodules="opengl $_vomodules"
4312 else 4292 else
4313 _def_gl='#undef CONFIG_GL' 4293 _def_gl='#undef CONFIG_GL'
4357 fi 4337 fi
4358 echores "$_vidix" 4338 echores "$_vidix"
4359 4339
4360 if test "$_vidix" = yes ; then 4340 if test "$_vidix" = yes ; then
4361 _def_vidix='#define CONFIG_VIDIX 1' 4341 _def_vidix='#define CONFIG_VIDIX 1'
4362 _vosrc="$_vosrc vo_cvidix.c"
4363 _vomodules="cvidix $_vomodules" 4342 _vomodules="cvidix $_vomodules"
4364 test "$_vidix_drivers" || _vidix_drivers="cyberblade ivtv mach64 mga mga_crtc2 nvidia pm2 pm3 radeon rage128 s3 sh_veu sis unichrome" 4343 test "$_vidix_drivers" || _vidix_drivers="cyberblade ivtv mach64 mga mga_crtc2 nvidia pm2 pm3 radeon rage128 s3 sh_veu sis unichrome"
4365 test $_ivtv = "yes" || _vidix_drivers=`echo $_vidix_drivers | sed s/ivtv//` 4344 test $_ivtv = "yes" || _vidix_drivers=`echo $_vidix_drivers | sed s/ivtv//`
4366 4345
4367 # some vidix drivers are architecture and os specific, discard them elsewhere 4346 # some vidix drivers are architecture and os specific, discard them elsewhere
4393 else 4372 else
4394 _novomodules="cvidix $_novomodules" 4373 _novomodules="cvidix $_novomodules"
4395 fi 4374 fi
4396 4375
4397 if test "$_vidix" = yes && win32; then 4376 if test "$_vidix" = yes && win32; then
4398 _vosrc="$_vosrc vo_winvidix.c" 4377 winvidix=yes
4399 _vomodules="winvidix $_vomodules" 4378 _vomodules="winvidix $_vomodules"
4400 _libs_mplayer="$_libs_mplayer -lgdi32" 4379 _libs_mplayer="$_libs_mplayer -lgdi32"
4401 else 4380 else
4402 _novomodules="winvidix $_novomodules" 4381 _novomodules="winvidix $_novomodules"
4403 fi 4382 fi
4404 if test "$_vidix" = yes && test "$_x11" = yes; then 4383 if test "$_vidix" = yes && test "$_x11" = yes; then
4405 _vosrc="$_vosrc vo_xvidix.c" 4384 xvidix=yes
4406 _vomodules="xvidix $_vomodules" 4385 _vomodules="xvidix $_vomodules"
4407 else 4386 else
4408 _novomodules="xvidix $_novomodules" 4387 _novomodules="xvidix $_novomodules"
4409 fi 4388 fi
4410 4389
4413 _mga=no 4392 _mga=no
4414 test -c /dev/mga_vid && _mga=yes 4393 test -c /dev/mga_vid && _mga=yes
4415 fi 4394 fi
4416 if test "$_mga" = yes ; then 4395 if test "$_mga" = yes ; then
4417 _def_mga='#define CONFIG_MGA 1' 4396 _def_mga='#define CONFIG_MGA 1'
4418 _vosrc="$_vosrc vo_mga.c"
4419 _vomodules="mga $_vomodules" 4397 _vomodules="mga $_vomodules"
4420 else 4398 else
4421 _def_mga='#undef CONFIG_MGA' 4399 _def_mga='#undef CONFIG_MGA'
4422 _novomodules="mga $_novomodules" 4400 _novomodules="mga $_novomodules"
4423 fi 4401 fi
4429 _xmga=no 4407 _xmga=no
4430 test "$_x11" = yes && test "$_mga" = yes && _xmga=yes 4408 test "$_x11" = yes && test "$_mga" = yes && _xmga=yes
4431 fi 4409 fi
4432 if test "$_xmga" = yes ; then 4410 if test "$_xmga" = yes ; then
4433 _def_xmga='#define CONFIG_XMGA 1' 4411 _def_xmga='#define CONFIG_XMGA 1'
4434 _vosrc="$_vosrc vo_xmga.c"
4435 _vomodules="xmga $_vomodules" 4412 _vomodules="xmga $_vomodules"
4436 else 4413 else
4437 _def_xmga='#undef CONFIG_XMGA' 4414 _def_xmga='#undef CONFIG_XMGA'
4438 _novomodules="xmga $_novomodules" 4415 _novomodules="xmga $_novomodules"
4439 fi 4416 fi
4450 cc_check -lggi && _ggi=yes 4427 cc_check -lggi && _ggi=yes
4451 fi 4428 fi
4452 if test "$_ggi" = yes ; then 4429 if test "$_ggi" = yes ; then
4453 _def_ggi='#define CONFIG_GGI 1' 4430 _def_ggi='#define CONFIG_GGI 1'
4454 _libs_mplayer="$_libs_mplayer -lggi" 4431 _libs_mplayer="$_libs_mplayer -lggi"
4455 _vosrc="$_vosrc vo_ggi.c"
4456 _vomodules="ggi $_vomodules" 4432 _vomodules="ggi $_vomodules"
4457 else 4433 else
4458 _def_ggi='#undef CONFIG_GGI' 4434 _def_ggi='#undef CONFIG_GGI'
4459 _novomodules="ggi $_novomodules" 4435 _novomodules="ggi $_novomodules"
4460 fi 4436 fi
4505 if test "$_aa" = yes ; then 4481 if test "$_aa" = yes ; then
4506 _def_aa='#define CONFIG_AA 1' 4482 _def_aa='#define CONFIG_AA 1'
4507 if cygwin ; then 4483 if cygwin ; then
4508 _libs_mplayer="$_libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`" 4484 _libs_mplayer="$_libs_mplayer `aalib-config --libs | cut -d " " -f 2,5,6`"
4509 fi 4485 fi
4510 _vosrc="$_vosrc vo_aa.c"
4511 _vomodules="aa $_vomodules" 4486 _vomodules="aa $_vomodules"
4512 else 4487 else
4513 _def_aa='#undef CONFIG_AA' 4488 _def_aa='#undef CONFIG_AA'
4514 _novomodules="aa $_novomodules" 4489 _novomodules="aa $_novomodules"
4515 fi 4490 fi
4532 fi 4507 fi
4533 if test "$_caca" = yes ; then 4508 if test "$_caca" = yes ; then
4534 _def_caca='#define CONFIG_CACA 1' 4509 _def_caca='#define CONFIG_CACA 1'
4535 _inc_extra="$_inc_extra `caca-config --cflags`" 4510 _inc_extra="$_inc_extra `caca-config --cflags`"
4536 _libs_mplayer="$_libs_mplayer `caca-config --libs`" 4511 _libs_mplayer="$_libs_mplayer `caca-config --libs`"
4537 _vosrc="$_vosrc vo_caca.c"
4538 _vomodules="caca $_vomodules" 4512 _vomodules="caca $_vomodules"
4539 else 4513 else
4540 _def_caca='#undef CONFIG_CACA' 4514 _def_caca='#undef CONFIG_CACA'
4541 _novomodules="caca $_novomodules" 4515 _novomodules="caca $_novomodules"
4542 fi 4516 fi
4553 cc_check -lvga $_ld_lm && _svga=yes 4527 cc_check -lvga $_ld_lm && _svga=yes
4554 fi 4528 fi
4555 if test "$_svga" = yes ; then 4529 if test "$_svga" = yes ; then
4556 _def_svga='#define CONFIG_SVGALIB 1' 4530 _def_svga='#define CONFIG_SVGALIB 1'
4557 _libs_mplayer="$_libs_mplayer -lvga" 4531 _libs_mplayer="$_libs_mplayer -lvga"
4558 _vosrc="$_vosrc vo_svga.c"
4559 _vomodules="svga $_vomodules" 4532 _vomodules="svga $_vomodules"
4560 else 4533 else
4561 _def_svga='#undef CONFIG_SVGALIB' 4534 _def_svga='#undef CONFIG_SVGALIB'
4562 _novomodules="svga $_novomodules" 4535 _novomodules="svga $_novomodules"
4563 fi 4536 fi
4569 _fbdev=no 4542 _fbdev=no
4570 linux && _fbdev=yes 4543 linux && _fbdev=yes
4571 fi 4544 fi
4572 if test "$_fbdev" = yes ; then 4545 if test "$_fbdev" = yes ; then
4573 _def_fbdev='#define CONFIG_FBDEV 1' 4546 _def_fbdev='#define CONFIG_FBDEV 1'
4574 _vosrc="$_vosrc vo_fbdev.c vo_fbdev2.c"
4575 _vomodules="fbdev $_vomodules" 4547 _vomodules="fbdev $_vomodules"
4576 else 4548 else
4577 _def_fbdev='#undef CONFIG_FBDEV' 4549 _def_fbdev='#undef CONFIG_FBDEV'
4578 _novomodules="fbdev $_novomodules" 4550 _novomodules="fbdev $_novomodules"
4579 fi 4551 fi
4687 fi 4659 fi
4688 echores "$_png" 4660 echores "$_png"
4689 if test "$_png" = yes ; then 4661 if test "$_png" = yes ; then
4690 _def_png='#define CONFIG_PNG 1' 4662 _def_png='#define CONFIG_PNG 1'
4691 _ld_extra="$_ld_extra -lpng -lz" 4663 _ld_extra="$_ld_extra -lpng -lz"
4692 _vosrc="$_vosrc vo_png.c"
4693 _vomodules="png $_vomodules" 4664 _vomodules="png $_vomodules"
4694 else 4665 else
4695 _def_png='#undef CONFIG_PNG' 4666 _def_png='#undef CONFIG_PNG'
4696 _novomodules="png $_novomodules" 4667 _novomodules="png $_novomodules"
4697 fi 4668 fi
4737 fi 4708 fi
4738 echores "$_jpeg" 4709 echores "$_jpeg"
4739 4710
4740 if test "$_jpeg" = yes ; then 4711 if test "$_jpeg" = yes ; then
4741 _def_jpeg='#define CONFIG_JPEG 1' 4712 _def_jpeg='#define CONFIG_JPEG 1'
4742 _vosrc="$_vosrc vo_jpeg.c"
4743 _vomodules="jpeg $_vomodules" 4713 _vomodules="jpeg $_vomodules"
4744 _ld_extra="$_ld_extra -ljpeg" 4714 _ld_extra="$_ld_extra -ljpeg"
4745 else 4715 else
4746 _def_jpeg='#undef CONFIG_JPEG' 4716 _def_jpeg='#undef CONFIG_JPEG'
4747 _novomodules="jpeg $_novomodules" 4717 _novomodules="jpeg $_novomodules"
4750 4720
4751 4721
4752 echocheck "PNM support" 4722 echocheck "PNM support"
4753 if test "$_pnm" = yes; then 4723 if test "$_pnm" = yes; then
4754 _def_pnm="#define CONFIG_PNM 1" 4724 _def_pnm="#define CONFIG_PNM 1"
4755 _vosrc="$_vosrc vo_pnm.c"
4756 _vomodules="pnm $_vomodules" 4725 _vomodules="pnm $_vomodules"
4757 else 4726 else
4758 _def_pnm="#undef CONFIG_PNM" 4727 _def_pnm="#undef CONFIG_PNM"
4759 _novomodules="pnm $_novomodules" 4728 _novomodules="pnm $_novomodules"
4760 fi 4729 fi
4796 _ld_gif="-lgif" 4765 _ld_gif="-lgif"
4797 fi 4766 fi
4798 4767
4799 if test "$_gif" = yes ; then 4768 if test "$_gif" = yes ; then
4800 _def_gif='#define CONFIG_GIF 1' 4769 _def_gif='#define CONFIG_GIF 1'
4801 _vosrc="$_vosrc vo_gif89a.c"
4802 _codecmodules="gif $_codecmodules" 4770 _codecmodules="gif $_codecmodules"
4803 _vomodules="gif89a $_vomodules" 4771 _vomodules="gif89a $_vomodules"
4804 _res_comment="old version, some encoding functions disabled" 4772 _res_comment="old version, some encoding functions disabled"
4805 _def_gif_4='#undef CONFIG_GIF_4' 4773 _def_gif_4='#undef CONFIG_GIF_4'
4806 _ld_extra="$_ld_extra $_ld_gif" 4774 _ld_extra="$_ld_extra $_ld_gif"
4861 cc_check -lvbe -llrmi && _vesa=yes 4829 cc_check -lvbe -llrmi && _vesa=yes
4862 fi 4830 fi
4863 if test "$_vesa" = yes ; then 4831 if test "$_vesa" = yes ; then
4864 _def_vesa='#define CONFIG_VESA 1' 4832 _def_vesa='#define CONFIG_VESA 1'
4865 _libs_mplayer="$_libs_mplayer -lvbe -llrmi" 4833 _libs_mplayer="$_libs_mplayer -lvbe -llrmi"
4866 _vosrc="$_vosrc vo_vesa.c vesa_lvo.c gtf.c"
4867 _vomodules="vesa $_vomodules" 4834 _vomodules="vesa $_vomodules"
4868 else 4835 else
4869 _def_vesa='#undef CONFIG_VESA' 4836 _def_vesa='#undef CONFIG_VESA'
4870 _novomodules="vesa $_novomodules" 4837 _novomodules="vesa $_novomodules"
4871 fi 4838 fi
4919 _inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`" 4886 _inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-Dmain=SDL_main//`"
4920 else 4887 else
4921 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs`" 4888 _libs_mplayer="$_libs_mplayer `$_sdlconfig --libs`"
4922 _inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-D_GNU_SOURCE=1//`" 4889 _inc_extra="$_inc_extra `$_sdlconfig --cflags | sed s/-D_GNU_SOURCE=1//`"
4923 fi 4890 fi
4924 _vosrc="$_vosrc vo_sdl.c"
4925 _vomodules="sdl $_vomodules" 4891 _vomodules="sdl $_vomodules"
4926 _aomodules="sdl $_aomodules" 4892 _aomodules="sdl $_aomodules"
4927 _res_comment="using $_sdlconfig" 4893 _res_comment="using $_sdlconfig"
4928 else 4894 else
4929 _def_sdl='#undef CONFIG_SDL' 4895 _def_sdl='#undef CONFIG_SDL'
4966 cc_check -ld3d9 && _direct3d=yes 4932 cc_check -ld3d9 && _direct3d=yes
4967 fi 4933 fi
4968 if test "$_direct3d" = yes ; then 4934 if test "$_direct3d" = yes ; then
4969 _def_direct3d='#define CONFIG_DIRECT3D 1' 4935 _def_direct3d='#define CONFIG_DIRECT3D 1'
4970 _libs_mplayer="$_libs_mplayer -ld3d9" 4936 _libs_mplayer="$_libs_mplayer -ld3d9"
4971 _vosrc="$_vosrc vo_direct3d.c w32_common.c"
4972 _vomodules="direct3d $_vomodules" 4937 _vomodules="direct3d $_vomodules"
4973 else 4938 else
4974 _def_direct3d='#undef CONFIG_DIRECT3D' 4939 _def_direct3d='#undef CONFIG_DIRECT3D'
4975 _novomodules="direct3d $_novomodules" 4940 _novomodules="direct3d $_novomodules"
4976 fi 4941 fi
4988 cc_check -lgdi32 && _directx=yes 4953 cc_check -lgdi32 && _directx=yes
4989 fi 4954 fi
4990 if test "$_directx" = yes ; then 4955 if test "$_directx" = yes ; then
4991 _def_directx='#define CONFIG_DIRECTX 1' 4956 _def_directx='#define CONFIG_DIRECTX 1'
4992 _libs_mplayer="$_libs_mplayer -lgdi32" 4957 _libs_mplayer="$_libs_mplayer -lgdi32"
4993 _vosrc="$_vosrc vo_directx.c"
4994 _vomodules="directx $_vomodules" 4958 _vomodules="directx $_vomodules"
4995 _aomodules="dsound $_aomodules" 4959 _aomodules="dsound $_aomodules"
4996 else 4960 else
4997 _def_directx='#undef CONFIG_DIRECTX' 4961 _def_directx='#undef CONFIG_DIRECTX'
4998 _novomodules="directx $_novomodules" 4962 _novomodules="directx $_novomodules"
5034 _inc_extra="$_inc_extra $_inc_tmp" && break 4998 _inc_extra="$_inc_extra $_inc_tmp" && break
5035 done 4999 done
5036 fi 5000 fi
5037 if test "$_dxr2" = yes; then 5001 if test "$_dxr2" = yes; then
5038 _def_dxr2='#define CONFIG_DXR2 1' 5002 _def_dxr2='#define CONFIG_DXR2 1'
5039 _vosrc="$_vosrc vo_dxr2.c"
5040 _aomodules="dxr2 $_aomodules" 5003 _aomodules="dxr2 $_aomodules"
5041 _vomodules="dxr2 $_vomodules" 5004 _vomodules="dxr2 $_vomodules"
5042 else 5005 else
5043 _def_dxr2='#undef CONFIG_DXR2' 5006 _def_dxr2='#undef CONFIG_DXR2'
5044 _noaomodules="dxr2 $_noaomodules" 5007 _noaomodules="dxr2 $_noaomodules"
5055 _dxr3=no 5018 _dxr3=no
5056 cc_check && _dxr3=yes 5019 cc_check && _dxr3=yes
5057 fi 5020 fi
5058 if test "$_dxr3" = yes ; then 5021 if test "$_dxr3" = yes ; then
5059 _def_dxr3='#define CONFIG_DXR3 1' 5022 _def_dxr3='#define CONFIG_DXR3 1'
5060 _vosrc="$_vosrc vo_dxr3.c"
5061 _vomodules="dxr3 $_vomodules" 5023 _vomodules="dxr3 $_vomodules"
5062 else 5024 else
5063 _def_dxr3='#undef CONFIG_DXR3' 5025 _def_dxr3='#undef CONFIG_DXR3'
5064 _novomodules="dxr3 $_novomodules" 5026 _novomodules="dxr3 $_novomodules"
5065 fi 5027 fi
5085 _ivtv=no 5047 _ivtv=no
5086 cc_check && _ivtv=yes 5048 cc_check && _ivtv=yes
5087 fi 5049 fi
5088 if test "$_ivtv" = yes ; then 5050 if test "$_ivtv" = yes ; then
5089 _def_ivtv='#define CONFIG_IVTV 1' 5051 _def_ivtv='#define CONFIG_IVTV 1'
5090 _vosrc="$_vosrc vo_ivtv.c"
5091 _vomodules="ivtv $_vomodules" 5052 _vomodules="ivtv $_vomodules"
5092 _aomodules="ivtv $_aomodules" 5053 _aomodules="ivtv $_aomodules"
5093 else 5054 else
5094 _def_ivtv='#undef CONFIG_IVTV' 5055 _def_ivtv='#undef CONFIG_IVTV'
5095 _novomodules="ivtv $_novomodules" 5056 _novomodules="ivtv $_novomodules"
5119 _v4l2=no 5080 _v4l2=no
5120 cc_check && _v4l2=yes 5081 cc_check && _v4l2=yes
5121 fi 5082 fi
5122 if test "$_v4l2" = yes ; then 5083 if test "$_v4l2" = yes ; then
5123 _def_v4l2='#define CONFIG_V4L2_DECODER 1' 5084 _def_v4l2='#define CONFIG_V4L2_DECODER 1'
5124 _vosrc="$_vosrc vo_v4l2.c"
5125 _vomodules="v4l2 $_vomodules" 5085 _vomodules="v4l2 $_vomodules"
5126 _aomodules="v4l2 $_aomodules" 5086 _aomodules="v4l2 $_aomodules"
5127 else 5087 else
5128 _def_v4l2='#undef CONFIG_V4L2_DECODER' 5088 _def_v4l2='#undef CONFIG_V4L2_DECODER'
5129 _novomodules="v4l2 $_novomodules" 5089 _novomodules="v4l2 $_novomodules"
6969 fi 6929 fi
6970 fi 6930 fi
6971 if test "$_zr" = yes ; then 6931 if test "$_zr" = yes ; then
6972 if test "$_libavcodec_a" = yes ; then 6932 if test "$_libavcodec_a" = yes ; then
6973 _def_zr='#define CONFIG_ZR 1' 6933 _def_zr='#define CONFIG_ZR 1'
6974 _vosrc="$_vosrc vo_zr2.c vo_zr.c jpeg_enc.c"
6975 _vomodules="zr zr2 $_vomodules" 6934 _vomodules="zr zr2 $_vomodules"
6976 else 6935 else
6977 _res_comment="libavcodec (static) is required by zr, sorry" 6936 _res_comment="libavcodec (static) is required by zr, sorry"
6978 _novomodules="zr $_novomodules" 6937 _novomodules="zr $_novomodules"
6979 _def_zr='#undef CONFIG_ZR' 6938 _def_zr='#undef CONFIG_ZR'
7943 7902
7944 GETCH = $_getch 7903 GETCH = $_getch
7945 HELP_FILE = $_mp_help 7904 HELP_FILE = $_mp_help
7946 TIMER = $_timer 7905 TIMER = $_timer
7947 7906
7948 VO_SRCS = $_vosrc
7949
7950 EXESUF = $_exesuf 7907 EXESUF = $_exesuf
7951 7908
7952 $_target_arch 7909 $_target_arch
7953 $_target_arch_x86 7910 $_target_arch_x86
7954 `echo $_cpuexts | tr '[a-z] ' '[A-Z]\n' | sed 's/^/HAVE_/;s/$/=yes/'` 7911 `echo $_cpuexts | tr '[a-z] ' '[A-Z]\n' | sed 's/^/HAVE_/;s/$/=yes/'`
7964 NEED_STRSEP = $_need_strsep 7921 NEED_STRSEP = $_need_strsep
7965 NEED_SWAB = $_need_swab 7922 NEED_SWAB = $_need_swab
7966 NEED_VSSCANF = $_need_vsscanf 7923 NEED_VSSCANF = $_need_vsscanf
7967 7924
7968 # features 7925 # features
7926 3DFX = $_3dfx
7927 AA = $_aa
7969 ALSA1X = $_alsa1x 7928 ALSA1X = $_alsa1x
7970 ALSA9 = $_alsa9 7929 ALSA9 = $_alsa9
7971 ALSA5 = $_alsa5 7930 ALSA5 = $_alsa5
7972 APPLE_IR = $_apple_ir 7931 APPLE_IR = $_apple_ir
7973 APPLE_REMOTE = $_apple_remote 7932 APPLE_REMOTE = $_apple_remote
7974 ARTS = $_arts 7933 ARTS = $_arts
7975 AUDIO_INPUT = $_audio_input 7934 AUDIO_INPUT = $_audio_input
7976 BITMAP_FONT = $_bitmap_font 7935 BITMAP_FONT = $_bitmap_font
7936 BL = $_bl
7937 CACA = $_caca
7977 CDDA = $_cdda 7938 CDDA = $_cdda
7978 CDDB = $_cddb 7939 CDDB = $_cddb
7979 COREAUDIO = $_coreaudio 7940 COREAUDIO = $_coreaudio
7980 COREVIDEO = $_corevideo 7941 COREVIDEO = $_corevideo
7942 DFBMGA = $_dfbmga
7943 DGA = $_dga
7944 DIRECT3D = $_direct3d
7945 DIRECTFB = $_directfb
7981 DIRECTX = $_directx 7946 DIRECTX = $_directx
7982 DVBIN = $_dvbin 7947 DVBIN = $_dvbin
7983 DVDNAV = $_dvdnav 7948 DVDNAV = $_dvdnav
7984 DVDREAD = $_dvdread 7949 DVDREAD = $_dvdread
7985 DVDREAD_INTERNAL = $_dvdread_internal 7950 DVDREAD_INTERNAL = $_dvdread_internal
7986 DXR2 = $_dxr2 7951 DXR2 = $_dxr2
7952 DXR3 = $_dxr3
7987 ESD = $_esd 7953 ESD = $_esd
7988 FAAC=$_faac 7954 FAAC=$_faac
7989 FAAD = $_faad 7955 FAAD = $_faad
7990 FAAD_INTERNAL = $_faad_internal 7956 FAAD_INTERNAL = $_faad_internal
7957 FBDEV = $_fbdev
7991 FREETYPE = $_freetype 7958 FREETYPE = $_freetype
7992 FTP = $_ftp 7959 FTP = $_ftp
7993 GIF = $_gif 7960 GIF = $_gif
7961 GGI = $_ggi
7962 GL = $_gl
7963 GL_WIN32 = $_gl_win32
7994 GUI = $_gui 7964 GUI = $_gui
7995 GUI_GTK = $_gui_gtk 7965 GUI_GTK = $_gui_gtk
7996 GUI_WIN32 = $_gui_win32 7966 GUI_WIN32 = $_gui_win32
7997 HAVE_POSIX_SELECT = $_posix_select 7967 HAVE_POSIX_SELECT = $_posix_select
7998 HAVE_SYS_MMAN_H = $_mman 7968 HAVE_SYS_MMAN_H = $_mman
8020 LIBVORBIS = $_vorbis 7990 LIBVORBIS = $_vorbis
8021 LIRC = $_lirc 7991 LIRC = $_lirc
8022 LIVE555 = $_live 7992 LIVE555 = $_live
8023 MACOSX_BUNDLE = $_macosx_bundle 7993 MACOSX_BUNDLE = $_macosx_bundle
8024 MACOSX_FINDER = $_macosx_finder 7994 MACOSX_FINDER = $_macosx_finder
7995 MD5SUM = $_md5sum
7996 MGA = $_mga
8025 MNG = $_mng 7997 MNG = $_mng
8026 MP3LAME = $_mp3lame 7998 MP3LAME = $_mp3lame
8027 MP3LIB = $_mp3lib 7999 MP3LIB = $_mp3lib
8028 MUSEPACK = $_musepack 8000 MUSEPACK = $_musepack
8029 NAS = $_nas 8001 NAS = $_nas
8031 NETWORK = $_network 8003 NETWORK = $_network
8032 OPENAL = $_openal 8004 OPENAL = $_openal
8033 OSS = $_ossaudio 8005 OSS = $_ossaudio
8034 PE_EXECUTABLE = $_pe_executable 8006 PE_EXECUTABLE = $_pe_executable
8035 PNG = $_png 8007 PNG = $_png
8008 PNM = $_pnm
8036 PULSE = $_pulse 8009 PULSE = $_pulse
8037 PVR = $_pvr 8010 PVR = $_pvr
8038 QTX_CODECS = $_qtx 8011 QTX_CODECS = $_qtx
8039 QTX_CODECS_WIN32 = $_qtx_codecs_win32 8012 QTX_CODECS_WIN32 = $_qtx_codecs_win32
8040 QTX_EMULATION = $_qtx_emulation 8013 QTX_EMULATION = $_qtx_emulation
8041 QUARTZ = $_quartz 8014 QUARTZ = $_quartz
8042 RADIO=$_radio 8015 RADIO=$_radio
8043 RADIO_CAPTURE=$_radio_capture 8016 RADIO_CAPTURE=$_radio_capture
8044 REAL_CODECS = $_real 8017 REAL_CODECS = $_real
8018 S3FB = $_s3fb
8045 SDL = $_sdl 8019 SDL = $_sdl
8046 SPEEX = $_speex 8020 SPEEX = $_speex
8047 STREAM_CACHE = $_stream_cache 8021 STREAM_CACHE = $_stream_cache
8048 SGIAUDIO = $_sgiaudio 8022 SGIAUDIO = $_sgiaudio
8049 SUNAUDIO = $_sunaudio 8023 SUNAUDIO = $_sunaudio
8024 SVGA = $_svga
8025 TDFXFB = $_tdfxfb
8026 TDFXVID = $_tdfxvid
8027 TGA = $_tga
8050 TOOLAME=$_toolame 8028 TOOLAME=$_toolame
8051 TREMOR_INTERNAL = $_tremor_internal 8029 TREMOR_INTERNAL = $_tremor_internal
8052 TV = $_tv 8030 TV = $_tv
8053 TV_BSDBT848 = $_tv_bsdbt848 8031 TV_BSDBT848 = $_tv_bsdbt848
8054 TV_DSHOW = $_tv_dshow 8032 TV_DSHOW = $_tv_dshow
8058 TV_V4L2 = $_tv_v4l2 8036 TV_V4L2 = $_tv_v4l2
8059 TWOLAME=$_twolame 8037 TWOLAME=$_twolame
8060 UNRAR_EXEC = $_unrar_exec 8038 UNRAR_EXEC = $_unrar_exec
8061 V4L2 = $_v4l2 8039 V4L2 = $_v4l2
8062 VCD = $_vcd 8040 VCD = $_vcd
8041 VESA = $_vesa
8063 VIDIX = $_vidix 8042 VIDIX = $_vidix
8064 VIDIX_PCIDB = $_vidix_pcidb_val 8043 VIDIX_PCIDB = $_vidix_pcidb_val
8065 VIDIX_CYBERBLADE=$_vidix_drv_cyberblade 8044 VIDIX_CYBERBLADE=$_vidix_drv_cyberblade
8066 VIDIX_IVTV=$_vidix_drv_ivtv 8045 VIDIX_IVTV=$_vidix_drv_ivtv
8067 VIDIX_MACH64=$_vidix_drv_mach64 8046 VIDIX_MACH64=$_vidix_drv_mach64
8075 VIDIX_S3=$_vidix_drv_s3 8054 VIDIX_S3=$_vidix_drv_s3
8076 VIDIX_SH_VEU=$_vidix_drv_sh_veu 8055 VIDIX_SH_VEU=$_vidix_drv_sh_veu
8077 VIDIX_SIS=$_vidix_drv_sis 8056 VIDIX_SIS=$_vidix_drv_sis
8078 VIDIX_UNICHROME=$_vidix_drv_unichrome 8057 VIDIX_UNICHROME=$_vidix_drv_unichrome
8079 VSTREAM = $_vstream 8058 VSTREAM = $_vstream
8059 WII = $_wii
8080 WIN32DLL = $_win32dll 8060 WIN32DLL = $_win32dll
8081 WIN32WAVEOUT = $_win32waveout 8061 WIN32WAVEOUT = $_win32waveout
8082 WIN32_EMULATION = $_win32_emulation 8062 WIN32_EMULATION = $_win32_emulation
8063 WINVIDIX = $winvidix
8064 X11 = $_x11
8083 X264 = $_x264 8065 X264 = $_x264
8084 XANIM_CODECS = $_xanim 8066 XANIM_CODECS = $_xanim
8067 XMGA = $_xmga
8085 XMMS_PLUGINS = $_xmms 8068 XMMS_PLUGINS = $_xmms
8069 XV = $_xv
8086 XVID4 = $_xvid 8070 XVID4 = $_xvid
8071 XVIDIX = $xvidix
8072 XVMC = $_xvmc
8073 YUV4MPEG = $_yuv4mpeg
8087 ZR = $_zr 8074 ZR = $_zr
8088 8075
8089 # FFmpeg 8076 # FFmpeg
8090 LIBAVUTIL = $_libavutil 8077 LIBAVUTIL = $_libavutil
8091 LIBAVUTIL_A = $_libavutil_a 8078 LIBAVUTIL_A = $_libavutil_a