mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
configure: drop unused bare socket.h
detection
Added in37eba37019
(2009-06-17) to help detecting socket functions. But, this `socket.h` isn't used in the source code since90dd1fc664
#8288 (2022-01-16). Closes #15173
This commit is contained in:
parent
6cfb615e92
commit
86d5c2651d
@ -3889,7 +3889,6 @@ AC_CHECK_HEADERS(
|
||||
sys/utime.h \
|
||||
sys/poll.h \
|
||||
poll.h \
|
||||
socket.h \
|
||||
sys/resource.h \
|
||||
libgen.h \
|
||||
locale.h \
|
||||
|
@ -188,27 +188,6 @@ curl_includes_signal="\
|
||||
])
|
||||
|
||||
|
||||
dnl CURL_INCLUDES_SOCKET
|
||||
dnl -------------------------------------------------
|
||||
dnl Set up variable with list of headers that must be
|
||||
dnl included when socket.h is to be included.
|
||||
|
||||
AC_DEFUN([CURL_INCLUDES_SOCKET], [
|
||||
curl_includes_socket="\
|
||||
/* includes start */
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SOCKET_H
|
||||
# include <socket.h>
|
||||
#endif
|
||||
/* includes end */"
|
||||
AC_CHECK_HEADERS(
|
||||
sys/types.h socket.h,
|
||||
[], [], [$curl_includes_socket])
|
||||
])
|
||||
|
||||
|
||||
dnl CURL_INCLUDES_STDLIB
|
||||
dnl -------------------------------------------------
|
||||
dnl Set up variable with list of headers that must be
|
||||
@ -670,7 +649,6 @@ dnl HAVE_CLOSESOCKET will be defined.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_FUNC_CLOSESOCKET], [
|
||||
AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
|
||||
AC_REQUIRE([CURL_INCLUDES_SOCKET])dnl
|
||||
#
|
||||
tst_links_closesocket="unknown"
|
||||
tst_proto_closesocket="unknown"
|
||||
@ -681,7 +659,6 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOSESOCKET], [
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
$curl_includes_winsock2
|
||||
$curl_includes_socket
|
||||
]],[[
|
||||
if(0 != closesocket(0))
|
||||
return 1;
|
||||
@ -698,7 +675,6 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOSESOCKET], [
|
||||
AC_MSG_CHECKING([if closesocket is prototyped])
|
||||
AC_EGREP_CPP([closesocket],[
|
||||
$curl_includes_winsock2
|
||||
$curl_includes_socket
|
||||
],[
|
||||
AC_MSG_RESULT([yes])
|
||||
tst_proto_closesocket="yes"
|
||||
@ -713,7 +689,6 @@ AC_DEFUN([CURL_CHECK_FUNC_CLOSESOCKET], [
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
$curl_includes_winsock2
|
||||
$curl_includes_socket
|
||||
]],[[
|
||||
if(0 != closesocket(0))
|
||||
return 1;
|
||||
@ -3649,7 +3624,6 @@ dnl HAVE_SOCKET will be defined.
|
||||
AC_DEFUN([CURL_CHECK_FUNC_SOCKET], [
|
||||
AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
|
||||
AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
|
||||
AC_REQUIRE([CURL_INCLUDES_SOCKET])dnl
|
||||
#
|
||||
tst_links_socket="unknown"
|
||||
tst_proto_socket="unknown"
|
||||
@ -3662,7 +3636,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SOCKET], [
|
||||
$curl_includes_winsock2
|
||||
$curl_includes_bsdsocket
|
||||
$curl_includes_sys_socket
|
||||
$curl_includes_socket
|
||||
]],[[
|
||||
if(0 != socket(0, 0, 0))
|
||||
return 1;
|
||||
@ -3681,7 +3654,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SOCKET], [
|
||||
$curl_includes_winsock2
|
||||
$curl_includes_bsdsocket
|
||||
$curl_includes_sys_socket
|
||||
$curl_includes_socket
|
||||
],[
|
||||
AC_MSG_RESULT([yes])
|
||||
tst_proto_socket="yes"
|
||||
@ -3698,7 +3670,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SOCKET], [
|
||||
$curl_includes_winsock2
|
||||
$curl_includes_bsdsocket
|
||||
$curl_includes_sys_socket
|
||||
$curl_includes_socket
|
||||
]],[[
|
||||
if(0 != socket(0, 0, 0))
|
||||
return 1;
|
||||
@ -3749,7 +3720,6 @@ dnl HAVE_SOCKETPAIR will be defined.
|
||||
|
||||
AC_DEFUN([CURL_CHECK_FUNC_SOCKETPAIR], [
|
||||
AC_REQUIRE([CURL_INCLUDES_SYS_SOCKET])dnl
|
||||
AC_REQUIRE([CURL_INCLUDES_SOCKET])dnl
|
||||
#
|
||||
tst_links_socketpair="unknown"
|
||||
tst_proto_socketpair="unknown"
|
||||
@ -3771,7 +3741,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SOCKETPAIR], [
|
||||
AC_MSG_CHECKING([if socketpair is prototyped])
|
||||
AC_EGREP_CPP([socketpair],[
|
||||
$curl_includes_sys_socket
|
||||
$curl_includes_socket
|
||||
],[
|
||||
AC_MSG_RESULT([yes])
|
||||
tst_proto_socketpair="yes"
|
||||
@ -3786,7 +3755,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SOCKETPAIR], [
|
||||
AC_COMPILE_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
$curl_includes_sys_socket
|
||||
$curl_includes_socket
|
||||
]],[[
|
||||
int sv[2];
|
||||
if(0 != socketpair(0, 0, 0, sv))
|
||||
|
Loading…
Reference in New Issue
Block a user