]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: remove unused check for gai_strerror
authorGergely Nagy <ngg@tresorit.com>
Fri, 18 Jun 2021 08:05:43 +0000 (10:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Jun 2021 11:52:13 +0000 (13:52 +0200)
Closes #7276

configure.ac
m4/curl-functions.m4

index f82c0b2b0bc970b763984b794590d06eeae7a23d..b13d83d08ebca3156fda46204141fc3e9850c0e1 100644 (file)
@@ -3222,7 +3222,6 @@ CURL_CHECK_FUNC_FREEADDRINFO
 CURL_CHECK_FUNC_FSETXATTR
 CURL_CHECK_FUNC_FTRUNCATE
 CURL_CHECK_FUNC_GETADDRINFO
-CURL_CHECK_FUNC_GAI_STRERROR
 CURL_CHECK_FUNC_GETHOSTBYADDR
 CURL_CHECK_FUNC_GETHOSTBYADDR_R
 CURL_CHECK_FUNC_GETHOSTBYNAME
index fce5724cbfc62e08c90d3ae92d3f2042b44b476f..1a21ca0be4740f973439731c96b1fe1dd352fa49 100644 (file)
@@ -2232,102 +2232,6 @@ AC_DEFUN([CURL_CHECK_FUNC_GETHOSTBYADDR], [
   fi
 ])
 
-dnl CURL_CHECK_FUNC_GAI_STRERROR
-dnl -------------------------------------------------
-dnl Verify if gai_strerror is available, prototyped,
-dnl and can be compiled. If all of these are true,
-dnl and usage has not been previously disallowed with
-dnl shell variable curl_disallow_gai_strerror, then
-dnl HAVE_GAI_STRERROR will be defined.
-
-AC_DEFUN([CURL_CHECK_FUNC_GAI_STRERROR], [
-  AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
-  AC_REQUIRE([CURL_INCLUDES_NETDB])dnl
-  #
-  tst_links_gai_strerror="unknown"
-  tst_proto_gai_strerror="unknown"
-  tst_compi_gai_strerror="unknown"
-  tst_allow_gai_strerror="unknown"
-  #
-  AC_MSG_CHECKING([if gai_strerror can be linked])
-  AC_LINK_IFELSE([
-    AC_LANG_PROGRAM([[
-      $curl_includes_winsock2
-      $curl_includes_bsdsocket
-      $curl_includes_netdb
-    ]],[[
-      if(0 != gai_strerror(0))
-        return 1;
-    ]])
-  ],[
-    AC_MSG_RESULT([yes])
-    tst_links_gai_strerror="yes"
-  ],[
-    AC_MSG_RESULT([no])
-    tst_links_gai_strerror="no"
-  ])
-  #
-  if test "$tst_links_gai_strerror" = "yes"; then
-    AC_MSG_CHECKING([if gai_strerror is prototyped])
-    AC_EGREP_CPP([gai_strerror],[
-      $curl_includes_winsock2
-      $curl_includes_bsdsocket
-      $curl_includes_netdb
-    ],[
-      AC_MSG_RESULT([yes])
-      tst_proto_gai_strerror="yes"
-    ],[
-      AC_MSG_RESULT([no])
-      tst_proto_gai_strerror="no"
-    ])
-  fi
-  #
-  if test "$tst_proto_gai_strerror" = "yes"; then
-    AC_MSG_CHECKING([if gai_strerror is compilable])
-    AC_COMPILE_IFELSE([
-      AC_LANG_PROGRAM([[
-        $curl_includes_winsock2
-      $curl_includes_bsdsocket
-        $curl_includes_netdb
-      ]],[[
-        if(0 != gai_strerror(0))
-          return 1;
-      ]])
-    ],[
-      AC_MSG_RESULT([yes])
-      tst_compi_gai_strerror="yes"
-    ],[
-      AC_MSG_RESULT([no])
-      tst_compi_gai_strerror="no"
-    ])
-  fi
-  #
-  if test "$tst_compi_gai_strerror" = "yes"; then
-    AC_MSG_CHECKING([if gai_strerror usage allowed])
-    if test "x$curl_disallow_gai_strerror" != "xyes"; then
-      AC_MSG_RESULT([yes])
-      tst_allow_gai_strerror="yes"
-    else
-      AC_MSG_RESULT([no])
-      tst_allow_gai_strerror="no"
-    fi
-  fi
-  #
-  AC_MSG_CHECKING([if gai_strerror might be used])
-  if test "$tst_links_gai_strerror" = "yes" &&
-     test "$tst_proto_gai_strerror" = "yes" &&
-     test "$tst_compi_gai_strerror" = "yes" &&
-     test "$tst_allow_gai_strerror" = "yes"; then
-    AC_MSG_RESULT([yes])
-    AC_DEFINE_UNQUOTED(HAVE_GAI_STRERROR, 1,
-      [Define to 1 if you have the gai_strerror function.])
-    curl_cv_func_gai_strerror="yes"
-  else
-    AC_MSG_RESULT([no])
-    curl_cv_func_gai_strerror="no"
-  fi
-])
-
 
 dnl CURL_CHECK_FUNC_GETHOSTBYADDR_R
 dnl -------------------------------------------------