fixed packaging
[platform/upstream/libical.git] / ConfigureChecks.cmake
1 include(CheckIncludeFiles)
2 check_include_files(assert.h HAVE_ASSERT_H)
3 check_include_files(byteswap.h HAVE_BYTESWAP_H)
4 check_include_files(ctype.h HAVE_CTYPE_H)
5 check_include_files(dlfcn.h HAVE_DLFCN_H)
6 check_include_files(endian.h HAVE_ENDIAN_H)
7 check_include_files(inttypes.h HAVE_INTTYPES_H)
8 check_include_files(memory.h HAVE_MEMORY_H)
9 check_include_files(pthread.h HAVE_PTHREAD_H)
10 check_include_files(stdint.h HAVE_STDINT_H)
11 check_include_files(stdlib.h HAVE_STDLIB_H)
12 check_include_files(strings.h HAVE_STRINGS_H)
13 check_include_files(string.h HAVE_STRING_H)
14 check_include_files(sys/endian.h HAVE_SYS_ENDIAN_H)
15 check_include_files(sys/stat.h HAVE_SYS_STAT_H)
16 check_include_files(sys/types.h HAVE_SYS_TYPES_H)
17 check_include_files(time.h HAVE_TIME_H)
18 check_include_files(unistd.h HAVE_UNISTD_H)
19 check_include_files(wctype.h HAVE_WCTYPE_H)
20
21
22 include(CheckFunctionExists)
23 check_function_exists(backtrace HAVE_BACKTRACE)
24 check_function_exists(gmtime_r HAVE_GMTIME_R)
25 check_function_exists(isspace HAVE_ISSPACE)
26 check_function_exists(iswspace HAVE_ISWSPACE)
27 check_function_exists(setenv HAVE_SETENV)
28 check_function_exists(snprintf HAVE_SNPRINTF)
29 check_function_exists(strdup HAVE_STRDUP)
30 check_function_exists(unsetenv HAVE_UNSETENV)
31
32 include(CheckTypeSize)
33 check_type_size(mode_t SIZEOF_MODE_T)
34 check_type_size(size_t SIZEOF_SIZE_T)
35 check_type_size(intptr_t INTPTR_T) # please do not rename HAVE_INTPTR_T will automatically be defined
36 check_type_size(pid_t HAVE_PID_T)
37
38 include(FindThreads)
39 check_library_exists(pthread pthread_attr_get_np "" HAVE_PTHREAD_ATTR_GET_NP)
40 check_library_exists(pthread pthread_getattr_np "" HAVE_PTHREAD_GETATTR_NP)
41 check_include_files("pthread.h;pthread_np.h" HAVE_PTHREAD_NP_H)