]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/build.h
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / basic / build.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2010 Lennart Poettering
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21 ***/
22
23 #if HAVE_PAM
24 #define _PAM_FEATURE_ "+PAM"
25 #else
26 #define _PAM_FEATURE_ "-PAM"
27 #endif
28
29 #if HAVE_AUDIT
30 #define _AUDIT_FEATURE_ "+AUDIT"
31 #else
32 #define _AUDIT_FEATURE_ "-AUDIT"
33 #endif
34
35 #if HAVE_SELINUX
36 #define _SELINUX_FEATURE_ "+SELINUX"
37 #else
38 #define _SELINUX_FEATURE_ "-SELINUX"
39 #endif
40
41 #if HAVE_APPARMOR
42 #define _APPARMOR_FEATURE_ "+APPARMOR"
43 #else
44 #define _APPARMOR_FEATURE_ "-APPARMOR"
45 #endif
46
47 #if ENABLE_IMA
48 #define _IMA_FEATURE_ "+IMA"
49 #else
50 #define _IMA_FEATURE_ "-IMA"
51 #endif
52
53 #if ENABLE_SMACK
54 #define _SMACK_FEATURE_ "+SMACK"
55 #else
56 #define _SMACK_FEATURE_ "-SMACK"
57 #endif
58
59 #if HAVE_SYSV_COMPAT
60 #define _SYSVINIT_FEATURE_ "+SYSVINIT"
61 #else
62 #define _SYSVINIT_FEATURE_ "-SYSVINIT"
63 #endif
64
65 #if ENABLE_UTMP
66 #define _UTMP_FEATURE_ "+UTMP"
67 #else
68 #define _UTMP_FEATURE_ "-UTMP"
69 #endif
70
71 #if HAVE_LIBCRYPTSETUP
72 #define _LIBCRYPTSETUP_FEATURE_ "+LIBCRYPTSETUP"
73 #else
74 #define _LIBCRYPTSETUP_FEATURE_ "-LIBCRYPTSETUP"
75 #endif
76
77 #if HAVE_GCRYPT
78 #define _GCRYPT_FEATURE_ "+GCRYPT"
79 #else
80 #define _GCRYPT_FEATURE_ "-GCRYPT"
81 #endif
82
83 #if HAVE_GNUTLS
84 #define _GNUTLS_FEATURE_ "+GNUTLS"
85 #else
86 #define _GNUTLS_FEATURE_ "-GNUTLS"
87 #endif
88
89 #if HAVE_ACL
90 #define _ACL_FEATURE_ "+ACL"
91 #else
92 #define _ACL_FEATURE_ "-ACL"
93 #endif
94
95 #if HAVE_XZ
96 #define _XZ_FEATURE_ "+XZ"
97 #else
98 #define _XZ_FEATURE_ "-XZ"
99 #endif
100
101 #if HAVE_LZ4
102 #define _LZ4_FEATURE_ "+LZ4"
103 #else
104 #define _LZ4_FEATURE_ "-LZ4"
105 #endif
106
107 #if HAVE_SECCOMP
108 #define _SECCOMP_FEATURE_ "+SECCOMP"
109 #else
110 #define _SECCOMP_FEATURE_ "-SECCOMP"
111 #endif
112
113 #if HAVE_BLKID
114 #define _BLKID_FEATURE_ "+BLKID"
115 #else
116 #define _BLKID_FEATURE_ "-BLKID"
117 #endif
118
119 #if HAVE_ELFUTILS
120 #define _ELFUTILS_FEATURE_ "+ELFUTILS"
121 #else
122 #define _ELFUTILS_FEATURE_ "-ELFUTILS"
123 #endif
124
125 #if HAVE_KMOD
126 #define _KMOD_FEATURE_ "+KMOD"
127 #else
128 #define _KMOD_FEATURE_ "-KMOD"
129 #endif
130
131 #if HAVE_LIBIDN2
132 #define _IDN2_FEATURE_ "+IDN2"
133 #else
134 #define _IDN2_FEATURE_ "-IDN2"
135 #endif
136
137 #if HAVE_LIBIDN
138 #define _IDN_FEATURE_ "+IDN"
139 #else
140 #define _IDN_FEATURE_ "-IDN"
141 #endif
142
143 #define _CGROUP_HIEARCHY_ "default-hierarchy=" DEFAULT_HIERARCHY_NAME
144
145 #define SYSTEMD_FEATURES \
146 _PAM_FEATURE_ " " \
147 _AUDIT_FEATURE_ " " \
148 _SELINUX_FEATURE_ " " \
149 _IMA_FEATURE_ " " \
150 _APPARMOR_FEATURE_ " " \
151 _SMACK_FEATURE_ " " \
152 _SYSVINIT_FEATURE_ " " \
153 _UTMP_FEATURE_ " " \
154 _LIBCRYPTSETUP_FEATURE_ " " \
155 _GCRYPT_FEATURE_ " " \
156 _GNUTLS_FEATURE_ " " \
157 _ACL_FEATURE_ " " \
158 _XZ_FEATURE_ " " \
159 _LZ4_FEATURE_ " " \
160 _SECCOMP_FEATURE_ " " \
161 _BLKID_FEATURE_ " " \
162 _ELFUTILS_FEATURE_ " " \
163 _KMOD_FEATURE_ " " \
164 _IDN2_FEATURE_ " " \
165 _IDN_FEATURE_ " " \
166 _CGROUP_HIEARCHY_