]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Move include file checks to ConfigureChecks.cmake for cmake build system.
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 5 Mar 2015 12:06:10 +0000 (13:06 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 5 Mar 2015 12:54:15 +0000 (13:54 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85418
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/CMakeLists.txt
cmake/ConfigureChecks.cmake

index 14685da2afcdb11224f651d4fea2a87c2b907682..5094990785a6f3042601a5941bacf56834c23d02 100644 (file)
@@ -299,7 +299,6 @@ endif(NOT MSVC)
 if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
     option (DBUS_BUS_ENABLE_INOTIFY "build with inotify support (linux only)" ON)
     if(DBUS_BUS_ENABLE_INOTIFY)
-        check_include_file(sys/inotify.h HAVE_SYS_INOTIFY_H)
         if(NOT HAVE_SYS_INOTIFY_H)
             message(FATAL_ERROR "sys/inotify.h not found!")
         endif(NOT HAVE_SYS_INOTIFY_H)
@@ -307,10 +306,6 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
 elseif("${CMAKE_SYSTEM_NAME}" MATCHES ".*BSD")
     option (DBUS_BUS_ENABLE_KQUEUE "build with kqueue support (FreeBSD only)" ON)
     if(DBUS_BUS_ENABLE_KQUEUE)
-        # cmake check a header by compiling a test program with
-        # the header, sys/event.h needs stdint.h and sys/types.h
-        # to work.
-        check_include_files("stdint.h;sys/types.h;sys/event.h" HAVE_SYS_EVENT_H)
         if(NOT HAVE_SYS_EVENT_H)
             message(FATAL_ERROR "sys/event.h not found!")
         endif(NOT HAVE_SYS_EVENT_H)
index da8c4fc57abe8f8b8239dc438d25b5d58ce95a99..9864409bff4a16e07c3c48e61b2f9dcc5ad379a3 100644 (file)
@@ -23,6 +23,7 @@ check_include_file(stdio.h      HAVE_STDIO_H)   # dbus-sysdeps.h
 check_include_file(string.h     HAVE_STRING_H)
 check_include_file(strings.h     HAVE_STRINGS_H)
 check_include_file(syslog.h     HAVE_SYSLOG_H)
+check_include_files("stdint.h;sys/types.h;sys/event.h" HAVE_SYS_EVENT_H)
 check_include_file(sys/inotify.h     HAVE_SYS_INOTIFY_H)
 check_include_file(sys/resource.h     HAVE_SYS_RESOURCE_H)
 check_include_file(sys/stat.h     HAVE_SYS_STAT_H)