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