STYLE: Nightly Version update
[cmake.git] / Modules / CMakeBackwardCompatibilityC.cmake
blobc9dbce1c94ea68dee80187d3076284506bab953c
1 # Nothing here yet
2 IF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
3   INCLUDE(CMakeVS7BackwardCompatibility)
4   SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
5 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 7")
6 IF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
7   INCLUDE(CMakeVS6BackwardCompatibility)
8   SET(CMAKE_SKIP_COMPATIBILITY_TESTS 1)
9 ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio 6")
11 IF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
12   INCLUDE (CheckTypeSize)
13   CHECK_TYPE_SIZE(int      CMAKE_SIZEOF_INT)
14   CHECK_TYPE_SIZE(long     CMAKE_SIZEOF_LONG)
15   CHECK_TYPE_SIZE("void*"  CMAKE_SIZEOF_VOID_P)
16   CHECK_TYPE_SIZE(char     CMAKE_SIZEOF_CHAR)
17   CHECK_TYPE_SIZE(short    CMAKE_SIZEOF_SHORT)
18   CHECK_TYPE_SIZE(float    CMAKE_SIZEOF_FLOAT)
19   CHECK_TYPE_SIZE(double   CMAKE_SIZEOF_DOUBLE)
21   INCLUDE (CheckIncludeFile)
22   CHECK_INCLUDE_FILE("limits.h"       CMAKE_HAVE_LIMITS_H)
23   CHECK_INCLUDE_FILE("unistd.h"       CMAKE_HAVE_UNISTD_H)
24   CHECK_INCLUDE_FILE("sys/prctl.h"    CMAKE_HAVE_SYS_PRCTL_H)
25   CHECK_INCLUDE_FILE("pthread.h"      CMAKE_HAVE_PTHREAD_H)
27   INCLUDE (TestBigEndian)
28   TEST_BIG_ENDIAN(CMAKE_WORDS_BIGENDIAN)
29   INCLUDE (FindX11)
31   IF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
32     SET (CMAKE_X_CFLAGS "" CACHE STRING "X11 extra flags.")
33   ELSE("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
34     SET (CMAKE_X_CFLAGS "-I${X11_X11_INCLUDE_PATH}" CACHE STRING
35          "X11 extra flags.")
36   ENDIF("${X11_X11_INCLUDE_PATH}" MATCHES "^/usr/include$")
37   SET (CMAKE_X_LIBS "${X11_LIBRARIES}" CACHE STRING
38        "Libraries and options used in X11 programs.")
39   SET (CMAKE_HAS_X "${X11_FOUND}" CACHE INTERNAL "Is X11 around.")
41   INCLUDE (FindThreads)
43   SET (CMAKE_THREAD_LIBS        "${CMAKE_THREAD_LIBS_INIT}" CACHE STRING 
44     "Thread library used.")
46   SET (CMAKE_USE_PTHREADS       "${CMAKE_USE_PTHREADS_INIT}" CACHE BOOL
47      "Use the pthreads library.")
49   SET (CMAKE_USE_WIN32_THREADS  "${CMAKE_USE_WIN32_THREADS_INIT}" CACHE BOOL
50        "Use the win32 thread library.")
52   SET (CMAKE_HP_PTHREADS        ${CMAKE_HP_PTHREADS_INIT} CACHE BOOL
53      "Use HP pthreads.")
55   SET (CMAKE_USE_SPROC          ${CMAKE_USE_SPROC_INIT} CACHE BOOL 
56      "Use sproc libs.")
57 ENDIF(NOT CMAKE_SKIP_COMPATIBILITY_TESTS)
59 MARK_AS_ADVANCED(
60 CMAKE_HP_PTHREADS
61 CMAKE_THREAD_LIBS
62 CMAKE_USE_PTHREADS
63 CMAKE_USE_SPROC
64 CMAKE_USE_WIN32_THREADS
65 CMAKE_X_CFLAGS
66 CMAKE_X_LIBS