From 8c4aea54d6e1412962e00a96a0aa3e4f2d96259f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 17 Jan 2003 08:24:04 -0500 Subject: More portability issues. Sigaction is a symbol --- Source/CTest/Curl/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index 4ec5384..7a0dcd9 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -118,6 +118,7 @@ ENDIF(HAVE_LIBSSL) CHECK_LIBRARY_EXISTS("${CURL_LIBS}" dlopen "" HAVE_DLOPEN) SET(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS}) +CHECK_INCLUDE_FILE("features.h" HAVE_FEATURES_H) CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H) CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H) CHECK_INCLUDE_FILE("alloca.h" HAVE_ALLOCA_H) @@ -216,10 +217,13 @@ CHECK_FUNCTION_EXISTS(tcgetattr HAVE_TCGETATTR) CHECK_FUNCTION_EXISTS(perror HAVE_PERROR) CHECK_FUNCTION_EXISTS(closesocket HAVE_CLOSESOCKET) CHECK_FUNCTION_EXISTS(setvbuf HAVE_SETVBUF) -CHECK_FUNCTION_EXISTS(sigaction HAVE_SIGACTION) CHECK_FUNCTION_EXISTS(signal HAVE_SIGNAL) CHECK_FUNCTION_EXISTS(sigsetjmp HAVE_SIGSETJMP) +IF(HAVE_SIGNAL) + CHECK_SYMBOL_EXISTS(sigaction "signal.h" HAVE_SIGACTION) +ENDIF(HAVE_SIGNAL) + IF(NOT HAVE_SIGSETJMP) IF(HAVE_SETJMP_H) CHECK_SYMBOL_EXISTS(sigsetjmp "setjmp.h" HAVE_MACRO_SIGSETJMP) -- cgit v0.12