summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-functions.m484
1 files changed, 0 insertions, 84 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4
index a5266ce9b..fce5724cb 100644
--- a/m4/curl-functions.m4
+++ b/m4/curl-functions.m4
@@ -1543,90 +1543,6 @@ AC_DEFUN([CURL_CHECK_FUNC_FREEADDRINFO], [
])
-dnl CURL_CHECK_FUNC_FREEIFADDRS
-dnl -------------------------------------------------
-dnl Verify if freeifaddrs is available, prototyped, and
-dnl can be compiled. If all of these are true, and
-dnl usage has not been previously disallowed with
-dnl shell variable curl_disallow_freeifaddrs, then
-dnl HAVE_FREEIFADDRS will be defined.
-
-AC_DEFUN([CURL_CHECK_FUNC_FREEIFADDRS], [
- AC_REQUIRE([CURL_INCLUDES_IFADDRS])dnl
- #
- tst_links_freeifaddrs="unknown"
- tst_proto_freeifaddrs="unknown"
- tst_compi_freeifaddrs="unknown"
- tst_allow_freeifaddrs="unknown"
- #
- AC_MSG_CHECKING([if freeifaddrs can be linked])
- AC_LINK_IFELSE([
- AC_LANG_FUNC_LINK_TRY([freeifaddrs])
- ],[
- AC_MSG_RESULT([yes])
- tst_links_freeifaddrs="yes"
- ],[
- AC_MSG_RESULT([no])
- tst_links_freeifaddrs="no"
- ])
- #
- if test "$tst_links_freeifaddrs" = "yes"; then
- AC_MSG_CHECKING([if freeifaddrs is prototyped])
- AC_EGREP_CPP([freeifaddrs],[
- $curl_includes_ifaddrs
- ],[
- AC_MSG_RESULT([yes])
- tst_proto_freeifaddrs="yes"
- ],[
- AC_MSG_RESULT([no])
- tst_proto_freeifaddrs="no"
- ])
- fi
- #
- if test "$tst_proto_freeifaddrs" = "yes"; then
- AC_MSG_CHECKING([if freeifaddrs is compilable])
- AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[
- $curl_includes_ifaddrs
- ]],[[
- freeifaddrs(0);
- ]])
- ],[
- AC_MSG_RESULT([yes])
- tst_compi_freeifaddrs="yes"
- ],[
- AC_MSG_RESULT([no])
- tst_compi_freeifaddrs="no"
- ])
- fi
- #
- if test "$tst_compi_freeifaddrs" = "yes"; then
- AC_MSG_CHECKING([if freeifaddrs usage allowed])
- if test "x$curl_disallow_freeifaddrs" != "xyes"; then
- AC_MSG_RESULT([yes])
- tst_allow_freeifaddrs="yes"
- else
- AC_MSG_RESULT([no])
- tst_allow_freeifaddrs="no"
- fi
- fi
- #
- AC_MSG_CHECKING([if freeifaddrs might be used])
- if test "$tst_links_freeifaddrs" = "yes" &&
- test "$tst_proto_freeifaddrs" = "yes" &&
- test "$tst_compi_freeifaddrs" = "yes" &&
- test "$tst_allow_freeifaddrs" = "yes"; then
- AC_MSG_RESULT([yes])
- AC_DEFINE_UNQUOTED(HAVE_FREEIFADDRS, 1,
- [Define to 1 if you have the freeifaddrs function.])
- curl_cv_func_freeifaddrs="yes"
- else
- AC_MSG_RESULT([no])
- curl_cv_func_freeifaddrs="no"
- fi
-])
-
-
dnl CURL_CHECK_FUNC_FREMOVEXATTR
dnl -------------------------------------------------
dnl Verify if fremovexattr is available, prototyped, and