comparison configure @ 31460:537a064968b9

Remove some unnecessary #includes from configure tests.
author diego
date Tue, 22 Jun 2010 07:02:18 +0000
parents 6e2c9a628fba
children f6381d990cf3
comparison
equal deleted inserted replaced
31459:1cf0f471ceee 31460:537a064968b9
3729 echores "$_soundcard_h" 3729 echores "$_soundcard_h"
3730 3730
3731 3731
3732 echocheck "sys/dvdio.h" 3732 echocheck "sys/dvdio.h"
3733 cat > $TMPC << EOF 3733 cat > $TMPC << EOF
3734 #include <unistd.h>
3735 #include <sys/dvdio.h> 3734 #include <sys/dvdio.h>
3736 int main(void) { return 0; } 3735 int main(void) { return 0; }
3737 EOF 3736 EOF
3738 _dvdio=no 3737 _dvdio=no
3739 cc_check && _dvdio=yes 3738 cc_check && _dvdio=yes
3745 echores "$_dvdio" 3744 echores "$_dvdio"
3746 3745
3747 3746
3748 echocheck "sys/cdio.h" 3747 echocheck "sys/cdio.h"
3749 cat > $TMPC << EOF 3748 cat > $TMPC << EOF
3750 #include <unistd.h>
3751 #include <sys/cdio.h> 3749 #include <sys/cdio.h>
3752 int main(void) { return 0; } 3750 int main(void) { return 0; }
3753 EOF 3751 EOF
3754 _cdio=no 3752 _cdio=no
3755 cc_check && _cdio=yes 3753 cc_check && _cdio=yes
3761 echores "$_cdio" 3759 echores "$_cdio"
3762 3760
3763 3761
3764 echocheck "linux/cdrom.h" 3762 echocheck "linux/cdrom.h"
3765 cat > $TMPC << EOF 3763 cat > $TMPC << EOF
3766 #include <sys/types.h>
3767 #include <linux/cdrom.h> 3764 #include <linux/cdrom.h>
3768 int main(void) { return 0; } 3765 int main(void) { return 0; }
3769 EOF 3766 EOF
3770 _cdrom=no 3767 _cdrom=no
3771 cc_check && _cdrom=yes 3768 cc_check && _cdrom=yes
3828 3825
3829 3826
3830 if sunos; then 3827 if sunos; then
3831 echocheck "userspace SCSI headers (Solaris)" 3828 echocheck "userspace SCSI headers (Solaris)"
3832 cat > $TMPC << EOF 3829 cat > $TMPC << EOF
3833 #include <unistd.h>
3834 #include <stropts.h>
3835 #include <sys/scsi/scsi_types.h> 3830 #include <sys/scsi/scsi_types.h>
3836 #include <sys/scsi/impl/uscsi.h> 3831 #include <sys/scsi/impl/uscsi.h>
3837 int main(void) { return 0; } 3832 int main(void) { return 0; }
3838 EOF 3833 EOF
3839 _sol_scsi_h=no 3834 _sol_scsi_h=no
5848 res_comment="alloca missing" 5843 res_comment="alloca missing"
5849 fi 5844 fi
5850 if test "$_alsa" != no ; then 5845 if test "$_alsa" != no ; then
5851 _alsa=no 5846 _alsa=no
5852 cat > $TMPC << EOF 5847 cat > $TMPC << EOF
5853 #include <sys/time.h>
5854 #include <sys/asoundlib.h> 5848 #include <sys/asoundlib.h>
5855 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5)) 5849 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 5))
5856 #error "alsa version != 0.5.x" 5850 #error "alsa version != 0.5.x"
5857 #endif 5851 #endif
5858 int main(void) { return 0; } 5852 int main(void) { return 0; }
5859 EOF 5853 EOF
5860 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.5.x' 5854 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.5.x'
5861 5855
5862 cat > $TMPC << EOF 5856 cat > $TMPC << EOF
5863 #include <sys/time.h>
5864 #include <sys/asoundlib.h> 5857 #include <sys/asoundlib.h>
5865 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) 5858 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9))
5866 #error "alsa version != 0.9.x" 5859 #error "alsa version != 0.9.x"
5867 #endif 5860 #endif
5868 int main(void) { return 0; } 5861 int main(void) { return 0; }
5869 EOF 5862 EOF
5870 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-sys' 5863 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-sys'
5871 cat > $TMPC << EOF 5864 cat > $TMPC << EOF
5872 #include <sys/time.h>
5873 #include <alsa/asoundlib.h> 5865 #include <alsa/asoundlib.h>
5874 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9)) 5866 #if !((SND_LIB_MAJOR == 0) && (SND_LIB_MINOR == 9))
5875 #error "alsa version != 0.9.x" 5867 #error "alsa version != 0.9.x"
5876 #endif 5868 #endif
5877 int main(void) { return 0; } 5869 int main(void) { return 0; }
5878 EOF 5870 EOF
5879 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-alsa' 5871 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='0.9.x-alsa'
5880 5872
5881 cat > $TMPC << EOF 5873 cat > $TMPC << EOF
5882 #include <sys/time.h>
5883 #include <sys/asoundlib.h> 5874 #include <sys/asoundlib.h>
5884 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) 5875 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0))
5885 #error "alsa version != 1.0.x" 5876 #error "alsa version != 1.0.x"
5886 #endif 5877 #endif
5887 int main(void) { return 0; } 5878 int main(void) { return 0; }
5888 EOF 5879 EOF
5889 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-sys' 5880 cc_check -lasound $_ld_dl $_ld_pthread && _alsaver='1.0.x-sys'
5890 cat > $TMPC << EOF 5881 cat > $TMPC << EOF
5891 #include <sys/time.h>
5892 #include <alsa/asoundlib.h> 5882 #include <alsa/asoundlib.h>
5893 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0)) 5883 #if !((SND_LIB_MAJOR == 1) && (SND_LIB_MINOR == 0))
5894 #error "alsa version != 1.0.x" 5884 #error "alsa version != 1.0.x"
5895 #endif 5885 #endif
5896 int main(void) { return 0; } 5886 int main(void) { return 0; }
6989 6979
6990 6980
6991 echocheck "LADSPA plugin support" 6981 echocheck "LADSPA plugin support"
6992 if test "$_ladspa" = auto ; then 6982 if test "$_ladspa" = auto ; then
6993 cat > $TMPC <<EOF 6983 cat > $TMPC <<EOF
6994 #include <stdio.h>
6995 #include <ladspa.h> 6984 #include <ladspa.h>
6996 int main(void) { 6985 int main(void) {
6997 const LADSPA_Descriptor *ld = NULL; 6986 const LADSPA_Descriptor *ld = NULL;
6998 return 0; 6987 return 0;
6999 } 6988 }
7942 echocheck "Video 4 Linux TV interface" 7931 echocheck "Video 4 Linux TV interface"
7943 if test "$_tv_v4l1" = auto ; then 7932 if test "$_tv_v4l1" = auto ; then
7944 _tv_v4l1=no 7933 _tv_v4l1=no
7945 if test "$_tv" = yes && linux ; then 7934 if test "$_tv" = yes && linux ; then
7946 cat > $TMPC <<EOF 7935 cat > $TMPC <<EOF
7947 #include <stdlib.h>
7948 #include <linux/videodev.h> 7936 #include <linux/videodev.h>
7949 int main(void) { return 0; } 7937 int main(void) { return 0; }
7950 EOF 7938 EOF
7951 cc_check && _tv_v4l1=yes 7939 cc_check && _tv_v4l1=yes
7952 fi 7940 fi
7967 echocheck "Video 4 Linux 2 TV interface" 7955 echocheck "Video 4 Linux 2 TV interface"
7968 if test "$_tv_v4l2" = auto ; then 7956 if test "$_tv_v4l2" = auto ; then
7969 _tv_v4l2=no 7957 _tv_v4l2=no
7970 if test "$_tv" = yes && linux ; then 7958 if test "$_tv" = yes && linux ; then
7971 cat > $TMPC <<EOF 7959 cat > $TMPC <<EOF
7972 #include <stdlib.h>
7973 #include <linux/types.h>
7974 #include <linux/videodev2.h> 7960 #include <linux/videodev2.h>
7975 int main(void) { return 0; } 7961 int main(void) { return 0; }
7976 EOF 7962 EOF
7977 cc_check && _tv_v4l2=yes 7963 cc_check && _tv_v4l2=yes
7978 fi 7964 fi
8016 echocheck "Video 4 Linux 2 Radio interface" 8002 echocheck "Video 4 Linux 2 Radio interface"
8017 if test "$_radio_v4l2" = auto ; then 8003 if test "$_radio_v4l2" = auto ; then
8018 _radio_v4l2=no 8004 _radio_v4l2=no
8019 if test "$_radio" = yes && linux ; then 8005 if test "$_radio" = yes && linux ; then
8020 cat > $TMPC <<EOF 8006 cat > $TMPC <<EOF
8021 #include <stdlib.h>
8022 #include <linux/types.h>
8023 #include <linux/videodev2.h> 8007 #include <linux/videodev2.h>
8024 int main(void) { return 0; } 8008 int main(void) { return 0; }
8025 EOF 8009 EOF
8026 cc_check && _radio_v4l2=yes 8010 cc_check && _radio_v4l2=yes
8027 fi 8011 fi
8036 echocheck "Video 4 Linux Radio interface" 8020 echocheck "Video 4 Linux Radio interface"
8037 if test "$_radio_v4l" = auto ; then 8021 if test "$_radio_v4l" = auto ; then
8038 _radio_v4l=no 8022 _radio_v4l=no
8039 if test "$_radio" = yes && linux ; then 8023 if test "$_radio" = yes && linux ; then
8040 cat > $TMPC <<EOF 8024 cat > $TMPC <<EOF
8041 #include <stdlib.h>
8042 #include <linux/videodev.h> 8025 #include <linux/videodev.h>
8043 int main(void) { return 0; } 8026 int main(void) { return 0; }
8044 EOF 8027 EOF
8045 cc_check && _radio_v4l=yes 8028 cc_check && _radio_v4l=yes
8046 fi 8029 fi
8082 echocheck "Video 4 Linux 2 MPEG PVR interface" 8065 echocheck "Video 4 Linux 2 MPEG PVR interface"
8083 if test "$_pvr" = auto ; then 8066 if test "$_pvr" = auto ; then
8084 _pvr=no 8067 _pvr=no
8085 if test "$_tv_v4l2" = yes && linux ; then 8068 if test "$_tv_v4l2" = yes && linux ; then
8086 cat > $TMPC <<EOF 8069 cat > $TMPC <<EOF
8087 #include <stdlib.h>
8088 #include <inttypes.h>
8089 #include <linux/types.h>
8090 #include <linux/videodev2.h> 8070 #include <linux/videodev2.h>
8091 int main(void) { struct v4l2_ext_controls ext; return ext.controls->value; } 8071 int main(void) { struct v4l2_ext_controls ext; return ext.controls->value; }
8092 EOF 8072 EOF
8093 cc_check && _pvr=yes 8073 cc_check && _pvr=yes
8094 fi 8074 fi