Mercurial > mplayer.hg
comparison configure @ 10281:54bcbf28698a
Networking support under MinGW.
Patch by flo/yepyep <flodt8@yahoo.de>.
author | diego |
---|---|
date | Wed, 11 Jun 2003 16:48:09 +0000 |
parents | 167b0125eec6 |
children | e89a7e9410b4 |
comparison
equal
deleted
inserted
replaced
10280:24145d6b5883 | 10281:54bcbf28698a |
---|---|
153 --disable-tv-v4l disable Video4Linux TV Interface support [autodetect] | 153 --disable-tv-v4l disable Video4Linux TV Interface support [autodetect] |
154 --disable-tv-bsdbt848 disable BSD BT848 Interface support [autodetect] | 154 --disable-tv-bsdbt848 disable BSD BT848 Interface support [autodetect] |
155 --disable-edl disable EDL (edit decision list) support [enable] | 155 --disable-edl disable EDL (edit decision list) support [enable] |
156 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] | 156 --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] |
157 --disable-network disable network support (for: http/mms/rtp) [enable] | 157 --disable-network disable network support (for: http/mms/rtp) [enable] |
158 --enable-winsock2 enable winsock2 usage [autodetect] | |
158 --enable-smb enable Samba (SMB) input support [autodetect] | 159 --enable-smb enable Samba (SMB) input support [autodetect] |
159 --enable-live enable LIVE.COM Streaming Media support [disable] | 160 --enable-live enable LIVE.COM Streaming Media support [disable] |
160 --enable-dvdnav enable dvdnav support [disable] | 161 --enable-dvdnav enable dvdnav support [disable] |
161 --disable-dvdread Disable libdvdread support [autodetect] | 162 --disable-dvdread Disable libdvdread support [autodetect] |
162 --disable-mpdvdkit Disable mpdvdkit/mpdvdkit2 support [autodetect] | 163 --disable-mpdvdkit Disable mpdvdkit/mpdvdkit2 support [autodetect] |
1056 _tv=yes | 1057 _tv=yes |
1057 _tv_v4l=auto | 1058 _tv_v4l=auto |
1058 _tv_bsdbt848=auto | 1059 _tv_bsdbt848=auto |
1059 _edl=yes | 1060 _edl=yes |
1060 _network=yes | 1061 _network=yes |
1062 _winsock2=auto | |
1061 _smbsupport=auto | 1063 _smbsupport=auto |
1062 _vidix=auto | 1064 _vidix=auto |
1063 _joystick=no | 1065 _joystick=no |
1064 _xvid=auto | 1066 _xvid=auto |
1065 _divx4linux=auto | 1067 _divx4linux=auto |
1231 --disable-tv-v4l) _tv_v4l=no ;; | 1233 --disable-tv-v4l) _tv_v4l=no ;; |
1232 --enable-fastmemcpy) _fastmemcpy=yes ;; | 1234 --enable-fastmemcpy) _fastmemcpy=yes ;; |
1233 --disable-fastmemcpy) _fastmemcpy=no ;; | 1235 --disable-fastmemcpy) _fastmemcpy=no ;; |
1234 --enable-network) _network=yes ;; | 1236 --enable-network) _network=yes ;; |
1235 --disable-network) _network=no ;; | 1237 --disable-network) _network=no ;; |
1238 --enable-winsock2) _winsock2=yes ;; | |
1239 --disable-winsock2) _winsock2=no ;; | |
1236 --enable-smb) _smbsupport=yes ;; | 1240 --enable-smb) _smbsupport=yes ;; |
1237 --disable-smb) _smbsupport=no ;; | 1241 --disable-smb) _smbsupport=no ;; |
1238 --enable-vidix) _vidix=yes ;; | 1242 --enable-vidix) _vidix=yes ;; |
1239 --disable-vidix) _vidix=no ;; | 1243 --disable-vidix) _vidix=no ;; |
1240 --enable-joystick) _joystick=yes ;; | 1244 --enable-joystick) _joystick=yes ;; |
1805 int main(void) { (void) gethostbyname(0); return 0; } | 1809 int main(void) { (void) gethostbyname(0); return 0; } |
1806 EOF | 1810 EOF |
1807 cc_check -lsocket && _ld_sock="-lsocket" | 1811 cc_check -lsocket && _ld_sock="-lsocket" |
1808 cc_check -lnsl && _ld_sock="-lnsl" | 1812 cc_check -lnsl && _ld_sock="-lnsl" |
1809 cc_check -lsocket -lnsl && _ld_sock="-lsocket -lnsl" | 1813 cc_check -lsocket -lnsl && _ld_sock="-lsocket -lnsl" |
1814 if test $_winsock2 = auto && not cygwin ; then | |
1815 _winsock2=no | |
1816 cat > $TMPC << EOF | |
1817 #include <winsock2.h> | |
1818 int main(void) { (void) gethostbyname(0); return 0; } | |
1819 EOF | |
1820 cc_check -lws2_32 && _ld_sock="-lws2_32" && _winsock2=yes | |
1821 fi | |
1810 if test "$_ld_sock" ; then | 1822 if test "$_ld_sock" ; then |
1811 echores "yes (using $_ld_sock)" | 1823 echores "yes (using $_ld_sock)" |
1812 else | 1824 else |
1813 echores "no" | 1825 echores "no" |
1826 fi | |
1827 | |
1828 | |
1829 if test $_winsock2 = yes ; then | |
1830 _ld_sock="-lws2_32" | |
1831 _def_winsock2='#define HAVE_WINSOCK2 1' | |
1832 else | |
1833 _def_winsock2='#undef HAVE_WINSOCK2' | |
1814 fi | 1834 fi |
1815 | 1835 |
1816 | 1836 |
1817 _use_aton=no | 1837 _use_aton=no |
1818 echocheck "inet_pton()" | 1838 echocheck "inet_pton()" |
1820 #include <sys/types.h> | 1840 #include <sys/types.h> |
1821 #include <sys/socket.h> | 1841 #include <sys/socket.h> |
1822 #include <arpa/inet.h> | 1842 #include <arpa/inet.h> |
1823 int main(void) { (void) inet_pton(0, 0, 0); return 0; } | 1843 int main(void) { (void) inet_pton(0, 0, 0); return 0; } |
1824 EOF | 1844 EOF |
1825 if cc_check $_ld_sock ; then | 1845 if test "$_winsock2" = yes ; then |
1846 echores "not needed (using winsock2 functions)" | |
1847 elif cc_check $_ld_sock ; then | |
1826 # NOTE: Linux has libresolv but does not need it | 1848 # NOTE: Linux has libresolv but does not need it |
1827 : | 1849 : |
1828 echores "yes (using $_ld_sock)" | 1850 echores "yes (using $_ld_sock)" |
1829 elif cc_check $_ld_sock -lresolv ; then | 1851 elif cc_check $_ld_sock -lresolv ; then |
1830 # NOTE: needed for SunOS at least | 1852 # NOTE: needed for SunOS at least |
5789 $_def_faad_version | 5811 $_def_faad_version |
5790 | 5812 |
5791 /* enable network */ | 5813 /* enable network */ |
5792 $_def_network | 5814 $_def_network |
5793 | 5815 |
5816 /* enable winsock2 instead of Unix functions*/ | |
5817 $_def_winsock2 | |
5818 | |
5794 /* define this to use inet_aton() instead of inet_pton() */ | 5819 /* define this to use inet_aton() instead of inet_pton() */ |
5795 $_def_use_aton | 5820 $_def_use_aton |
5796 | 5821 |
5797 /* enables / disables cdparanoia support */ | 5822 /* enables / disables cdparanoia support */ |
5798 $_def_cdparanoia | 5823 $_def_cdparanoia |