summaryrefslogtreecommitdiffstats
path: root/kcontrol/ConfigureChecks.cmake
blob: 1ff4f0635658be4eeba57f496cd7607863ed9e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################


##### getopt.h ##################################

check_include_file( getopt.h HAVE_GETOPT_H )


##### check for freetype2 #######################

pkg_search_module( FREETYPE freetype2 )
if( FREETYPE_FOUND )
  set( HAVE_FREETYPE2 1 CACHE INTERNAL "" FORCE  )
else( )
  tde_message_fatal( "freetype2 are required, but not found on your system" )
endif( )


##### check for fontconfig ######################

pkg_search_module( FONTCONFIG fontconfig )
if( FONTCONFIG_FOUND )
  set( HAVE_FONTCONFIG 1 CACHE INTERNAL "" FORCE )
else( )
  tde_message_fatal( "fontconfig are required, but not found on your system" )
endif( )


##### check for xft #############################

pkg_search_module( XFT xft )
if( XFT_FOUND )
  set( HAVE_XFT 1 CACHE INTERNAL "" FORCE )
else( )
  tde_message_fatal( "xft are required, but not found on your system" )
endif( )


##### check for Xrandr ##########################

if( WITH_XRANDR )
  pkg_search_module( XRANDR xrandr )
  if( NOT XRANDR_FOUND )
    tde_message_fatal( "xrandr are requested, but not found on your system" )
  endif( )
endif( )


##### check for libusb ##########################

if( WITH_LIBUSB )
  pkg_search_module( LIBUSB libusb )
  if( LIBUSB_FOUND )
    set( HAVE_LIBUSB 1 CACHE INTERNAL "" FORCE )
  else( )
    tde_message_fatal( "libusb are requested, but not found on your system" )
  endif( )
endif( )


##### check for libraw1394 ######################

if( WITH_LIBRAW1394 )
  pkg_search_module( LIBRAW1394 libraw1394 )
  if( NOT LIBRAW1394_FOUND )
    tde_message_fatal( "libraw1394 are requested, but not found on your system" )
  endif( )
endif( )


##### check for fontenc #########################

# fontenc seems unused in sources

# pkg_search_module( FONTENC fontenc )
# if( FONTENC_FOUND )
#     set( HAVE_FONT_ENC 1 CACHE INTERNAL "" FORCE )
# endif( )