~ubuntu-branches/ubuntu/quantal/kmix/quantal-proposed

« back to all changes in this revision

Viewing changes to ConfigureChecks.cmake

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-06-14 17:19:54 UTC
  • Revision ID: package-import@ubuntu.com-20120614171954-8rg4l5uswtln8kh1
Tags: upstream-4.8.90+repack
ImportĀ upstreamĀ versionĀ 4.8.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(CheckIncludeFiles)
 
2
include(CheckTypeSize)
 
3
include(CheckStructMember)
 
4
include(MacroBoolTo01)
 
5
 
 
6
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
 
7
# definitions like _GNU_SOURCE that are needed on each platform.
 
8
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
 
9
 
 
10
macro_bool_to_01(OGGVORBIS_FOUND HAVE_VORBIS)
 
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(machine/endian.h HAVE_MACHINE_ENDIAN_H)
 
25
# Linux has <endian.h>, FreeBSD has <sys/endian.h> and Solaris has neither.
 
26
check_include_files(endian.h HAVE_ENDIAN_H)
 
27
check_include_files(sys/endian.h HAVE_SYS_ENDIAN_H)
 
28
check_include_files(unistd.h HAVE_UNISTD_H)