summaryrefslogtreecommitdiff
path: root/cmake/config/common.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 15:25:17 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 15:53:14 -0200
commit4ed139a49cedf3f6e85d6f631a56bb7e4e416cc6 (patch)
tree1b7e96c8f719b8a9bf01701803d2260961953cb3 /cmake/config/common.cmake
parent995b1e480c84fd356fb89039dbc67db599a423cc (diff)
cmake: more headers and function checks.
Diffstat (limited to '')
-rw-r--r--cmake/config/common.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/config/common.cmake b/cmake/config/common.cmake
index d5e088d10d..2e31bf4dd9 100644
--- a/cmake/config/common.cmake
+++ b/cmake/config/common.cmake
@@ -34,6 +34,7 @@ EFL_OPTION(ENABLE_VALGRIND "Enable valgrind support" "${SUGGEST_VALGRIND}" DEPEN
34# BEGIN: HEADER, TYPE and FUNCTION CHECKS 34# BEGIN: HEADER, TYPE and FUNCTION CHECKS
35# KEEP EACH BLOCK SORTED 35# KEEP EACH BLOCK SORTED
36 36
37HEADER_CHECK(alloca.h)
37HEADER_CHECK(asm/hwcap.h) 38HEADER_CHECK(asm/hwcap.h)
38HEADER_CHECK(dirent.h) 39HEADER_CHECK(dirent.h)
39HEADER_CHECK(execinfo.h) 40HEADER_CHECK(execinfo.h)
@@ -44,29 +45,39 @@ HEADER_CHECK(sys/auxv.h)
44HEADER_CHECK(sys/mman.h) 45HEADER_CHECK(sys/mman.h)
45HEADER_CHECK(sys/types.h) 46HEADER_CHECK(sys/types.h)
46 47
48FUNC_CHECK(alloca INCLUDE_FILES alloca.h)
47FUNC_CHECK(backtrace INCLUDE_FILES execinfo.h) 49FUNC_CHECK(backtrace INCLUDE_FILES execinfo.h)
50FUNC_CHECK(backtrace_symbols INCLUDE_FILES execinfo.h)
48FUNC_CHECK(clock_gettime INCLUDE_FILES time.h) 51FUNC_CHECK(clock_gettime INCLUDE_FILES time.h)
49FUNC_CHECK(dirfd INCLUDE_FILES dirent.h sys/types.h) 52FUNC_CHECK(dirfd INCLUDE_FILES dirent.h sys/types.h)
50FUNC_CHECK(dladdr INCLUDE_FILES dlfcn.h LIBRARIES dl DEFINITIONS "-D_GNU_SOURCE=1") 53FUNC_CHECK(dladdr INCLUDE_FILES dlfcn.h LIBRARIES dl DEFINITIONS "-D_GNU_SOURCE=1")
51FUNC_CHECK(dlopen INCLUDE_FILES dlfcn.h LIBRARIES dl) 54FUNC_CHECK(dlopen INCLUDE_FILES dlfcn.h LIBRARIES dl)
55FUNC_CHECK(dlsym INCLUDE_FILES dlfcn.h LIBRARIES dl)
52FUNC_CHECK(fchmod INCLUDE_FILES sys/stat.h) 56FUNC_CHECK(fchmod INCLUDE_FILES sys/stat.h)
53FUNC_CHECK(fcntl INCLUDE_FILES fcntl.h) 57FUNC_CHECK(fcntl INCLUDE_FILES fcntl.h)
58FUNC_CHECK(fork INCLUDE_FILES unistd.h)
54FUNC_CHECK(fpathconf INCLUDE_FILES unistd.h) 59FUNC_CHECK(fpathconf INCLUDE_FILES unistd.h)
55FUNC_CHECK(fstatat NAME HAVE_ATFILE_SOURCE INCLUDE_FILES sys/stat.h) 60FUNC_CHECK(fstatat NAME HAVE_ATFILE_SOURCE INCLUDE_FILES sys/stat.h)
56FUNC_CHECK(geteuid INCLUDE_FILES unistd.h) 61FUNC_CHECK(geteuid INCLUDE_FILES unistd.h)
57FUNC_CHECK(getpagesize INCLUDE_FILES unistd.h) 62FUNC_CHECK(getpagesize INCLUDE_FILES unistd.h)
63FUNC_CHECK(getpwent INCLUDE_FILES sys/types.h pwd.h)
58FUNC_CHECK(getuid INCLUDE_FILES unistd.h) 64FUNC_CHECK(getuid INCLUDE_FILES unistd.h)
59FUNC_CHECK(getxattr INCLUDE_FILES sys/types.h sys/xattr.h) 65FUNC_CHECK(getxattr INCLUDE_FILES sys/types.h sys/xattr.h)
60FUNC_CHECK(iconv INCLUDE_FILES iconv.h) 66FUNC_CHECK(iconv INCLUDE_FILES iconv.h)
61FUNC_CHECK(listxattr INCLUDE_FILES sys/types.h sys/xattr.h) 67FUNC_CHECK(listxattr INCLUDE_FILES sys/types.h sys/xattr.h)
68FUNC_CHECK(lround INCLUDE_FILES math.h LIBRARIES m)
62FUNC_CHECK(mallinfo INCLUDE_FILES malloc.h) 69FUNC_CHECK(mallinfo INCLUDE_FILES malloc.h)
63FUNC_CHECK(malloc_info INCLUDE_FILES malloc.h) 70FUNC_CHECK(malloc_info INCLUDE_FILES malloc.h)
71FUNC_CHECK(malloc_usable_size INCLUDE_FILES malloc.h)
72FUNC_CHECK(mkdirat INCLUDE_FILES sys/stat.h)
64FUNC_CHECK(mmap INCLUDE_FILES sys/mman.h) 73FUNC_CHECK(mmap INCLUDE_FILES sys/mman.h)
65FUNC_CHECK(mtrace INCLUDE_FILES mcheck.h) 74FUNC_CHECK(mtrace INCLUDE_FILES mcheck.h)
66FUNC_CHECK(prctl INCLUDE_FILES sys/prctl.h) 75FUNC_CHECK(prctl INCLUDE_FILES sys/prctl.h)
76FUNC_CHECK(realpath INCLUDE_FILES stdlib.h)
67FUNC_CHECK(sched_getcpu INCLUDE_FILES sched.h DEFINITIONS "-D_GNU_SOURCE=1") 77FUNC_CHECK(sched_getcpu INCLUDE_FILES sched.h DEFINITIONS "-D_GNU_SOURCE=1")
68FUNC_CHECK(setxattr INCLUDE_FILES sys/types.h sys/xattr.h) 78FUNC_CHECK(setxattr INCLUDE_FILES sys/types.h sys/xattr.h)
69FUNC_CHECK(shm_open INCLUDE_FILES sys/mman.h sys/stat.h fcntl.h LIBRARIES rt) 79FUNC_CHECK(shm_open INCLUDE_FILES sys/mman.h sys/stat.h fcntl.h LIBRARIES rt)
80FUNC_CHECK(siglongjmp INCLUDE_FILES setjmp.h)
70FUNC_CHECK(splice INCLUDE_FILES fcntl.h DEFINITIONS "-D_GNU_SOURCE=1") 81FUNC_CHECK(splice INCLUDE_FILES fcntl.h DEFINITIONS "-D_GNU_SOURCE=1")
71FUNC_CHECK(strerror_r INCLUDE_FILES string.h) 82FUNC_CHECK(strerror_r INCLUDE_FILES string.h)
72FUNC_CHECK(strlcpy INCLUDE_FILES bsd/string.h) 83FUNC_CHECK(strlcpy INCLUDE_FILES bsd/string.h)