endif()
endif()
-# TODO test which of these headers are required
-if(NOT WIN32)
- set(CURL_PULL_SYS_TYPES_H ${HAVE_SYS_TYPES_H})
- set(CURL_PULL_SYS_SOCKET_H ${HAVE_SYS_SOCKET_H})
- set(CURL_PULL_SYS_POLL_H ${HAVE_SYS_POLL_H})
-endif()
-
include(CMake/OtherTests.cmake)
add_definitions(-DHAVE_CONFIG_H)
#endif])
AC_BEFORE([$0], [AC_SYS_LARGEFILE])dnl
AC_BEFORE([$0], [CURL_CONFIGURE_REENTRANT])dnl
- AC_BEFORE([$0], [CURL_CONFIGURE_PULL_SYS_POLL])dnl
AC_MSG_CHECKING([if OS is AIX (to define _ALL_SOURCE)])
AC_EGREP_CPP([yes_this_is_aix],[
#ifdef _AIX
_EOF
])
-dnl CURL_CONFIGURE_PULL_SYS_POLL
-dnl -------------------------------------------------
-dnl The need for the sys/poll.h inclusion arises mainly to properly
-dnl interface AIX systems which define macros 'events' and 'revents'.
-
-AC_DEFUN([CURL_CONFIGURE_PULL_SYS_POLL], [
- AC_REQUIRE([CURL_INCLUDES_POLL])dnl
- #
- tst_poll_events_macro_defined="unknown"
- #
- AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[
- $curl_includes_poll
- ]],[[
-#if defined(events) || defined(revents)
- return 0;
-#else
- force compilation error
-#endif
- ]])
- ],[
- tst_poll_events_macro_defined="yes"
- ],[
- tst_poll_events_macro_defined="no"
- ])
- #
- if test "$tst_poll_events_macro_defined" = "yes"; then
- if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
- CURL_DEFINE_UNQUOTED([CURL_PULL_SYS_POLL_H])
- fi
- fi
- #
-])
-
dnl CURL_CHECK_FUNC_SELECT
dnl -------------------------------------------------