GreatSQL/GreatSQL
extra/curl/curl-7.86.0/CMakeLists.txt
:1054
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
add_definitions(-DHAVE_SELECT)
add_definitions(-DHAVE_SELECT)
check_symbol_exists("select" "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists("select" "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
CHECK_FUNCTION_EXISTS(select HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
CHECK_C_SOURCE_COMPILES("
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#endif
int main()
{
select(0,0,0,0,0);
return 0;
}"
HAVE_SELECT)
check_symbol_exists("select" "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists("select" "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_cxx_symbol_exists(select sys/select.h HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
CHECK_C_SOURCE_COMPILES("
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#endif
int main()
{
select(0,0,0,0,0);
return 0;
}"
HAVE_SELECT)
CHECK_FUNCTION_EXISTS(select HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_c_source_compiles("
#include <stdio.h>
#include <sys/select.h>
int main() {
fd_set rfds;
struct timeval tv;
return select(1, &rfds, NULL, NULL, &tv);
}" HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
CHECK_C_SOURCE_COMPILES("
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#endif
int main()
{
select(0,0,0,0,0);
return 0;
}"
HAVE_SELECT)
check_c_source_compiles("
#include <sys/types.h>
#include <sys/time.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
int
main(int argc, char *argv[])
{
struct timeval tv;
int rv;
tv.tv_sec = 1;
tv.tv_usec = 1;
rv = select(0, NULL, NULL, NULL, &tv);
return (rv == -1 && errno != EINTR);
}
" HAVE_SELECT)
check_cxx_symbol_exists(select sys/select.h HAVE_SELECT)
check_symbol_exists(select sys/select.h HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
check_function_exists(select HAVE_SELECT)
check_symbol_exists(select "${CURL_INCLUDES}" HAVE_SELECT)
CHECK_CXX_SOURCE_COMPILES("#include <sys/select.h>
int main() {select(0,0,0,0,0); return 1;}" HAVE_SELECT)
check_symbol_exists("select" "${CURL_INCLUDES}" HAVE_SELECT)
check_function_exists ( select HAVE_SELECT )
check_function_exists(select HAVE_SELECT)
check_symbol_exists(select "winsock2.h;ws2tcpip.h" HAVE_SELECT)
check_symbol_exists(poll "winsock2.h;ws2tcpip.h" HAVE_SELECT)
check_function_exists(select HAVE_SELECT)