configure: drop unused bare socket.h detection

Added in 37eba37019 (2009-06-17) to help
detecting socket functions.

But, this `socket.h` isn't used in the source code since
90dd1fc664 #8288 (2022-01-16).

Closes #15173
This commit is contained in:
Viktor Szakats 2024-10-07 04:07:30 +02:00
parent 6cfb615e92
commit 86d5c2651d
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
2 changed files with 0 additions and 33 deletions

View File

@ -3889,7 +3889,6 @@ AC_CHECK_HEADERS(
sys/utime.h \
sys/poll.h \
poll.h \
socket.h \
sys/resource.h \
libgen.h \
locale.h \

View File

@ -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))