blob: 4e89e3f31e25a30e2882debb27f7f6102f20b224 (
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
|
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
find_package( TQt )
find_package( TDE )
##### check for gcc visibility support #########
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )
#### check for headers
check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
check_include_file( "paths.h" HAVE_PATHS_H )
#### set USE_SSL
if( WITH_SSL )
# For SSL support is used KSSL in tdelibs.
# Therefore, there is no need for a direct dependence on the SSL library.
set( USE_SSL 1 )
endif( WITH_SSL )
#### check for ASUS Mail LED
if( WITH_MLED )
set( HAVE_MLED 1 )
if( NOT EXISTS "/proc/acpi/asus/mled" )
message( WARNING
"\n"
"-DWITH_MLED=ON requires 'asus-laptop' kernel module from acpi4asus "
"project to work, which was not found on your system. The project is "
"currently abandoned and the module doesn't support linux kernels above "
"2.6.19. There is no harm in enabling the flag besides an additional "
"message on stderr, but you won't get any benefits from it either unless "
"you run some very unusual system configuration."
"\n"
)
endif( )
endif( WITH_MLED )
|