2014-03-30 17:48:38 -08:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} )
|
|
|
|
|
|
2021-07-28 08:07:47 -08:00
|
|
|
pkg_get_variable(XKBDIR xkeyboard-config xkb_base)
|
|
|
|
|
if (NOT XKBDIR)
|
|
|
|
|
message(FATAL_ERROR "Couldn't find xkb_base using pkg-config: is xkeyboard-config installed?")
|
|
|
|
|
elseif (CMAKE_CROSSCOMPILING)
|
2021-07-26 08:03:17 -08:00
|
|
|
if (NOT EXISTS "${CMAKE_SYSROOT}/${XKBDIR}")
|
|
|
|
|
message(FATAL_ERROR "Couldn't find XKB location in CMAKE_SYSROOT: \"${CMAKE_SYSROOT}/${XKBDIR}\"")
|
|
|
|
|
endif()
|
|
|
|
|
elseif(NOT EXISTS "${XKBDIR}")
|
|
|
|
|
message(FATAL_ERROR "Couldn't find XKB location: \"${XKBDIR}\".")
|
2015-06-26 18:10:08 -08:00
|
|
|
endif()
|
2014-03-30 17:48:38 -08:00
|
|
|
|
|
|
|
|
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("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)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)
|