From 3aa781ab6db8b07adaf3070c8f3371683fb75fbd Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 10 Jan 2003 15:52:45 -0500 Subject: [PATCH] AIX fixes --- Source/CTest/Curl/CMakeLists.txt | 12 ++++++++++++ Source/CTest/Curl/config.h.in | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index f8e970b27..3e42d7924 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -9,6 +9,10 @@ SET(OPERATING_SYSTEM ${CMAKE_SYSTEM_NAME}) SET(CMAKE_C_FLAGS "${CMAKE_ANSI_CFLAGS} ${CMAKE_C_FLAGS}") SET(CMAKE_REQUIRED_FLAGS ${CMAKE_ANSI_CFLAGS}) +IF(${CMAKE_SYSTEM_NAME} MATCHES AIX) + SET(_ALL_SOURCE 1) +ENDIF(${CMAKE_SYSTEM_NAME} MATCHES AIX) + INCLUDE (${CMAKE_ROOT}/Modules/CheckLibraryExists.cmake) INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) INCLUDE (${CMAKE_ROOT}/Modules/CheckTypeSize.cmake) @@ -308,6 +312,14 @@ IF(NOT HAVE_IN_ADDR_T) SET(in_addr_t "unsigned long") ENDIF(NOT HAVE_IN_ADDR_T) +IF(NOT HAVE_LIBZ) + SET(HAVE_ZLIB_H 0) +ENDIF(NOT HAVE_LIBZ) + +IF(NOT HAVE_ZLIB_H) + SET(HAVE_LIBZ 0) +ENDIF(NOT HAVE_ZLIB_H) + SET(HAVE_SOME_NONBLOCK 0) FOREACH(CURL_TEST HAVE_FIONBIO diff --git a/Source/CTest/Curl/config.h.in b/Source/CTest/Curl/config.h.in index 560207fd4..980b972fe 100644 --- a/Source/CTest/Curl/config.h.in +++ b/Source/CTest/Curl/config.h.in @@ -469,7 +469,7 @@ System headers sometimes define this. We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE -# undef _ALL_SOURCE +#cmakedefine _ALL_SOURCE ${_ALL_SOURCE} #endif /* Number of bits in a file offset, on hosts where this is settable. */