comparison configure @ 23967:d9242f4dd2b5

(cosmetics) Make TV detection code two spaces indented
author voroshil
date Wed, 01 Aug 2007 09:32:37 +0000
parents fb3bdf4cc3c2
children 4b065c8a37c9
comparison
equal deleted inserted replaced
23966:fb3bdf4cc3c2 23967:d9242f4dd2b5
6596 fi 6596 fi
6597 echores "$_tv" 6597 echores "$_tv"
6598 6598
6599 6599
6600 if bsd; then 6600 if bsd; then
6601 echocheck "*BSD BT848 bt8xx header" 6601 echocheck "*BSD BT848 bt8xx header"
6602 _ioctl_bt848_h=no 6602 _ioctl_bt848_h=no
6603 for file in "machine/ioctl_bt848.h" \ 6603 for file in "machine/ioctl_bt848.h" \
6604 "dev/bktr/ioctl_bt848.h" \ 6604 "dev/bktr/ioctl_bt848.h" \
6605 "dev/video/bktr/ioctl_bt848.h" \ 6605 "dev/video/bktr/ioctl_bt848.h" \
6606 "dev/ic/bt8xx.h" ; do 6606 "dev/ic/bt8xx.h" ; do
6607 cat > $TMPC <<EOF 6607 cat > $TMPC <<EOF
6608 #include <sys/types.h> 6608 #include <sys/types.h>
6615 if cc_check ; then 6615 if cc_check ; then
6616 _ioctl_bt848_h=yes 6616 _ioctl_bt848_h=yes
6617 _ioctl_bt848_h_name="$file" 6617 _ioctl_bt848_h_name="$file"
6618 break; 6618 break;
6619 fi 6619 fi
6620 done 6620 done
6621 if test "$_ioctl_bt848_h" = yes ; then 6621 if test "$_ioctl_bt848_h" = yes ; then
6622 _def_ioctl_bt848_h_name="#define IOCTL_BT848_H_NAME <$_ioctl_bt848_h_name>" 6622 _def_ioctl_bt848_h_name="#define IOCTL_BT848_H_NAME <$_ioctl_bt848_h_name>"
6623 _res_comment="using $_ioctl_bt848_h_name" 6623 _res_comment="using $_ioctl_bt848_h_name"
6624 else 6624 else
6625 _def_ioctl_bt848_h_name="#undef IOCTL_BT848_H_NAME" 6625 _def_ioctl_bt848_h_name="#undef IOCTL_BT848_H_NAME"
6626 fi 6626 fi
6627 echores "$_ioctl_bt848_h" 6627 echores "$_ioctl_bt848_h"
6628 6628
6629 echocheck "*BSD ioctl_meteor.h" 6629 echocheck "*BSD ioctl_meteor.h"
6630 _ioctl_meteor_h=no 6630 _ioctl_meteor_h=no
6631 for file in "machine/ioctl_meteor.h" \ 6631 for file in "machine/ioctl_meteor.h" \
6632 "dev/bktr/ioctl_meteor.h" \ 6632 "dev/bktr/ioctl_meteor.h" \
6633 "dev/video/bktr/ioctl_meteor.h" ; do 6633 "dev/video/bktr/ioctl_meteor.h" ; do
6634 cat > $TMPC <<EOF 6634 cat > $TMPC <<EOF
6635 #include <sys/types.h> 6635 #include <sys/types.h>
6636 #include <$file> 6636 #include <$file>
6642 if cc_check ; then 6642 if cc_check ; then
6643 _ioctl_meteor_h=yes 6643 _ioctl_meteor_h=yes
6644 _ioctl_meteor_h_name="$file" 6644 _ioctl_meteor_h_name="$file"
6645 break; 6645 break;
6646 fi 6646 fi
6647 done 6647 done
6648 if test "$_ioctl_meteor_h" = yes ; then 6648 if test "$_ioctl_meteor_h" = yes ; then
6649 _def_ioctl_meteor_h_name="#define IOCTL_METEOR_H_NAME <$_ioctl_meteor_h_name>" 6649 _def_ioctl_meteor_h_name="#define IOCTL_METEOR_H_NAME <$_ioctl_meteor_h_name>"
6650 _res_comment="using $_ioctl_meteor_h_name" 6650 _res_comment="using $_ioctl_meteor_h_name"
6651 else 6651 else
6652 _def_ioctl_meteor_h_name="#undef IOCTL_METEOR_H_NAME" 6652 _def_ioctl_meteor_h_name="#undef IOCTL_METEOR_H_NAME"
6653 fi 6653 fi
6654 echores "$_ioctl_meteor_h" 6654 echores "$_ioctl_meteor_h"
6655 6655
6656 echocheck "*BSD BrookTree 848 TV interface" 6656 echocheck "*BSD BrookTree 848 TV interface"
6657 if test "$_tv_bsdbt848" = auto ; then 6657 if test "$_tv_bsdbt848" = auto ; then
6658 _tv_bsdbt848=no 6658 _tv_bsdbt848=no
6659 if test "$_tv" = yes ; then 6659 if test "$_tv" = yes ; then
6660 cat > $TMPC <<EOF 6660 cat > $TMPC <<EOF
6661 #include <sys/types.h> 6661 #include <sys/types.h>
6662 $_def_ioctl_meteor_h_name 6662 $_def_ioctl_meteor_h_name
6663 $_def_ioctl_bt848_h_name 6663 $_def_ioctl_bt848_h_name
6664 #ifdef IOCTL_METEOR_H_NAME 6664 #ifdef IOCTL_METEOR_H_NAME
6665 #include IOCTL_METEOR_H_NAME 6665 #include IOCTL_METEOR_H_NAME
6671 ioctl(0, METEORSINPUT, 0); 6671 ioctl(0, METEORSINPUT, 0);
6672 ioctl(0, TVTUNER_GETFREQ, 0); 6672 ioctl(0, TVTUNER_GETFREQ, 0);
6673 return 0; 6673 return 0;
6674 } 6674 }
6675 EOF 6675 EOF
6676 cc_check && _tv_bsdbt848=yes 6676 cc_check && _tv_bsdbt848=yes
6677 fi 6677 fi
6678 fi 6678 fi
6679 if test "$_tv_bsdbt848" = yes ; then 6679 if test "$_tv_bsdbt848" = yes ; then
6680 _def_tv_bsdbt848='#define HAVE_TV_BSDBT848 1' 6680 _def_tv_bsdbt848='#define HAVE_TV_BSDBT848 1'
6681 _inputmodules="tv-bsdbt848 $_inputmodules" 6681 _inputmodules="tv-bsdbt848 $_inputmodules"
6682 else 6682 else
6683 _def_tv_bsdbt848='#undef HAVE_TV_BSDBT848' 6683 _def_tv_bsdbt848='#undef HAVE_TV_BSDBT848'
6684 _noinputmodules="tv-bsdbt848 $_noinputmodules" 6684 _noinputmodules="tv-bsdbt848 $_noinputmodules"
6685 fi 6685 fi
6686 echores "$_tv_bsdbt848" 6686 echores "$_tv_bsdbt848"
6687 fi #if bsd 6687 fi #if bsd
6688 6688
6689 6689
6690 echocheck "Video 4 Linux TV interface" 6690 echocheck "Video 4 Linux TV interface"
6691 if test "$_tv_v4l1" = auto ; then 6691 if test "$_tv_v4l1" = auto ; then
6692 _tv_v4l1=no 6692 _tv_v4l1=no
6693 if test "$_tv" = yes && linux ; then 6693 if test "$_tv" = yes && linux ; then
6694 cat > $TMPC <<EOF 6694 cat > $TMPC <<EOF
6695 #include <stdlib.h> 6695 #include <stdlib.h>
6696 #include <linux/videodev.h> 6696 #include <linux/videodev.h>
6697 int main(void) { return 0; } 6697 int main(void) { return 0; }
6698 EOF 6698 EOF
6699 cc_check && _tv_v4l1=yes 6699 cc_check && _tv_v4l1=yes
6700 fi 6700 fi
6701 fi 6701 fi
6702 if test "$_tv_v4l1" = yes ; then 6702 if test "$_tv_v4l1" = yes ; then
6703 _audio_input=yes 6703 _audio_input=yes
6704 _tv_v4l=yes 6704 _tv_v4l=yes
6705 _def_tv_v4l='#define HAVE_TV_V4L 1' 6705 _def_tv_v4l='#define HAVE_TV_V4L 1'
6712 echores "$_tv_v4l1" 6712 echores "$_tv_v4l1"
6713 6713
6714 6714
6715 echocheck "Video 4 Linux 2 TV interface" 6715 echocheck "Video 4 Linux 2 TV interface"
6716 if test "$_tv_v4l2" = auto ; then 6716 if test "$_tv_v4l2" = auto ; then
6717 _tv_v4l2=no 6717 _tv_v4l2=no
6718 if test "$_tv" = yes && linux ; then 6718 if test "$_tv" = yes && linux ; then
6719 cat > $TMPC <<EOF 6719 cat > $TMPC <<EOF
6720 #include <stdlib.h> 6720 #include <stdlib.h>
6721 #include <linux/types.h> 6721 #include <linux/types.h>
6722 #include <linux/videodev2.h> 6722 #include <linux/videodev2.h>
6723 int main(void) { return 0; } 6723 int main(void) { return 0; }
6724 EOF 6724 EOF
6725 cc_check && _tv_v4l2=yes 6725 cc_check && _tv_v4l2=yes
6726 fi 6726 fi
6727 fi 6727 fi
6728 if test "$_tv_v4l2" = yes ; then 6728 if test "$_tv_v4l2" = yes ; then
6729 _audio_input=yes 6729 _audio_input=yes
6730 _tv_v4l=yes 6730 _tv_v4l=yes
6731 _def_tv_v4l='#define HAVE_TV_V4L 1' 6731 _def_tv_v4l='#define HAVE_TV_V4L 1'