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
|
/*
* Compile-time config settings. This gets processed by cmake into the
* file that's actually used.
*/
/*
* Defined paths etc
*/
#define SYSTEM_INIT_FILE "@ETCDIR@/system.ctwmrc"
#define PIXMAP_DIRECTORY "@PIXMAPDIR@"
/*
* Various on/off configs
*/
/* Using XPM? */
#cmakedefine USE_XPM
#ifdef USE_XPM
# define XPM
#endif
/* libjpeg */
#cmakedefine USE_JPEG
#ifdef USE_JPEG
# define JPEG
#endif
/* m4 preprocessing of config */
#cmakedefine USE_M4
#ifdef USE_M4
# define USEM4
# define M4CMD "@M4_CMD@"
#endif
/* rplay? */
#cmakedefine USE_SOUND
#ifdef USE_SOUND
# define SOUNDS
#endif
/* How about EWMH properties */
#cmakedefine USE_EWMH
#ifdef USE_EWMH
# define EWMH
#endif
/* Does libc provide regex funcs we use? */
#cmakedefine USE_SREGEX
#ifdef USE_SREGEX
# define USE_SYS_REGEX
#endif
/* We need _GNU_SOURCE with glibc to get some bits */
#cmakedefine USE_GNU_SOURCE
#ifdef USE_GNU_SOURCE
# define _GNU_SOURCE
#endif
/*
* Support for glibc features.h. When building with -std=c99, glibc
* defines __STRICT_ANSI__ which blocks out a lot of POSIX defines unless
* we ask for them more explicitly.
*/
#cmakedefine USE_GLIBC_FEATURES_H
#ifdef USE_GLIBC_FEATURES_H
# undef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200809L
# undef _XOPEN_SOURCE
# define _XOPEN_SOURCE 700
# include <features.h>
#endif
|