]> cloud.milkyroute.net Git - dolphin.git/blob - ConfigureChecks.cmake
SVN_SILENT made messages (.desktop file)
[dolphin.git] / ConfigureChecks.cmake
1 include(CheckIncludeFile)
2 include(CheckIncludeFiles)
3 include(CheckSymbolExists)
4 include(CheckFunctionExists)
5 include(CheckLibraryExists)
6 include(CheckPrototypeExists)
7 include(CheckTypeSize)
8 # The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
9 # definitions like _GNU_SOURCE that are needed on each platform.
10 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
11
12 #now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
13 # If definitions like -D_GNU_SOURCE are needed for these checks they
14 # should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
15 # defined outside this file. Here we include these definitions in
16 # CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
17 # checks below.
18 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
19 if (WIN32)
20 set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
21 set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
22 endif (WIN32)
23
24 check_include_files(stdint.h HAVE_STDINT_H)
25 check_include_files(sys/types.h HAVE_SYS_TYPES_H)
26 check_include_files(ieeefp.h HAVE_IEEEFP_H)
27 check_include_files(mntent.h HAVE_MNTENT_H)
28 check_include_files(sys/loadavg.h HAVE_SYS_LOADAVG_H)
29 check_include_files(sys/mnttab.h HAVE_SYS_MNTTAB_H)
30 check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
31 check_include_files(sys/statfs.h HAVE_SYS_STATFS_H)
32 check_include_files(sys/statvfs.h HAVE_SYS_STATVFS_H)
33 check_include_files(sys/ucred.h HAVE_SYS_UCRED_H)
34 check_include_files(sys/vfs.h HAVE_SYS_VFS_H)
35
36 check_function_exists(isinf HAVE_FUNC_ISINF)
37