Don't allow autoconf 2.70, it's known to fail
[amule.git] / cmake / zlib.cmake
blobbb339e6517534c76471f3c9016be1901428e6595
1 include (FindZLIB)
3 #At least on Win32 the includepath isn't set correctly sometimes
4 if (NOT EXISTS ${ZLIB_INCLUDE_DIR}/zlib.h)
5         if (EXISTS ${ZLIB_INCLUDE_DIR}/include/zlib.h)
6                 set (${ZLIB_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}/include)
7                 message (STATUS "zlib.h found in ${ZLIB_INCLUDE_DIR}")
8         else()
9                 message (FATAL_ERROR "No useable zlib.h found")
10         endif()
11 endif()