chiark / gitweb /
Add support for building elogind against musl libc
[elogind.git] / src / basic / build.h
1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
3 #pragma once
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
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
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
18   Lesser General Public License for more details.
19
20   You should have received a copy of the GNU Lesser General Public License
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
30 #ifdef HAVE_SELINUX
31 #define _SELINUX_FEATURE_ "+SELINUX"
32 #else
33 #define _SELINUX_FEATURE_ "-SELINUX"
34 #endif
35
36 #ifdef HAVE_SMACK
37 #define _SMACK_FEATURE_ "+SMACK"
38 #else
39 #define _SMACK_FEATURE_ "-SMACK"
40 #endif
41
42 #ifdef HAVE_ACL
43 #define _ACL_FEATURE_ "+ACL"
44 #else
45 #define _ACL_FEATURE_ "-ACL"
46 #endif
47
48 #define SYSTEMD_FEATURES                                                \
49         _PAM_FEATURE_ " "                                               \
50         _SELINUX_FEATURE_ " "                                           \
51         _SMACK_FEATURE_ " "                                             \
52         _ACL_FEATURE_ " "