Skip to content

Commit 6bf14a7

Browse files
nggbagder
authored andcommitted
configure: remove unused check for gai_strerror
Closes curl#7276
1 parent 343e6be commit 6bf14a7

File tree

2 files changed

+0
-97
lines changed

2 files changed

+0
-97
lines changed

configure.ac

-1
Original file line numberDiff line numberDiff line change
@@ -3222,7 +3222,6 @@ CURL_CHECK_FUNC_FREEADDRINFO
32223222
CURL_CHECK_FUNC_FSETXATTR
32233223
CURL_CHECK_FUNC_FTRUNCATE
32243224
CURL_CHECK_FUNC_GETADDRINFO
3225-
CURL_CHECK_FUNC_GAI_STRERROR
32263225
CURL_CHECK_FUNC_GETHOSTBYADDR
32273226
CURL_CHECK_FUNC_GETHOSTBYADDR_R
32283227
CURL_CHECK_FUNC_GETHOSTBYNAME

m4/curl-functions.m4

-96
Original file line numberDiff line numberDiff line change
@@ -2232,102 +2232,6 @@ AC_DEFUN([CURL_CHECK_FUNC_GETHOSTBYADDR], [
22322232
fi
22332233
])
22342234
2235-
dnl CURL_CHECK_FUNC_GAI_STRERROR
2236-
dnl -------------------------------------------------
2237-
dnl Verify if gai_strerror is available, prototyped,
2238-
dnl and can be compiled. If all of these are true,
2239-
dnl and usage has not been previously disallowed with
2240-
dnl shell variable curl_disallow_gai_strerror, then
2241-
dnl HAVE_GAI_STRERROR will be defined.
2242-
2243-
AC_DEFUN([CURL_CHECK_FUNC_GAI_STRERROR], [
2244-
AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
2245-
AC_REQUIRE([CURL_INCLUDES_NETDB])dnl
2246-
#
2247-
tst_links_gai_strerror="unknown"
2248-
tst_proto_gai_strerror="unknown"
2249-
tst_compi_gai_strerror="unknown"
2250-
tst_allow_gai_strerror="unknown"
2251-
#
2252-
AC_MSG_CHECKING([if gai_strerror can be linked])
2253-
AC_LINK_IFELSE([
2254-
AC_LANG_PROGRAM([[
2255-
$curl_includes_winsock2
2256-
$curl_includes_bsdsocket
2257-
$curl_includes_netdb
2258-
]],[[
2259-
if(0 != gai_strerror(0))
2260-
return 1;
2261-
]])
2262-
],[
2263-
AC_MSG_RESULT([yes])
2264-
tst_links_gai_strerror="yes"
2265-
],[
2266-
AC_MSG_RESULT([no])
2267-
tst_links_gai_strerror="no"
2268-
])
2269-
#
2270-
if test "$tst_links_gai_strerror" = "yes"; then
2271-
AC_MSG_CHECKING([if gai_strerror is prototyped])
2272-
AC_EGREP_CPP([gai_strerror],[
2273-
$curl_includes_winsock2
2274-
$curl_includes_bsdsocket
2275-
$curl_includes_netdb
2276-
],[
2277-
AC_MSG_RESULT([yes])
2278-
tst_proto_gai_strerror="yes"
2279-
],[
2280-
AC_MSG_RESULT([no])
2281-
tst_proto_gai_strerror="no"
2282-
])
2283-
fi
2284-
#
2285-
if test "$tst_proto_gai_strerror" = "yes"; then
2286-
AC_MSG_CHECKING([if gai_strerror is compilable])
2287-
AC_COMPILE_IFELSE([
2288-
AC_LANG_PROGRAM([[
2289-
$curl_includes_winsock2
2290-
$curl_includes_bsdsocket
2291-
$curl_includes_netdb
2292-
]],[[
2293-
if(0 != gai_strerror(0))
2294-
return 1;
2295-
]])
2296-
],[
2297-
AC_MSG_RESULT([yes])
2298-
tst_compi_gai_strerror="yes"
2299-
],[
2300-
AC_MSG_RESULT([no])
2301-
tst_compi_gai_strerror="no"
2302-
])
2303-
fi
2304-
#
2305-
if test "$tst_compi_gai_strerror" = "yes"; then
2306-
AC_MSG_CHECKING([if gai_strerror usage allowed])
2307-
if test "x$curl_disallow_gai_strerror" != "xyes"; then
2308-
AC_MSG_RESULT([yes])
2309-
tst_allow_gai_strerror="yes"
2310-
else
2311-
AC_MSG_RESULT([no])
2312-
tst_allow_gai_strerror="no"
2313-
fi
2314-
fi
2315-
#
2316-
AC_MSG_CHECKING([if gai_strerror might be used])
2317-
if test "$tst_links_gai_strerror" = "yes" &&
2318-
test "$tst_proto_gai_strerror" = "yes" &&
2319-
test "$tst_compi_gai_strerror" = "yes" &&
2320-
test "$tst_allow_gai_strerror" = "yes"; then
2321-
AC_MSG_RESULT([yes])
2322-
AC_DEFINE_UNQUOTED(HAVE_GAI_STRERROR, 1,
2323-
[Define to 1 if you have the gai_strerror function.])
2324-
curl_cv_func_gai_strerror="yes"
2325-
else
2326-
AC_MSG_RESULT([no])
2327-
curl_cv_func_gai_strerror="no"
2328-
fi
2329-
])
2330-
23312235
23322236
dnl CURL_CHECK_FUNC_GETHOSTBYADDR_R
23332237
dnl -------------------------------------------------

0 commit comments

Comments
 (0)