nghttp2/nghttp2
CMakeLists.txt
:383
check_function_exists(pipe2 HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
check_symbol_exists(pipe2 "unistd.h" HAVE_PIPE2)
CHECK_SYMBOL_EXISTS (pipe2 "${CMAKE_EXTRA_INCLUDE_FILES}" HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
check_function_exists("pipe2" HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
CHECK_FUNCTION_EXISTS(pipe2 HAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)
CHECK_CXX_SOURCE_COMPILES("
#include <unistd.h>
int main(void) {
int fd[2];
return pipe2(fd, 0);
}" HAVE_PIPE2)
check_function_exists("pipe2" HAVE_PIPE2)
check_symbol_exists(pipe2 "fcntl.h;unistd.h" HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
check_symbol_exists(pipe2 "fcntl.h;unistd.h" HAVE_PIPE2)
add_definitions(-DHAVE_PIPE2)
check_function_exists(pipe2 HAVE_PIPE2)