Commit 51f8b1ff authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Clean ConfigureChecks.cmake

parent 461a937c
......@@ -10,29 +10,19 @@ elseif (CMAKE_CROSSCOMPILING)
elseif(NOT EXISTS "${XKBDIR}")
message(FATAL_ERROR "Couldn't find XKB location: \"${XKBDIR}\".")
endif()
set(KWIN_BIN "kwin_x11" CACHE STRING "Name of the KWin binary")
check_function_exists(getpassphrase HAVE_GETPASSPHRASE)
check_function_exists(vsyslog HAVE_VSYSLOG)
check_function_exists(statvfs HAVE_STATVFS)
check_include_files(limits.h HAVE_LIMITS_H)
check_include_files(sys/time.h HAVE_SYS_TIME_H) # ksmserver, ksplashml, sftp
check_include_files(stdint.h HAVE_STDINT_H) # kcontrol/kfontinst
check_include_files("sys/stat.h;sys/vfs.h" HAVE_SYS_VFS_H) # statvfs for plasma/solid
check_include_files("sys/stat.h;sys/statvfs.h" HAVE_SYS_STATVFS_H) # statvfs for plasma/solid
check_include_files(sys/param.h HAVE_SYS_PARAM_H)
check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
check_include_files("sys/types.h;sys/statfs.h" HAVE_SYS_STATFS_H)
check_include_files(unistd.h HAVE_UNISTD_H)
check_include_files(malloc.h HAVE_MALLOC_H)
check_function_exists(statfs HAVE_STATFS)
set(HAVE_XCURSOR {X11_Xcursor_FOUND}) # many uses
set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
check_function_exists(getpeereid HAVE_GETPEEREID) # kdesu
check_function_exists(setpriority HAVE_SETPRIORITY) # kscreenlocker
set(CMAKE_REQUIRED_INCLUDES ${X11_Xrandr_INCLUDE_PATH}/Xrandr.h)
set(CMAKE_REQUIRED_LIBRARIES ${X11_Xrandr_LIB})
......@@ -4,9 +4,6 @@
/* xkb resources directory */
#cmakedefine XKBDIR "${XKBDIR}"
/* KWin binary name */
#define KWIN_BIN "${KWIN_BIN}"
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment