summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-22 12:56:15 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-22 22:38:33 +0100
commit11974ac859c5d82def59e837e0db56fef7f6794e (patch)
tree3187f51fd3d6a9ebcf42e77f4255a0b9dea048bf /m4
parent7466d1a3083150da636251b156efbd520b01f1af (diff)
downloadcurl-11974ac859c5d82def59e837e0db56fef7f6794e.tar.gz
configure: remove the unused fdopen macro
and the two remaining #ifdefs for it Closes #3600
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-functions.m486
1 files changed, 0 insertions, 86 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4
index 9f230b3f8..92a017b62 100644
--- a/m4/curl-functions.m4
+++ b/m4/curl-functions.m4
@@ -1168,92 +1168,6 @@ AC_DEFUN([CURL_CHECK_FUNC_FCNTL_O_NONBLOCK], [
fi
])
-
-dnl CURL_CHECK_FUNC_FDOPEN
-dnl -------------------------------------------------
-dnl Verify if fdopen 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_fdopen, then
-dnl HAVE_FDOPEN will be defined.
-
-AC_DEFUN([CURL_CHECK_FUNC_FDOPEN], [
- AC_REQUIRE([CURL_INCLUDES_STDIO])dnl
- #
- tst_links_fdopen="unknown"
- tst_proto_fdopen="unknown"
- tst_compi_fdopen="unknown"
- tst_allow_fdopen="unknown"
- #
- AC_MSG_CHECKING([if fdopen can be linked])
- AC_LINK_IFELSE([
- AC_LANG_FUNC_LINK_TRY([fdopen])
- ],[
- AC_MSG_RESULT([yes])
- tst_links_fdopen="yes"
- ],[
- AC_MSG_RESULT([no])
- tst_links_fdopen="no"
- ])
- #
- if test "$tst_links_fdopen" = "yes"; then
- AC_MSG_CHECKING([if fdopen is prototyped])
- AC_EGREP_CPP([fdopen],[
- $curl_includes_stdio
- ],[
- AC_MSG_RESULT([yes])
- tst_proto_fdopen="yes"
- ],[
- AC_MSG_RESULT([no])
- tst_proto_fdopen="no"
- ])
- fi
- #
- if test "$tst_proto_fdopen" = "yes"; then
- AC_MSG_CHECKING([if fdopen is compilable])
- AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[
- $curl_includes_stdio
- ]],[[
- if(0 != fdopen(0, 0))
- return 1;
- ]])
- ],[
- AC_MSG_RESULT([yes])
- tst_compi_fdopen="yes"
- ],[
- AC_MSG_RESULT([no])
- tst_compi_fdopen="no"
- ])
- fi
- #
- if test "$tst_compi_fdopen" = "yes"; then
- AC_MSG_CHECKING([if fdopen usage allowed])
- if test "x$curl_disallow_fdopen" != "xyes"; then
- AC_MSG_RESULT([yes])
- tst_allow_fdopen="yes"
- else
- AC_MSG_RESULT([no])
- tst_allow_fdopen="no"
- fi
- fi
- #
- AC_MSG_CHECKING([if fdopen might be used])
- if test "$tst_links_fdopen" = "yes" &&
- test "$tst_proto_fdopen" = "yes" &&
- test "$tst_compi_fdopen" = "yes" &&
- test "$tst_allow_fdopen" = "yes"; then
- AC_MSG_RESULT([yes])
- AC_DEFINE_UNQUOTED(HAVE_FDOPEN, 1,
- [Define to 1 if you have the fdopen function.])
- curl_cv_func_fdopen="yes"
- else
- AC_MSG_RESULT([no])
- curl_cv_func_fdopen="no"
- fi
-])
-
-
dnl CURL_CHECK_FUNC_FGETXATTR
dnl -------------------------------------------------
dnl Verify if fgetxattr is available, prototyped, and