summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-04-27 18:04:16 -0400
committerAllen Winter <allen.winter@kdab.com>2015-04-27 18:04:16 -0400
commit7263e5201247f2cabee805dca6eddf9f9e97704f (patch)
treee5e1f92496a11022c759c91e874812be931057ed /ConfigureChecks.cmake
parenta1493f60e5ea512bad7741c1a4402bdb162a56f5 (diff)
downloadlibical-git-7263e5201247f2cabee805dca6eddf9f9e97704f.tar.gz
massive include file cleaning. partially done
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake25
1 files changed, 16 insertions, 9 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 7daf84c2..9d5446bb 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -1,32 +1,39 @@
include(CheckIncludeFiles)
-check_include_files(assert.h HAVE_ASSERT_H)
check_include_files(byteswap.h HAVE_BYTESWAP_H)
-check_include_files(ctype.h HAVE_CTYPE_H)
-check_include_files(dlfcn.h HAVE_DLFCN_H)
+check_include_files(dirent.h HAVE_DIRENT_H)
check_include_files(endian.h HAVE_ENDIAN_H)
check_include_files(inttypes.h HAVE_INTTYPES_H)
-check_include_files(memory.h HAVE_MEMORY_H)
check_include_files(pthread.h HAVE_PTHREAD_H)
check_include_files(stdint.h HAVE_STDINT_H)
check_include_files(stdlib.h HAVE_STDLIB_H)
check_include_files(strings.h HAVE_STRINGS_H)
check_include_files(string.h HAVE_STRING_H)
check_include_files(sys/endian.h HAVE_SYS_ENDIAN_H)
-check_include_files(sys/stat.h HAVE_SYS_STAT_H)
-check_include_files(sys/types.h HAVE_SYS_TYPES_H)
+check_include_files(sys/param.h HAVE_SYS_PARAM_H)
+check_include_files(sys/utsname.h HAVE_SYS_UTSNAME_H)
check_include_files(time.h HAVE_TIME_H)
+check_include_files(fcntl.h HAVE_FCNTL_H)
check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(wctype.h HAVE_WCTYPE_H)
-
include(CheckFunctionExists)
+check_function_exists(access HAVE_ACCESS) #Unix <unistd.h>
+check_function_exists(_access HAVE__ACCESS) #Windows <io.h>
check_function_exists(backtrace HAVE_BACKTRACE)
check_function_exists(gmtime_r HAVE_GMTIME_R)
check_function_exists(isspace HAVE_ISSPACE)
check_function_exists(iswspace HAVE_ISWSPACE)
+check_function_exists(open HAVE_OPEN) #Unix <fcntl.h>
+check_function_exists(_open HAVE__OPEN) #Windows <io.h>
check_function_exists(setenv HAVE_SETENV)
-check_function_exists(snprintf HAVE_SNPRINTF)
-check_function_exists(strdup HAVE_STRDUP)
+check_function_exists(snprintf HAVE_SNPRINTF) #Unix <stdio.h>
+check_function_exists(_snprintf HAVE__SNPRINTF) #Windows <stdio.h>
+check_function_exists(stat HAVE_STAT)
+check_function_exists(_stat HAVE__STAT)
+check_function_exists(strcasecmp HAVE_STRCASECMP)
+check_function_exists(stricmp HAVE_STRICMP)
+check_function_exists(strdup HAVE_STRDUP) #Unix <string.h>
+check_function_exists(_strdup HAVE__STRDUP) #Windows <string.h>
check_function_exists(unsetenv HAVE_UNSETENV)
include(CheckTypeSize)