Mercurial > mplayer.hg
comparison configure @ 31479:f356309ee2f8
Replace manual header checks by header_check function.
author | diego |
---|---|
date | Thu, 24 Jun 2010 08:03:41 +0000 |
parents | 37a2dae0ab4b |
children | 403a295c7b2d |
comparison
equal
deleted
inserted
replaced
31478:bd0f47e100f8 | 31479:f356309ee2f8 |
---|---|
2718 int main(void) { return 0; } | 2718 int main(void) { return 0; } |
2719 EOF | 2719 EOF |
2720 if $(cc_check -maltivec -mabi=altivec) ; then | 2720 if $(cc_check -maltivec -mabi=altivec) ; then |
2721 _altivec_gcc_flags="-maltivec -mabi=altivec" | 2721 _altivec_gcc_flags="-maltivec -mabi=altivec" |
2722 # check if <altivec.h> should be included | 2722 # check if <altivec.h> should be included |
2723 cat > $TMPC << EOF | 2723 if $(header_check altivec.h $_altivec_gcc_flags) ; then |
2724 #include <altivec.h> | |
2725 int main(void) { return 0; } | |
2726 EOF | |
2727 if $(cc_check $_altivec_gcc_flags) ; then | |
2728 def_altivec_h='#define HAVE_ALTIVEC_H 1' | 2724 def_altivec_h='#define HAVE_ALTIVEC_H 1' |
2729 inc_altivec_h='#include <altivec.h>' | 2725 inc_altivec_h='#include <altivec.h>' |
2730 else | 2726 else |
2731 cat > $TMPC << EOF | 2727 cat > $TMPC << EOF |
2732 int main(void) { return 0; } | 2728 int main(void) { return 0; } |
3264 | 3260 |
3265 | 3261 |
3266 echocheck "arpa/inet.h" | 3262 echocheck "arpa/inet.h" |
3267 arpa_inet_h=no | 3263 arpa_inet_h=no |
3268 def_arpa_inet_h='#define HAVE_ARPA_INET_H 0' | 3264 def_arpa_inet_h='#define HAVE_ARPA_INET_H 0' |
3269 cat > $TMPC << EOF | 3265 header_check arpa_inet.h && arpa_inet_h=yes && |
3270 #include <arpa/inet.h> | 3266 def_arpa_inet_h='#define HAVE_ARPA_INET_H 1' |
3271 int main(void) { return 0; } | |
3272 EOF | |
3273 cc_check && arpa_inet_h=yes && def_arpa_inet_h='#define HAVE_ARPA_INET_H 1' | |
3274 echores "$arpa_inet_h" | 3267 echores "$arpa_inet_h" |
3275 | 3268 |
3276 | 3269 |
3277 echocheck "inet_pton()" | 3270 echocheck "inet_pton()" |
3278 def_inet_pton='#define HAVE_INET_PTON 0' | 3271 def_inet_pton='#define HAVE_INET_PTON 0' |
3406 fi | 3399 fi |
3407 echores "$_gethostbyname2" | 3400 echores "$_gethostbyname2" |
3408 | 3401 |
3409 | 3402 |
3410 echocheck "inttypes.h (required)" | 3403 echocheck "inttypes.h (required)" |
3411 cat > $TMPC << EOF | |
3412 #include <inttypes.h> | |
3413 int main(void) { return 0; } | |
3414 EOF | |
3415 _inttypes=no | 3404 _inttypes=no |
3416 cc_check && _inttypes=yes | 3405 header_check inttypes.h && _inttypes=yes |
3417 echores "$_inttypes" | 3406 echores "$_inttypes" |
3418 | 3407 |
3419 if test "$_inttypes" = no ; then | 3408 if test "$_inttypes" = no ; then |
3420 echocheck "bitypes.h (inttypes.h predecessor)" | 3409 echocheck "sys/bitypes.h (inttypes.h predecessor)" |
3421 cat > $TMPC << EOF | 3410 header_check sys/bitypes.h && _inttypes=yes |
3422 #include <sys/bitypes.h> | |
3423 int main(void) { return 0; } | |
3424 EOF | |
3425 cc_check && _inttypes=yes | |
3426 if test "$_inttypes" = yes ; then | 3411 if test "$_inttypes" = yes ; then |
3427 die "You don't have inttypes.h, but sys/bitypes.h is present. Please copy etc/inttypes.h into the include path, and re-run configure." | 3412 die "You don't have inttypes.h, but sys/bitypes.h is present. Please copy etc/inttypes.h into the include path, and re-run configure." |
3428 else | 3413 else |
3429 die "Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed." | 3414 die "Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed." |
3430 fi | 3415 fi |
3453 fi | 3438 fi |
3454 echores "$_fast_inttypes" | 3439 echores "$_fast_inttypes" |
3455 | 3440 |
3456 | 3441 |
3457 echocheck "malloc.h" | 3442 echocheck "malloc.h" |
3458 cat > $TMPC << EOF | |
3459 #include <malloc.h> | |
3460 int main(void) { (void) malloc(0); return 0; } | |
3461 EOF | |
3462 _malloc=no | 3443 _malloc=no |
3463 cc_check && _malloc=yes | 3444 header_check malloc.h && _malloc=yes |
3464 if test "$_malloc" = yes ; then | 3445 if test "$_malloc" = yes ; then |
3465 def_malloc_h='#define HAVE_MALLOC_H 1' | 3446 def_malloc_h='#define HAVE_MALLOC_H 1' |
3466 else | 3447 else |
3467 def_malloc_h='#define HAVE_MALLOC_H 0' | 3448 def_malloc_h='#define HAVE_MALLOC_H 0' |
3468 fi | 3449 fi |
3710 echocheck "soundcard.h" | 3691 echocheck "soundcard.h" |
3711 _soundcard_h=no | 3692 _soundcard_h=no |
3712 def_soundcard_h='#undef HAVE_SOUNDCARD_H' | 3693 def_soundcard_h='#undef HAVE_SOUNDCARD_H' |
3713 def_sys_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H' | 3694 def_sys_soundcard_h='#undef HAVE_SYS_SOUNDCARD_H' |
3714 for _soundcard_header in "sys/soundcard.h" "soundcard.h"; do | 3695 for _soundcard_header in "sys/soundcard.h" "soundcard.h"; do |
3715 cat > $TMPC << EOF | 3696 header_check $_soundcard_header && _soundcard_h=yes && |
3716 #include <$_soundcard_header> | 3697 res_comment="$_soundcard_header" && break |
3717 int main(void) { return 0; } | |
3718 EOF | |
3719 cc_check && _soundcard_h=yes && res_comment="$_soundcard_header" && break | |
3720 done | 3698 done |
3721 | 3699 |
3722 if test "$_soundcard_h" = yes ; then | 3700 if test "$_soundcard_h" = yes ; then |
3723 if test $_soundcard_header = "sys/soundcard.h"; then | 3701 if test $_soundcard_header = "sys/soundcard.h"; then |
3724 def_sys_soundcard_h='#define HAVE_SYS_SOUNDCARD_H 1' | 3702 def_sys_soundcard_h='#define HAVE_SYS_SOUNDCARD_H 1' |
3728 fi | 3706 fi |
3729 echores "$_soundcard_h" | 3707 echores "$_soundcard_h" |
3730 | 3708 |
3731 | 3709 |
3732 echocheck "sys/dvdio.h" | 3710 echocheck "sys/dvdio.h" |
3733 cat > $TMPC << EOF | |
3734 #include <sys/dvdio.h> | |
3735 int main(void) { return 0; } | |
3736 EOF | |
3737 _dvdio=no | 3711 _dvdio=no |
3738 cc_check && _dvdio=yes | 3712 header_check sys/dvdio.h && _dvdio=yes |
3739 if test "$_dvdio" = yes ; then | 3713 if test "$_dvdio" = yes ; then |
3740 def_dvdio='#define DVD_STRUCT_IN_SYS_DVDIO_H 1' | 3714 def_dvdio='#define DVD_STRUCT_IN_SYS_DVDIO_H 1' |
3741 else | 3715 else |
3742 def_dvdio='#undef DVD_STRUCT_IN_SYS_DVDIO_H' | 3716 def_dvdio='#undef DVD_STRUCT_IN_SYS_DVDIO_H' |
3743 fi | 3717 fi |
3744 echores "$_dvdio" | 3718 echores "$_dvdio" |
3745 | 3719 |
3746 | 3720 |
3747 echocheck "sys/cdio.h" | 3721 echocheck "sys/cdio.h" |
3748 cat > $TMPC << EOF | |
3749 #include <sys/cdio.h> | |
3750 int main(void) { return 0; } | |
3751 EOF | |
3752 _cdio=no | 3722 _cdio=no |
3753 cc_check && _cdio=yes | 3723 header_check sys/cdio.h && _cdio=yes |
3754 if test "$_cdio" = yes ; then | 3724 if test "$_cdio" = yes ; then |
3755 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' | 3725 def_cdio='#define DVD_STRUCT_IN_SYS_CDIO_H 1' |
3756 else | 3726 else |
3757 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' | 3727 def_cdio='#undef DVD_STRUCT_IN_SYS_CDIO_H' |
3758 fi | 3728 fi |
3759 echores "$_cdio" | 3729 echores "$_cdio" |
3760 | 3730 |
3761 | 3731 |
3762 echocheck "linux/cdrom.h" | 3732 echocheck "linux/cdrom.h" |
3763 cat > $TMPC << EOF | |
3764 #include <linux/cdrom.h> | |
3765 int main(void) { return 0; } | |
3766 EOF | |
3767 _cdrom=no | 3733 _cdrom=no |
3768 cc_check && _cdrom=yes | 3734 header_check linux/cdrom.h && _cdrom=yes |
3769 if test "$_cdrom" = yes ; then | 3735 if test "$_cdrom" = yes ; then |
3770 def_cdrom='#define DVD_STRUCT_IN_LINUX_CDROM_H 1' | 3736 def_cdrom='#define DVD_STRUCT_IN_LINUX_CDROM_H 1' |
3771 else | 3737 else |
3772 def_cdrom='#undef DVD_STRUCT_IN_LINUX_CDROM_H' | 3738 def_cdrom='#undef DVD_STRUCT_IN_LINUX_CDROM_H' |
3773 fi | 3739 fi |
3774 echores "$_cdrom" | 3740 echores "$_cdrom" |
3775 | 3741 |
3776 | 3742 |
3777 echocheck "dvd.h" | 3743 echocheck "dvd.h" |
3778 cat > $TMPC << EOF | |
3779 #include <dvd.h> | |
3780 int main(void) { return 0; } | |
3781 EOF | |
3782 _dvd=no | 3744 _dvd=no |
3783 cc_check && _dvd=yes | 3745 header_check dvd.h && _dvd=yes |
3784 if test "$_dvd" = yes ; then | 3746 if test "$_dvd" = yes ; then |
3785 def_dvd='#define DVD_STRUCT_IN_DVD_H 1' | 3747 def_dvd='#define DVD_STRUCT_IN_DVD_H 1' |
3786 else | 3748 else |
3787 def_dvd='#undef DVD_STRUCT_IN_DVD_H' | 3749 def_dvd='#undef DVD_STRUCT_IN_DVD_H' |
3788 fi | 3750 fi |
3789 echores "$_dvd" | 3751 echores "$_dvd" |
3790 | 3752 |
3791 | 3753 |
3792 if bsdos; then | 3754 if bsdos; then |
3793 echocheck "BSDI dvd.h" | 3755 echocheck "BSDI dvd.h" |
3794 cat > $TMPC << EOF | |
3795 #include <dvd.h> | |
3796 int main(void) { return 0; } | |
3797 EOF | |
3798 _bsdi_dvd=no | 3756 _bsdi_dvd=no |
3799 cc_check && _bsdi_dvd=yes | 3757 header_check dvd.h && _bsdi_dvd=yes |
3800 if test "$_bsdi_dvd" = yes ; then | 3758 if test "$_bsdi_dvd" = yes ; then |
3801 def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1' | 3759 def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1' |
3802 else | 3760 else |
3803 def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H' | 3761 def_bsdi_dvd='#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H' |
3804 fi | 3762 fi |
3807 | 3765 |
3808 | 3766 |
3809 if hpux; then | 3767 if hpux; then |
3810 # also used by AIX, but AIX does not support VCD and/or libdvdread | 3768 # also used by AIX, but AIX does not support VCD and/or libdvdread |
3811 echocheck "HP-UX SCSI header" | 3769 echocheck "HP-UX SCSI header" |
3812 cat > $TMPC << EOF | |
3813 #include <sys/scsi.h> | |
3814 int main(void) { return 0; } | |
3815 EOF | |
3816 _hpux_scsi_h=no | 3770 _hpux_scsi_h=no |
3817 cc_check && _hpux_scsi_h=yes | 3771 header_check sys/scsi.h && _hpux_scsi_h=yes |
3818 if test "$_hpux_scsi_h" = yes ; then | 3772 if test "$_hpux_scsi_h" = yes ; then |
3819 def_hpux_scsi_h='#define HPUX_SCTL_IO 1' | 3773 def_hpux_scsi_h='#define HPUX_SCTL_IO 1' |
3820 else | 3774 else |
3821 def_hpux_scsi_h='#undef HPUX_SCTL_IO' | 3775 def_hpux_scsi_h='#undef HPUX_SCTL_IO' |
3822 fi | 3776 fi |
3824 fi #if hpux | 3778 fi #if hpux |
3825 | 3779 |
3826 | 3780 |
3827 if sunos; then | 3781 if sunos; then |
3828 echocheck "userspace SCSI headers (Solaris)" | 3782 echocheck "userspace SCSI headers (Solaris)" |
3829 cat > $TMPC << EOF | |
3830 #include <sys/scsi/scsi_types.h> | |
3831 #include <sys/scsi/impl/uscsi.h> | |
3832 int main(void) { return 0; } | |
3833 EOF | |
3834 _sol_scsi_h=no | 3783 _sol_scsi_h=no |
3835 cc_check && _sol_scsi_h=yes | 3784 header_check sys/scsi/scsi_types.h && header_check sys/scsi/impl/uscsi.h && |
3785 _sol_scsi_h=yes | |
3836 if test "$_sol_scsi_h" = yes ; then | 3786 if test "$_sol_scsi_h" = yes ; then |
3837 def_sol_scsi_h='#define SOLARIS_USCSI 1' | 3787 def_sol_scsi_h='#define SOLARIS_USCSI 1' |
3838 else | 3788 else |
3839 def_sol_scsi_h='#undef SOLARIS_USCSI' | 3789 def_sol_scsi_h='#undef SOLARIS_USCSI' |
3840 fi | 3790 fi |
3869 def_termios_h='#undef HAVE_TERMIOS_H' | 3819 def_termios_h='#undef HAVE_TERMIOS_H' |
3870 def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H' | 3820 def_termios_sys_h='#undef HAVE_SYS_TERMIOS_H' |
3871 if test "$_termios" = auto ; then | 3821 if test "$_termios" = auto ; then |
3872 _termios=no | 3822 _termios=no |
3873 for _termios_header in "termios.h" "sys/termios.h"; do | 3823 for _termios_header in "termios.h" "sys/termios.h"; do |
3874 cat > $TMPC <<EOF | 3824 header_check $_termios_header && _termios=yes && |
3875 #include <$_termios_header> | 3825 res_comment="using $_termios_header" && break |
3876 int main(void) { return 0; } | |
3877 EOF | |
3878 cc_check && _termios=yes && res_comment="using $_termios_header" && break | |
3879 done | 3826 done |
3880 fi | 3827 fi |
3881 | 3828 |
3882 if test "$_termios" = yes ; then | 3829 if test "$_termios" = yes ; then |
3883 def_termios='#define HAVE_TERMIOS 1' | 3830 def_termios='#define HAVE_TERMIOS 1' |
4889 echores "$_caca" | 4836 echores "$_caca" |
4890 | 4837 |
4891 | 4838 |
4892 echocheck "SVGAlib" | 4839 echocheck "SVGAlib" |
4893 if test "$_svga" = auto ; then | 4840 if test "$_svga" = auto ; then |
4894 cat > $TMPC << EOF | |
4895 #include <vga.h> | |
4896 int main(void) { return 0; } | |
4897 EOF | |
4898 _svga=no | 4841 _svga=no |
4899 cc_check -lvga $_ld_lm && _svga=yes | 4842 header_check vga.h -lvga $_ld_lm && _svga=yes |
4900 fi | 4843 fi |
4901 if test "$_svga" = yes ; then | 4844 if test "$_svga" = yes ; then |
4902 def_svga='#define CONFIG_SVGALIB 1' | 4845 def_svga='#define CONFIG_SVGALIB 1' |
4903 libs_mplayer="$libs_mplayer -lvga" | 4846 libs_mplayer="$libs_mplayer -lvga" |
4904 vomodules="svga $vomodules" | 4847 vomodules="svga $vomodules" |
5524 | 5467 |
5525 | 5468 |
5526 echocheck "DXR2" | 5469 echocheck "DXR2" |
5527 if test "$_dxr2" = auto; then | 5470 if test "$_dxr2" = auto; then |
5528 _dxr2=no | 5471 _dxr2=no |
5529 cat > $TMPC << EOF | |
5530 #include <dxr2ioctl.h> | |
5531 int main(void) { return 0; } | |
5532 EOF | |
5533 for _inc_tmp in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do | 5472 for _inc_tmp in "" -I/usr/local/include/dxr2 -I/usr/include/dxr2; do |
5534 cc_check $_inc_tmp && _dxr2=yes && \ | 5473 header_check dxr2ioctl.h $_inc_tmp && _dxr2=yes && |
5535 extra_cflags="$extra_cflags $_inc_tmp" && break | 5474 extra_cflags="$extra_cflags $_inc_tmp" && break |
5536 done | 5475 done |
5537 fi | 5476 fi |
5538 if test "$_dxr2" = yes; then | 5477 if test "$_dxr2" = yes; then |
5539 def_dxr2='#define CONFIG_DXR2 1' | 5478 def_dxr2='#define CONFIG_DXR2 1' |
5546 fi | 5485 fi |
5547 echores "$_dxr2" | 5486 echores "$_dxr2" |
5548 | 5487 |
5549 echocheck "DXR3/H+" | 5488 echocheck "DXR3/H+" |
5550 if test "$_dxr3" = auto ; then | 5489 if test "$_dxr3" = auto ; then |
5551 cat > $TMPC << EOF | |
5552 #include <linux/em8300.h> | |
5553 int main(void) { return 0; } | |
5554 EOF | |
5555 _dxr3=no | 5490 _dxr3=no |
5556 cc_check && _dxr3=yes | 5491 header_check linux/em8300.h && _dxr3=yes |
5557 fi | 5492 fi |
5558 if test "$_dxr3" = yes ; then | 5493 if test "$_dxr3" = yes ; then |
5559 def_dxr3='#define CONFIG_DXR3 1' | 5494 def_dxr3='#define CONFIG_DXR3 1' |
5560 vomodules="dxr3 $vomodules" | 5495 vomodules="dxr3 $vomodules" |
5561 else | 5496 else |
5678 | 5613 |
5679 echocheck "aRts" | 5614 echocheck "aRts" |
5680 if test "$_arts" = auto ; then | 5615 if test "$_arts" = auto ; then |
5681 _arts=no | 5616 _arts=no |
5682 if ( artsc-config --version ) >> "$TMPLOG" 2>&1 ; then | 5617 if ( artsc-config --version ) >> "$TMPLOG" 2>&1 ; then |
5683 | 5618 header_check artsc.h $(artsc-config --libs) $(artsc-config --cflags) && |
5684 cat > $TMPC << EOF | 5619 _arts=yes |
5685 #include <artsc.h> | |
5686 int main(void) { return 0; } | |
5687 EOF | |
5688 cc_check $(artsc-config --libs) $(artsc-config --cflags) && _arts=yes | |
5689 | |
5690 fi | 5620 fi |
5691 fi | 5621 fi |
5692 | 5622 |
5693 if test "$_arts" = yes ; then | 5623 if test "$_arts" = yes ; then |
5694 def_arts='#define CONFIG_ARTS 1' | 5624 def_arts='#define CONFIG_ARTS 1' |
5736 fi | 5666 fi |
5737 | 5667 |
5738 | 5668 |
5739 echocheck "NAS" | 5669 echocheck "NAS" |
5740 if test "$_nas" = auto ; then | 5670 if test "$_nas" = auto ; then |
5741 cat > $TMPC << EOF | |
5742 #include <audio/audiolib.h> | |
5743 int main(void) { return 0; } | |
5744 EOF | |
5745 _nas=no | 5671 _nas=no |
5746 cc_check $_ld_lm -laudio -lXt && _nas=yes | 5672 header_check audio/audiolib.h $_ld_lm -laudio -lXt && _nas=yes |
5747 fi | 5673 fi |
5748 if test "$_nas" = yes ; then | 5674 if test "$_nas" = yes ; then |
5749 def_nas='#define CONFIG_NAS 1' | 5675 def_nas='#define CONFIG_NAS 1' |
5750 libs_mplayer="$libs_mplayer -laudio -lXt" | 5676 libs_mplayer="$libs_mplayer -laudio -lXt" |
5751 aomodules="nas $aomodules" | 5677 aomodules="nas $aomodules" |
5758 | 5684 |
5759 echocheck "pulse" | 5685 echocheck "pulse" |
5760 if test "$_pulse" = auto ; then | 5686 if test "$_pulse" = auto ; then |
5761 _pulse=no | 5687 _pulse=no |
5762 if $_pkg_config --exists 'libpulse >= 0.9' ; then | 5688 if $_pkg_config --exists 'libpulse >= 0.9' ; then |
5763 | 5689 header_check pulse/pulseaudio.h $($_pkg_config --libs --cflags libpulse) && |
5764 cat > $TMPC << EOF | 5690 _pulse=yes |
5765 #include <pulse/pulseaudio.h> | |
5766 int main(void) { return 0; } | |
5767 EOF | |
5768 cc_check $($_pkg_config --libs --cflags libpulse) && _pulse=yes | |
5769 | |
5770 fi | 5691 fi |
5771 fi | 5692 fi |
5772 echores "$_pulse" | 5693 echores "$_pulse" |
5773 | 5694 |
5774 if test "$_pulse" = yes ; then | 5695 if test "$_pulse" = yes ; then |
6000 | 5921 |
6001 | 5922 |
6002 if irix; then | 5923 if irix; then |
6003 echocheck "SGI audio" | 5924 echocheck "SGI audio" |
6004 if test "$_sgiaudio" = auto ; then | 5925 if test "$_sgiaudio" = auto ; then |
6005 # check for SGI audio | |
6006 cat > $TMPC << EOF | |
6007 #include <dmedia/audio.h> | |
6008 int main(void) { return 0; } | |
6009 EOF | |
6010 _sgiaudio=no | 5926 _sgiaudio=no |
6011 cc_check && _sgiaudio=yes | 5927 header_check dmedia/audio.h && _sgiaudio=yes |
6012 fi | 5928 fi |
6013 if test "$_sgiaudio" = "yes" ; then | 5929 if test "$_sgiaudio" = "yes" ; then |
6014 def_sgiaudio='#define CONFIG_SGI_AUDIO 1' | 5930 def_sgiaudio='#define CONFIG_SGI_AUDIO 1' |
6015 libs_mplayer="$libs_mplayer -laudio" | 5931 libs_mplayer="$libs_mplayer -laudio" |
6016 aomodules="sgi $aomodules" | 5932 aomodules="sgi $aomodules" |
6100 if test "$_vcd" = auto; then | 6016 if test "$_vcd" = auto; then |
6101 _vcd=no | 6017 _vcd=no |
6102 if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || os2; then | 6018 if linux || freebsd || netbsd || openbsd || dragonfly || bsdos || darwin || sunos || os2; then |
6103 _vcd=yes | 6019 _vcd=yes |
6104 elif mingw32; then | 6020 elif mingw32; then |
6105 cat > $TMPC << EOF | 6021 header_check ddk/ntddcdrm.h && _vcd=yes |
6106 #include <ddk/ntddcdrm.h> | |
6107 int main(void) { return 0; } | |
6108 EOF | |
6109 cc_check && _vcd=yes | |
6110 fi | 6022 fi |
6111 fi | 6023 fi |
6112 if test "$_vcd" = yes; then | 6024 if test "$_vcd" = yes; then |
6113 inputmodules="vcd $inputmodules" | 6025 inputmodules="vcd $inputmodules" |
6114 def_vcd='#define CONFIG_VCD 1' | 6026 def_vcd='#define CONFIG_VCD 1' |
6568 | 6480 |
6569 | 6481 |
6570 echocheck "mad support" | 6482 echocheck "mad support" |
6571 if test "$_mad" = auto ; then | 6483 if test "$_mad" = auto ; then |
6572 _mad=no | 6484 _mad=no |
6573 cat > $TMPC << EOF | 6485 header_check mad.h -lmad && _mad=yes |
6574 #include <mad.h> | |
6575 int main(void) { return 0; } | |
6576 EOF | |
6577 cc_check -lmad && _mad=yes | |
6578 fi | 6486 fi |
6579 if test "$_mad" = yes ; then | 6487 if test "$_mad" = yes ; then |
6580 def_mad='#define CONFIG_LIBMAD 1' | 6488 def_mad='#define CONFIG_LIBMAD 1' |
6581 extra_ldflags="$extra_ldflags -lmad" | 6489 extra_ldflags="$extra_ldflags -lmad" |
6582 codecmodules="libmad $codecmodules" | 6490 codecmodules="libmad $codecmodules" |
7936 | 7844 |
7937 echocheck "Video 4 Linux TV interface" | 7845 echocheck "Video 4 Linux TV interface" |
7938 if test "$_tv_v4l1" = auto ; then | 7846 if test "$_tv_v4l1" = auto ; then |
7939 _tv_v4l1=no | 7847 _tv_v4l1=no |
7940 if test "$_tv" = yes && linux ; then | 7848 if test "$_tv" = yes && linux ; then |
7941 cat > $TMPC <<EOF | 7849 header_check linux/videodev.h && _tv_v4l1=yes |
7942 #include <linux/videodev.h> | |
7943 int main(void) { return 0; } | |
7944 EOF | |
7945 cc_check && _tv_v4l1=yes | |
7946 fi | 7850 fi |
7947 fi | 7851 fi |
7948 if test "$_tv_v4l1" = yes ; then | 7852 if test "$_tv_v4l1" = yes ; then |
7949 _audio_input=yes | 7853 _audio_input=yes |
7950 _tv_v4l=yes | 7854 _tv_v4l=yes |
7960 | 7864 |
7961 echocheck "Video 4 Linux 2 TV interface" | 7865 echocheck "Video 4 Linux 2 TV interface" |
7962 if test "$_tv_v4l2" = auto ; then | 7866 if test "$_tv_v4l2" = auto ; then |
7963 _tv_v4l2=no | 7867 _tv_v4l2=no |
7964 if test "$_tv" = yes && linux ; then | 7868 if test "$_tv" = yes && linux ; then |
7965 cat > $TMPC <<EOF | 7869 header_check linux/videodev2.h && _tv_v4l2=yes |
7966 #include <linux/videodev2.h> | |
7967 int main(void) { return 0; } | |
7968 EOF | |
7969 cc_check && _tv_v4l2=yes | |
7970 fi | 7870 fi |
7971 fi | 7871 fi |
7972 if test "$_tv_v4l2" = yes ; then | 7872 if test "$_tv_v4l2" = yes ; then |
7973 _audio_input=yes | 7873 _audio_input=yes |
7974 _tv_v4l=yes | 7874 _tv_v4l=yes |
8007 | 7907 |
8008 echocheck "Video 4 Linux 2 Radio interface" | 7908 echocheck "Video 4 Linux 2 Radio interface" |
8009 if test "$_radio_v4l2" = auto ; then | 7909 if test "$_radio_v4l2" = auto ; then |
8010 _radio_v4l2=no | 7910 _radio_v4l2=no |
8011 if test "$_radio" = yes && linux ; then | 7911 if test "$_radio" = yes && linux ; then |
8012 cat > $TMPC <<EOF | 7912 header_check linux/videodev2.h && _radio_v4l2=yes |
8013 #include <linux/videodev2.h> | |
8014 int main(void) { return 0; } | |
8015 EOF | |
8016 cc_check && _radio_v4l2=yes | |
8017 fi | 7913 fi |
8018 fi | 7914 fi |
8019 if test "$_radio_v4l2" = yes ; then | 7915 if test "$_radio_v4l2" = yes ; then |
8020 def_radio_v4l2='#define CONFIG_RADIO_V4L2 1' | 7916 def_radio_v4l2='#define CONFIG_RADIO_V4L2 1' |
8021 else | 7917 else |
8025 | 7921 |
8026 echocheck "Video 4 Linux Radio interface" | 7922 echocheck "Video 4 Linux Radio interface" |
8027 if test "$_radio_v4l" = auto ; then | 7923 if test "$_radio_v4l" = auto ; then |
8028 _radio_v4l=no | 7924 _radio_v4l=no |
8029 if test "$_radio" = yes && linux ; then | 7925 if test "$_radio" = yes && linux ; then |
8030 cat > $TMPC <<EOF | 7926 header_check linux/videodev.h && _radio_v4l=yes |
8031 #include <linux/videodev.h> | |
8032 int main(void) { return 0; } | |
8033 EOF | |
8034 cc_check && _radio_v4l=yes | |
8035 fi | 7927 fi |
8036 fi | 7928 fi |
8037 if test "$_radio_v4l" = yes ; then | 7929 if test "$_radio_v4l" = yes ; then |
8038 def_radio_v4l='#define CONFIG_RADIO_V4L 1' | 7930 def_radio_v4l='#define CONFIG_RADIO_V4L 1' |
8039 else | 7931 else |
8373 echores "$_joystick" | 8265 echores "$_joystick" |
8374 | 8266 |
8375 echocheck "lirc" | 8267 echocheck "lirc" |
8376 if test "$_lirc" = auto ; then | 8268 if test "$_lirc" = auto ; then |
8377 _lirc=no | 8269 _lirc=no |
8378 cat > $TMPC <<EOF | 8270 header_check lirc/lirc_client.h -llirc_client && _lirc=yes |
8379 #include <lirc/lirc_client.h> | |
8380 int main(void) { return 0; } | |
8381 EOF | |
8382 cc_check -llirc_client && _lirc=yes | |
8383 fi | 8271 fi |
8384 if test "$_lirc" = yes ; then | 8272 if test "$_lirc" = yes ; then |
8385 def_lirc='#define CONFIG_LIRC 1' | 8273 def_lirc='#define CONFIG_LIRC 1' |
8386 libs_mplayer="$libs_mplayer -llirc_client" | 8274 libs_mplayer="$libs_mplayer -llirc_client" |
8387 else | 8275 else |
8390 echores "$_lirc" | 8278 echores "$_lirc" |
8391 | 8279 |
8392 echocheck "lircc" | 8280 echocheck "lircc" |
8393 if test "$_lircc" = auto ; then | 8281 if test "$_lircc" = auto ; then |
8394 _lircc=no | 8282 _lircc=no |
8395 cat > $TMPC <<EOF | 8283 header_check lirc/lircc.h -llircc && _lircc=yes |
8396 #include <lirc/lircc.h> | |
8397 int main(void) { return 0; } | |
8398 EOF | |
8399 cc_check -llircc && _lircc=yes | |
8400 fi | 8284 fi |
8401 if test "$_lircc" = yes ; then | 8285 if test "$_lircc" = yes ; then |
8402 def_lircc='#define CONFIG_LIRCC 1' | 8286 def_lircc='#define CONFIG_LIRCC 1' |
8403 libs_mplayer="$libs_mplayer -llircc" | 8287 libs_mplayer="$libs_mplayer -llircc" |
8404 else | 8288 else |