]>
Commit | Line | Data |
---|---|---|
f756a350 | 1 | AC_PREREQ([2.69]) |
5e97c3fc | 2 | |
c40aa8c8 | 3 | m4_define([lxc_devel], 1) |
a8565bb4 SG |
4 | m4_define([lxc_version_major], 4) |
5 | m4_define([lxc_version_minor], 0) | |
6 | m4_define([lxc_version_micro], 0) | |
5b66b6ee | 7 | m4_define([lxc_version_beta], []) |
26419a7a SG |
8 | |
9 | m4_define([lxc_abi_major], 1) | |
a8565bb4 | 10 | m4_define([lxc_abi_minor], 7) |
26419a7a SG |
11 | m4_define([lxc_abi_micro], 0) |
12 | m4_define([lxc_abi], [lxc_abi_major.lxc_abi_minor.lxc_abi_micro]) | |
9588a6ce SH |
13 | |
14 | m4_define([lxc_version_base], [lxc_version_major.lxc_version_minor.lxc_version_micro]) | |
15 | m4_define([lxc_version], | |
8465a7f4 | 16 | [ifelse(lxc_devel, 1, |
5f98011c SG |
17 | ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta])-devel, |
18 | ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta]))]) | |
9588a6ce | 19 | |
d12860c0 | 20 | AC_INIT([lxc],[lxc_version]) |
ddb93593 SG |
21 | |
22 | # We need pkg-config | |
23 | PKG_PROG_PKG_CONFIG | |
24 | ||
9588a6ce SH |
25 | AC_SUBST(LXC_VERSION_BASE, lxc_version_base) |
26 | AC_SUBST(LXC_VERSION_BETA, lxc_version_beta) | |
5e97c3fc | 27 | |
a22185dd ÇO |
28 | AC_SUBST([LXC_VERSION_MAJOR], [lxc_version_major]) |
29 | AC_SUBST([LXC_VERSION_MINOR], [lxc_version_minor]) | |
30 | AC_SUBST([LXC_VERSION_MICRO], [lxc_version_micro]) | |
31 | AC_SUBST([LXC_VERSION], [lxc_version]) | |
d2d6b991 | 32 | AC_SUBST([LXC_DEVEL], [lxc_devel]) |
a22185dd | 33 | |
26419a7a SG |
34 | AC_SUBST([LXC_ABI_MAJOR], [lxc_abi_major]) |
35 | AC_SUBST([LXC_ABI_MINOR], [lxc_abi_minor]) | |
36 | AC_SUBST([LXC_ABI_MICRO], [lxc_abi_micro]) | |
37 | AC_SUBST([LXC_ABI], [lxc_abi]) | |
38 | ||
f8dafdbb | 39 | AC_CONFIG_SRCDIR([configure.ac]) |
5e97c3fc | 40 | AC_CONFIG_AUX_DIR([config]) |
067cfaeb | 41 | AC_CONFIG_HEADERS([src/config.h]) |
d007f8ab | 42 | AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects]) |
5e97c3fc | 43 | AC_CANONICAL_HOST |
5e97c3fc | 44 | AM_PROG_CC_C_O |
d12860c0 | 45 | AC_USE_SYSTEM_EXTENSIONS |
1aaf81c3 | 46 | AC_SYS_LARGEFILE |
5c8f9bd8 | 47 | |
9b5724cd CB |
48 | # Test if we have a new enough compiler. |
49 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | |
50 | #define GCC_VERSION \ | |
51 | (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) | |
52 | ||
53 | #define CLANG_VERSION \ | |
54 | (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__) | |
55 | ||
218e8144 | 56 | #if GCC_VERSION < 40700 && CLANG_VERSION < 10000 |
9b5724cd CB |
57 | #error Sorry, your compiler is too old - please upgrade it |
58 | #endif | |
59 | ]])], [valid_compiler=yes], [valid_compiler=no]) | |
60 | if test "x$valid_compiler" = "xno"; then | |
61 | AC_MSG_ERROR([Sorry, your compiler is too old - please upgrade it]) | |
62 | fi | |
63 | ||
26419a7a SG |
64 | # libtool |
65 | LT_INIT | |
66 | AC_SUBST([LIBTOOL_DEPS]) | |
67 | ||
8aa4885c SG |
68 | # Detect the distribution. This is used for the default configuration and |
69 | # for some distro-specific build options. | |
6f75ba0b | 70 | AC_MSG_CHECKING([host distribution]) |
b195038d | 71 | AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, redhatenterpriseserver, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, plamo, paldo, openmandriva, pardus, sparclinux, altlinux.])) |
5a15791e | 72 | if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then |
6f75ba0b | 73 | with_distro=`lsb_release -is` |
be2e4e54 | 74 | fi |
6f75ba0b DE |
75 | if test "z$with_distro" = "z"; then |
76 | AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat") | |
77 | AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle") | |
beabd0a2 | 78 | AC_CHECK_FILE(/etc/sparclinux-release,with_distro="sparclinux") |
164105f6 | 79 | AC_CHECK_FILE(/etc/centos-release,with_distro="centos") |
6f75ba0b DE |
80 | AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora") |
81 | AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse") | |
82 | AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo") | |
83 | AC_CHECK_FILE(/etc/debian_version,with_distro="debian") | |
84 | AC_CHECK_FILE(/etc/arch-release,with_distro="arch") | |
85 | AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware") | |
af2d9fad | 86 | AC_CHECK_FILE(/etc/plamo-version,with_distro="plamo") |
6f75ba0b | 87 | AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware") |
6e7e54d9 AK |
88 | AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva") |
89 | AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva") | |
6f75ba0b | 90 | AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus") |
5c60f990 | 91 | AC_CHECK_FILE(/etc/altlinux-release,with_distro="altlinux") |
487ea5f6 | 92 | AC_CHECK_FILE(/etc/pld-release,with_distro="pld") |
6f75ba0b DE |
93 | fi |
94 | with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'` | |
95 | ||
beabd0a2 WC |
96 | if test "z$with_distro" = "zforsparc"; then |
97 | with_distro="sparclinux" | |
98 | fi | |
99 | ||
6f75ba0b DE |
100 | if test "z$with_distro" = "z"; then |
101 | with_distro="unknown" | |
102 | fi | |
103 | case $with_distro in | |
1c1bb85a | 104 | ubuntu|raspbian) |
0af99319 MW |
105 | distroconf=default.conf.lxcbr |
106 | distrosysconf="$sysconfdir/default" | |
6f75ba0b | 107 | ;; |
b195038d | 108 | redhat|redhatenterpriseserver|centos|fedora|oracle|oracleserver|sparclinux|altlinux|suse|opensuse*|plamo|pld) |
0af99319 MW |
109 | distroconf=default.conf.lxcbr |
110 | distrosysconf="$sysconfdir/sysconfig" | |
6f75ba0b DE |
111 | ;; |
112 | *) | |
3a647d58 | 113 | distroconf=default.conf.unknown |
0af99319 | 114 | distrosysconf="$sysconfdir/default" |
6f75ba0b DE |
115 | ;; |
116 | esac | |
117 | AC_MSG_RESULT([$with_distro]) | |
1c1bb85a | 118 | AM_CONDITIONAL([HAVE_DEBIAN], [test x"$with_distro" = "xdebian" -o x"$with_distro" = "xubuntu" -o x"$with_distro" = "xraspbian"]) |
025f59ab | 119 | AM_CONDITIONAL([DISTRO_UBUNTU], [test "x$with_distro" = "xubuntu"]) |
be2e4e54 | 120 | |
d79067a7 DM |
121 | AC_CONFIG_LINKS([config/etc/default.conf:config/etc/${distroconf}]) |
122 | ||
420dfb59 DE |
123 | # Check for init system type |
124 | AC_MSG_CHECKING([for init system type]) | |
125 | AC_ARG_WITH([init-script], | |
f756a350 | 126 | [AS_HELP_STRING([--with-init-script@<:@=TYPE@<:@,TYPE,...@:>@@:>@], |
dc068290 | 127 | [Type(s) of init script to install: sysvinit, systemd, upstart, |
89f79f6b | 128 | distro @<:@default=distro@:>@])],[],[with_init_script=distro]) |
420dfb59 | 129 | case "$with_init_script" in |
420dfb59 DE |
130 | distro) |
131 | case $with_distro in | |
5c60f990 | 132 | fedora|altlinux|opensuse*) |
420dfb59 DE |
133 | init_script=systemd |
134 | ;; | |
b195038d | 135 | redhat|redhatenterpriseserver|oracle|oracleserver|sparclinux|plamo) |
dc068290 | 136 | init_script=sysvinit |
420dfb59 | 137 | ;; |
234f9815 | 138 | centos) |
139 | init_script=sysvinit,systemd | |
140 | ;; | |
82b47911 | 141 | debian|raspbian|ubuntu) |
882ab607 | 142 | init_script=upstart,systemd |
420dfb59 | 143 | ;; |
487ea5f6 ER |
144 | pld) |
145 | init_script=sysvinit,upstart,systemd | |
146 | ;; | |
420dfb59 | 147 | *) |
dc068290 SG |
148 | echo -n "Linux distribution init system unknown." |
149 | init_script= | |
420dfb59 DE |
150 | ;; |
151 | esac | |
152 | ;; | |
153 | *) | |
89f79f6b | 154 | init_script=$with_init_script |
420dfb59 DE |
155 | ;; |
156 | esac | |
89f79f6b DE |
157 | |
158 | # Check valid init systems were given, run in subshell so we don't mess up IFS | |
159 | (IFS="," ; for init_sys in $init_script; | |
160 | do | |
161 | case "$init_sys" in | |
dc068290 | 162 | none|sysvinit|systemd|upstart) |
89f79f6b DE |
163 | ;; |
164 | *) | |
165 | exit 1 | |
166 | ;; | |
167 | esac | |
168 | done) || AC_MSG_ERROR([Unknown init system type in $init_script]) | |
169 | ||
dc068290 | 170 | AM_CONDITIONAL([INIT_SCRIPT_SYSV], [echo "$init_script" |grep -q "sysvinit"]) |
89f79f6b DE |
171 | AM_CONDITIONAL([INIT_SCRIPT_SYSTEMD], [echo "$init_script" |grep -q "systemd"]) |
172 | AM_CONDITIONAL([INIT_SCRIPT_UPSTART], [echo "$init_script" |grep -q "upstart"]) | |
420dfb59 DE |
173 | AC_MSG_RESULT($init_script) |
174 | ||
213b0fe0 MP |
175 | # systemd unit dir |
176 | AC_ARG_WITH([systemdsystemunitdir], | |
b2963bf9 CS |
177 | AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), |
178 | [with_systemdsystemunitdir=$withval], | |
179 | [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) | |
213b0fe0 MP |
180 | if test -z "$with_systemdsystemunitdir"; then |
181 | with_systemdsystemunitdir=/lib/systemd/system | |
182 | fi | |
183 | if test "x$with_systemdsystemunitdir" != "xno"; then | |
184 | AC_SUBST([SYSTEMD_UNIT_DIR], [$with_systemdsystemunitdir]) | |
185 | fi | |
186 | ||
e9f34eb4 | 187 | AC_ARG_ENABLE([werror], |
b2963bf9 CS |
188 | [AS_HELP_STRING([--disable-werror], [do not treat warnings as errors])], |
189 | [enable_werror=$enableval], [enable_werror=yes]) | |
e9f34eb4 | 190 | |
8aa4885c | 191 | # Allow disabling rpath |
1c41ddcb | 192 | AC_ARG_ENABLE([rpath], |
f756a350 | 193 | [AS_HELP_STRING([--enable-rpath], [set rpath in executables [default=no]])], |
b2963bf9 | 194 | [enable_rpath=$enableval], [enable_rpath=no]) |
1c41ddcb GK |
195 | AM_CONDITIONAL([ENABLE_RPATH], [test "x$enable_rpath" = "xyes"]) |
196 | ||
8aa4885c | 197 | # Documentation (manpages) |
5c8f9bd8 | 198 | AC_ARG_ENABLE([doc], |
f756a350 | 199 | [AS_HELP_STRING([--enable-doc], [make man pages [default=auto]])], |
b2963bf9 | 200 | [enable_doc=$enableval], [enable_doc=auto]) |
5c8f9bd8 AN |
201 | |
202 | if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then | |
7822022c | 203 | db2xman="" |
487ea5f6 | 204 | dbparsers="docbook2X2man docbook2x-man db2x_docbook2man docbook2man docbook-to-man" |
69fe23ff | 205 | |
7822022c | 206 | AC_MSG_CHECKING(for docbook2x-man) |
69fe23ff | 207 | for name in ${dbparsers}; do |
7822022c SG |
208 | if "$name" --help >/dev/null 2>&1; then |
209 | db2xman="$name" | |
210 | break; | |
211 | fi | |
212 | done | |
213 | ||
214 | if test -n "${db2xman}"; then | |
8aa4885c | 215 | AC_MSG_RESULT([${db2xman}]) |
f91d5e4e | 216 | enable_doc="yes" |
7822022c | 217 | else |
8aa4885c | 218 | AC_MSG_RESULT([no]) |
7822022c | 219 | if test "x$enable_doc" = "xyes"; then |
f91d5e4e | 220 | AC_MSG_ERROR([docbook2x-man is required, but could not be found]) |
7822022c | 221 | fi |
f91d5e4e | 222 | enable_doc="no" |
7822022c SG |
223 | fi |
224 | ||
225 | AC_SUBST(db2xman) | |
5c8f9bd8 | 226 | fi |
8aa4885c | 227 | AM_CONDITIONAL([ENABLE_DOCBOOK], [test "x$db2xman" != "x"]) |
7cb14f34 | 228 | AM_CONDITIONAL([USE_DOCBOOK2X], [test "x$db2xman" != "xdocbook2man"]) |
5c8f9bd8 | 229 | |
7f951458 DE |
230 | if test "x$db2xman" = "xdocbook2man"; then |
231 | docdtd="\"-//Davenport//DTD DocBook V3.0//EN\"" | |
232 | else | |
233 | docdtd="\"-//OASIS//DTD DocBook XML\" \"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\"" | |
234 | fi | |
235 | AC_SUBST(docdtd) | |
236 | ||
953e611c JH |
237 | # Documentation (API) |
238 | AC_ARG_ENABLE([api-docs], | |
b2963bf9 CS |
239 | [AS_HELP_STRING([--enable-api-docs], [make API documentation [default=auto]])], |
240 | [enable_api_docs=$enableval], [enable_api_docs=auto]) | |
953e611c JH |
241 | |
242 | if test "x$enable_api_docs" = "xyes" -o "x$enable_api_docs" = "xauto"; then | |
f91d5e4e SG |
243 | AC_CHECK_PROGS([HAVE_DOXYGEN],[doxygen]) |
244 | AC_SUBST([HAVE_DOXYGEN]) | |
245 | ||
246 | if test "x$HAVE_DOXYGEN" != "x"; then | |
247 | enable_api_docs="yes" | |
248 | else | |
249 | if test "x$enable_api_docs" = "xyes"; then | |
250 | AC_MSG_ERROR([doxygen is required, but could not be found]) | |
251 | fi | |
252 | enable_api_docs="no" | |
253 | fi | |
953e611c JH |
254 | fi |
255 | ||
f91d5e4e | 256 | AM_CONDITIONAL([ENABLE_API_DOCS], [test "x$HAVE_DOXYGEN" != "x"]) |
953e611c | 257 | |
fa2bb6ba SH |
258 | AC_CONFIG_MACRO_DIRS([config]) |
259 | ||
8aa4885c | 260 | # Apparmor |
e767dd55 | 261 | AC_ARG_ENABLE([apparmor], |
f756a350 | 262 | [AS_HELP_STRING([--enable-apparmor], [enable apparmor support [default=auto]])], |
b2963bf9 | 263 | [enable_apparmor=$enableval], [enable_apparmor=auto]) |
e767dd55 | 264 | |
f91d5e4e | 265 | if test "$enable_apparmor" = "auto" ; then |
e767dd55 SH |
266 | AC_CHECK_LIB([apparmor],[aa_change_profile],[enable_apparmor=yes], [enable_apparmor=no]) |
267 | fi | |
e767dd55 SH |
268 | AM_CONDITIONAL([ENABLE_APPARMOR], [test "x$enable_apparmor" = "xyes"]) |
269 | ||
fa2bb6ba SH |
270 | # OpenSSL |
271 | # libssl-dev | |
272 | AC_ARG_ENABLE([openssl], | |
f756a350 | 273 | [AS_HELP_STRING([--enable-openssl], [enable OpenSSL support [default=auto]])], |
b2963bf9 | 274 | [enable_openssl=$enableval], [enable_openssl=auto]) |
fa2bb6ba SH |
275 | |
276 | if test "$enable_openssl" = "auto" ; then | |
277 | AC_CHECK_LIB([ssl], [OPENSSL_init_ssl], [enable_openssl=yes], [enable_openssl=no]) | |
c8601571 | 278 | |
c8601571 | 279 | fi |
fa2bb6ba | 280 | AM_CONDITIONAL([ENABLE_OPENSSL], [test "x$enable_openssl" = "xyes"]) |
c8601571 | 281 | |
014a65ef CB |
282 | AC_ARG_ENABLE([static-binaries], |
283 | [AS_HELP_STRING([--enable-static-binaries], [build all binaries statically [default=no]])], | |
284 | [enable_static_binaries=$enableval], [enable_static_binaries=no]) | |
285 | AM_CONDITIONAL([ENABLE_STATIC_BINARIES], [test "x$enable_static_binaries" = "xyes"]) | |
286 | ||
fa2bb6ba SH |
287 | AM_COND_IF([ENABLE_OPENSSL], |
288 | [AC_CHECK_HEADER([openssl/engine.h],[],[AC_MSG_ERROR([You must install the OpenSSL development package in order to compile lxc])]) | |
014a65ef | 289 | AM_COND_IF([ENABLE_STATIC_BINARIES], [AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto -ldl')], [AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto')])]) |
c8601571 | 290 | |
fe4de9a6 DE |
291 | # SELinux |
292 | AC_ARG_ENABLE([selinux], | |
f756a350 | 293 | [AS_HELP_STRING([--enable-selinux], [enable SELinux support [default=auto]])], |
b2963bf9 | 294 | [enable_selinux=$enableval], [enable_selinux=auto]) |
fe4de9a6 | 295 | |
f91d5e4e | 296 | if test "x$enable_selinux" = xauto; then |
fe4de9a6 DE |
297 | AC_CHECK_LIB([selinux],[setexeccon_raw],[enable_selinux=yes],[enable_selinux=no]) |
298 | fi | |
299 | AM_CONDITIONAL([ENABLE_SELINUX], [test "x$enable_selinux" = "xyes"]) | |
300 | AM_COND_IF([ENABLE_SELINUX], | |
301 | [AC_CHECK_HEADER([selinux/selinux.h],[],[AC_MSG_ERROR([You must install the SELinux development package in order to compile lxc])]) | |
e9aeeade DE |
302 | AC_CHECK_LIB([selinux], [setexeccon_raw],[true],[AC_MSG_ERROR([You must install the SELinux development package in order to compile lxc])]) |
303 | AC_SUBST([SELINUX_LIBS], [-lselinux])]) | |
fe4de9a6 | 304 | |
8aa4885c | 305 | # Seccomp syscall filter |
e767dd55 | 306 | AC_ARG_ENABLE([seccomp], |
f756a350 | 307 | [AS_HELP_STRING([--enable-seccomp], [enable seccomp support [default=auto]])], |
b2963bf9 | 308 | [enable_seccomp=$enableval], [enable_seccomp=auto]) |
e767dd55 | 309 | |
f91d5e4e | 310 | if test "x$enable_seccomp" = "xauto" ; then |
e767dd55 SH |
311 | AC_CHECK_LIB([seccomp],[seccomp_init],[enable_seccomp=yes],[enable_seccomp=no]) |
312 | fi | |
e767dd55 SH |
313 | AM_CONDITIONAL([ENABLE_SECCOMP], [test "x$enable_seccomp" = "xyes"]) |
314 | ||
8f2c3a70 | 315 | AM_COND_IF([ENABLE_SECCOMP], |
12dcc892 JS |
316 | [PKG_CHECK_MODULES([SECCOMP],[libseccomp],[],[ |
317 | AC_CHECK_HEADER([seccomp.h],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])]) | |
318 | AC_CHECK_LIB([seccomp], [seccomp_init],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])]) | |
319 | AC_SUBST([SECCOMP_LIBS], [-lseccomp]) | |
320 | ]) | |
67cd8bde EQ |
321 | # HAVE_SCMP_FILTER_CTX=1 will tell us we have libseccomp api >= 1.0.0 |
322 | OLD_CFLAGS="$CFLAGS" | |
323 | CFLAGS="$CFLAGS $SECCOMP_CFLAGS" | |
324 | AC_CHECK_TYPES([scmp_filter_ctx], [], [], [[#include <seccomp.h>]]) | |
325 | AC_CHECK_DECLS([seccomp_notify_fd], [], [], [[#include <seccomp.h>]]) | |
326 | AC_CHECK_TYPES([struct seccomp_notif_sizes], [], [], [[#include <seccomp.h>]]) | |
327 | AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [], [], [[#include <seccomp.h>]]) | |
328 | CFLAGS="$OLD_CFLAGS" | |
12dcc892 | 329 | ]) |
8f2c3a70 | 330 | |
c06ed219 | 331 | AC_MSG_CHECKING(for static libcap) |
e78884c9 DE |
332 | # Check for static libcap, make sure the function checked for differs from the |
333 | # the one checked below so the cache doesn't give a wrong answer | |
334 | OLD_CFLAGS="$CFLAGS" | |
c06ed219 SH |
335 | OLD_CPPFLAGS="$CPPFLAGS" |
336 | OLD_LDFLAGS="$LDFLAGS" | |
337 | OLD_LIBS="$LIBS" | |
338 | CFLAGS="" | |
339 | CPPFLAGS="" | |
340 | LDFLAGS="-static" | |
341 | LIBS="-lcap" | |
342 | AC_LINK_IFELSE([ | |
343 | AC_LANG_SOURCE( | |
344 | [[int main() { return 0; }]] | |
345 | )],[have_static_libcap=yes],[have_static_libcap=no]) | |
e78884c9 DE |
346 | AM_CONDITIONAL([HAVE_STATIC_LIBCAP], [test "x$have_static_libcap" = "xyes"]) |
347 | if test "x$have_static_libcap" = "xyes"; then | |
348 | AC_DEFINE([HAVE_STATIC_LIBCAP], 1, [Have static libcap]) | |
c06ed219 SH |
349 | AC_MSG_RESULT([yes]) |
350 | else | |
351 | AC_MSG_RESULT([no]) | |
e78884c9 | 352 | fi |
c06ed219 | 353 | CPPFLAGS="$OLD_CPPFLAGS" |
e78884c9 | 354 | CFLAGS="$OLD_CFLAGS" |
c06ed219 SH |
355 | LDFLAGS="$OLD_LDFLAGS" |
356 | LIBS="$OLD_LIBS" | |
e78884c9 DE |
357 | |
358 | ||
f91d5e4e SG |
359 | # Linux capabilities |
360 | AC_ARG_ENABLE([capabilities], | |
f756a350 | 361 | [AS_HELP_STRING([--enable-capabilities], [enable kernel capabilities support [default=auto]])], |
b2963bf9 | 362 | [enable_capabilities=$enableval], [enable_capabilities=auto]) |
f91d5e4e SG |
363 | |
364 | if test "x$enable_capabilities" = "xauto"; then | |
365 | AC_CHECK_LIB([cap],[cap_set_proc],[enable_capabilities=yes],[enable_capabilities=no]) | |
366 | fi | |
367 | AM_CONDITIONAL([ENABLE_CAP], [test "x$enable_capabilities" = "xyes"]) | |
368 | ||
369 | AM_COND_IF([ENABLE_CAP], | |
e37dda71 FF |
370 | [AC_CHECK_HEADER([sys/capability.h],[],[AC_MSG_ERROR([You must install the libcap development package in order to compile lxc])]) |
371 | AC_CHECK_LIB(cap,cap_set_proc,[],[AC_MSG_ERROR([You must install the libcap development package in order to compile lxc])]) | |
69924fff CB |
372 | # Test whether we support getting file capabilities via cap_get_file(). |
373 | AC_CHECK_LIB(cap,cap_get_file, AC_DEFINE(LIBCAP_SUPPORTS_FILE_CAPABILITIES,1,[Have cap_get_file]),[],[]) | |
374 | AC_SUBST([CAP_LIBS], [-lcap])]) | |
f91d5e4e | 375 | |
bf651989 CB |
376 | AC_CHECK_HEADERS([linux/bpf.h], [ |
377 | AC_CHECK_TYPES([struct bpf_cgroup_dev_ctx], [], [], [[#include <linux/bpf.h>]]) | |
378 | ], [], []) | |
379 | ||
8aa4885c | 380 | # Configuration examples |
3fb0a9bb | 381 | AC_ARG_ENABLE([examples], |
f756a350 | 382 | [AS_HELP_STRING([--enable-examples], [install examples [default=yes]])], |
b2963bf9 | 383 | [enable_examples=$enableval], [enable_examples=yes]) |
3fb0a9bb AN |
384 | AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"]) |
385 | ||
052616eb ÇO |
386 | # Enable dumping stack traces |
387 | AC_ARG_ENABLE([mutex-debugging], | |
f756a350 | 388 | [AS_HELP_STRING([--enable-mutex-debugging], [Makes mutexes to report error and provide stack trace [default=no]])], |
b2963bf9 | 389 | [enable_mutex_debugging=$enableval], [enable_mutex_debugging=no]) |
052616eb ÇO |
390 | AM_CONDITIONAL([MUTEX_DEBUGGING], [test "x$enable_mutex_debugging" = "xyes"]) |
391 | ||
392 | AM_COND_IF([MUTEX_DEBUGGING], | |
393 | AC_DEFINE_UNQUOTED([MUTEX_DEBUGGING], 1, [Enabling mutex debugging])) | |
394 | ||
3a1675bf DE |
395 | # Not in older autoconf versions |
396 | # AS_VAR_COPY(DEST, SOURCE) | |
397 | # ------------------------- | |
398 | # Set the polymorphic shell variable DEST to the contents of the polymorphic | |
399 | # shell variable SOURCE. | |
400 | m4_ifdef([AS_VAR_COPY], [], | |
401 | [AC_DEFUN([AS_VAR_COPY], | |
402 | [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])]) | |
403 | ]) | |
404 | ||
12e93188 NC |
405 | dnl PKG_CHECK_VAR was introduced with pkg-config 0.28 |
406 | m4_ifdef([PKG_CHECK_VAR], [], | |
407 | [AC_DEFUN([PKG_CHECK_VAR], | |
408 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
409 | AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl | |
410 | _PKG_CONFIG([$1], [variable="][$3]["], [$2]) | |
411 | AS_VAR_COPY([$1], [pkg_cv_][$1]) | |
412 | AS_VAR_IF([$1], [""], [$5], [$4])dnl | |
413 | ])# PKG_CHECK_VAR | |
414 | ]) | |
f080ffd7 | 415 | |
0306de4f SG |
416 | # Optional bash integration |
417 | AC_ARG_ENABLE([bash], | |
f756a350 | 418 | [AS_HELP_STRING([--enable-bash], [build bash integration [default=yes]])], |
b2963bf9 | 419 | [enable_bash=$enableval], [enable_bash=yes]) |
0306de4f SG |
420 | AM_CONDITIONAL([ENABLE_BASH], [test "x$enable_bash" = "xyes"]) |
421 | ||
23f4c8a0 EG |
422 | AM_COND_IF([ENABLE_BASH], |
423 | [AC_MSG_CHECKING([bash completion directory]) | |
424 | PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], , | |
425 | bashcompdir="${sysconfdir}/bash_completion.d") | |
426 | AC_MSG_RESULT([$bashcompdir]) | |
427 | AC_SUBST(bashcompdir) | |
428 | ]) | |
429 | ||
8d060937 CB |
430 | # Build the command line tools |
431 | AC_ARG_ENABLE([tools], | |
f756a350 | 432 | [AS_HELP_STRING([--enable-tools], [build the command line tools [default=yes]])], |
b2963bf9 | 433 | [enable_tools=$enableval], [enable_tools=yes]) |
8d060937 CB |
434 | AM_CONDITIONAL([ENABLE_TOOLS], [test "x$enable_tools" = "xyes"]) |
435 | ||
436 | # Build the liblxc commands | |
437 | AC_ARG_ENABLE([commands], | |
f756a350 | 438 | [AS_HELP_STRING([--enable-commands], [build the liblxc commands [default=yes]])], |
b2963bf9 | 439 | [enable_commands=$enableval], [enable_commands=yes]) |
8d060937 CB |
440 | AM_CONDITIONAL([ENABLE_COMMANDS], [test "x$enable_commands" = "xyes"]) |
441 | ||
014a65ef CB |
442 | AC_ARG_ENABLE([static-binaries], |
443 | [AS_HELP_STRING([--enable-static-binaries], [build all binaries statically [default=no]])], | |
444 | [enable_static_binaries=$enableval], [enable_static_binaries=no]) | |
445 | AM_CONDITIONAL([ENABLE_STATIC_BINARIES], [test "x$enable_static_binaries" = "xyes"]) | |
446 | ||
565c4427 CB |
447 | # Build with ASAN commands |
448 | AC_ARG_ENABLE([asan], | |
f756a350 | 449 | [AS_HELP_STRING([--enable-asan], [build with address sanitizer enabled [default=no]])], |
b2963bf9 | 450 | [enable_asan=$enableval], [enable_asan=no]) |
565c4427 CB |
451 | AM_CONDITIONAL([ENABLE_ASAN], [test "x$enable_asan" = "xyes"]) |
452 | ||
384db5d7 CB |
453 | # Build with UBSAN commands |
454 | AC_ARG_ENABLE([ubsan], | |
455 | [AS_HELP_STRING([--enable-ubsan], [build with ubsan sanitizer enabled [default=no]])], | |
456 | [enable_asan=$enableval], [enable_ubsan=no]) | |
457 | AM_CONDITIONAL([ENABLE_UBSAN], [test "x$enable_ubsan" = "xyes"]) | |
458 | ||
8aa4885c | 459 | # Optional test binaries |
525421c9 | 460 | AC_ARG_ENABLE([tests], |
f756a350 | 461 | [AS_HELP_STRING([--enable-tests], [build test/example binaries [default=no]])], |
b2963bf9 | 462 | [enable_tests=$enableval], [enable_tests=no]) |
525421c9 SG |
463 | AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = "xyes"]) |
464 | ||
061ba5d0 SG |
465 | # Allow overriding the default runtime dir (/run) |
466 | AC_ARG_WITH([runtime-path], | |
b2963bf9 CS |
467 | [AS_HELP_STRING([--with-runtime-path=dir], [runtime directory (default: /run)])], |
468 | [with_runtime_path=$withval], [with_runtime_path=['/run']]) | |
061ba5d0 | 469 | |
8aa4885c | 470 | # LXC container path, where the containers are actually stored |
fbf5de31 | 471 | # This is overridden by an entry in the file called LXCCONF |
2a59a681 | 472 | # (i.e. /etc/lxc/lxc.conf) |
aef4ebcf | 473 | AC_ARG_WITH([config-path], |
b2963bf9 CS |
474 | [AS_HELP_STRING([--with-config-path=dir], [lxc configuration repository path])], |
475 | [with_config_path=$withval], [with_config_path=['${localstatedir}/lib/lxc']]) | |
aef4ebcf | 476 | |
2a59a681 SH |
477 | # The path of the global lxc configuration file. |
478 | AC_ARG_WITH([global-conf], | |
b2963bf9 CS |
479 | [AS_HELP_STRING([--with-global-conf=dir], [global lxc configuration file])], |
480 | [with_global_conf=$withval], [with_global_conf=['${sysconfdir}/lxc/lxc.conf']]) | |
2a59a681 | 481 | |
c75c30ec | 482 | # The path of the userns network configuration file |
070a4b8e | 483 | AC_ARG_WITH([usernic-conf], |
b2963bf9 CS |
484 | [AS_HELP_STRING([--with-usernic-conf], [user network interface configuration file])], |
485 | [with_usernic_conf=$withval], [with_usernic_conf=['${sysconfdir}/lxc/lxc-usernet']]) | |
070a4b8e | 486 | |
c75c30ec | 487 | # The path of the runtime usernic database |
070a4b8e | 488 | AC_ARG_WITH([usernic-db], |
b2963bf9 CS |
489 | [AS_HELP_STRING([--with-usernic-db], [lxc user nic database])], |
490 | [with_usernic_db=$withval], [with_usernic_db=['${with_runtime_path}/lxc/nics']]) | |
070a4b8e | 491 | |
8aa4885c | 492 | # Rootfs path, where the container mount structure is assembled |
196db713 | 493 | AC_ARG_WITH([rootfs-path], |
b2963bf9 CS |
494 | [AS_HELP_STRING([--with-rootfs-path=dir], [lxc rootfs mount point])], |
495 | [with_rootfs_path=$withval], [with_rootfs_path=['${libdir}/lxc/rootfs']]) | |
c75c30ec | 496 | |
6e16552d CS |
497 | # cgroup pattern specification |
498 | AC_ARG_WITH([cgroup-pattern], | |
b2963bf9 | 499 | [AS_HELP_STRING([--with-cgroup-pattern=pattern], [pattern for container cgroups])], |
b3ed2061 | 500 | [with_cgroup_pattern=$withval], [with_cgroup_pattern=['']]) |
196db713 | 501 | |
1800f924 WB |
502 | # The path for the apparmor_parser's cache for generated apparmor profiles |
503 | AC_ARG_WITH([apparmor-cache-dir], | |
b2963bf9 CS |
504 | [AS_HELP_STRING([--with-apparmor-cache-dir=dir],[path for apparmor_parser cache])], |
505 | [with_apparmor_cache_dir=$withval], [with_apparmor_cache_dir=['${localstatedir}/cache/lxc/apparmor']]) | |
1800f924 | 506 | |
5e1e7aaf SH |
507 | # Container log path. By default, use $lxcpath. |
508 | AC_MSG_CHECKING([Whether to place logfiles in container config path]) | |
509 | AC_ARG_ENABLE([configpath-log], | |
f756a350 | 510 | [AS_HELP_STRING([--enable-configpath-log], [use logfiles in config path [default=no]])], |
b2963bf9 | 511 | [enable_configpath_log=$enableval], [enable_configpath_log=no]) |
f91d5e4e SG |
512 | AC_MSG_RESULT([$enable_configpath_log]) |
513 | AM_CONDITIONAL([USE_CONFIGPATH_LOGS], [test "$enable_configpath_log" = "yes"]) | |
5e1e7aaf | 514 | |
f91d5e4e | 515 | if test "$enable_configpath_log" = "yes"; then |
5e1e7aaf SH |
516 | default_log_path="${with_config_path}" |
517 | else | |
89d556d8 | 518 | default_log_path="${localstatedir}/log/lxc" |
5e1e7aaf SH |
519 | fi |
520 | ||
521 | AC_ARG_WITH([log-path], | |
b2963bf9 CS |
522 | [AS_HELP_STRING([--with-log-path=dir],[per container log path])], |
523 | [with_log_path=$withval], [with_log_path=['${default_log_path}']]) | |
5e1e7aaf | 524 | |
8aa4885c SG |
525 | # Expand some useful variables |
526 | AS_AC_EXPAND(PREFIX, "$prefix") | |
527 | AS_AC_EXPAND(LIBDIR, "$libdir") | |
528 | AS_AC_EXPAND(BINDIR, "$bindir") | |
718e4f48 | 529 | AS_AC_EXPAND(SBINDIR, "$sbindir") |
8aa4885c SG |
530 | AS_AC_EXPAND(LIBEXECDIR, "$libexecdir") |
531 | AS_AC_EXPAND(INCLUDEDIR, "$includedir") | |
532 | AS_AC_EXPAND(SYSCONFDIR, "$sysconfdir") | |
0a18b545 | 533 | AS_AC_EXPAND(LXC_DEFAULT_CONFIG, "$sysconfdir/lxc/default.conf") |
8aa4885c SG |
534 | AS_AC_EXPAND(DATADIR, "$datadir") |
535 | AS_AC_EXPAND(LOCALSTATEDIR, "$localstatedir") | |
536 | AS_AC_EXPAND(DOCDIR, "$docdir") | |
8d256e4d | 537 | AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)} '+%Y-%m-%d')") |
8aa4885c | 538 | AS_AC_EXPAND(LXCPATH, "$with_config_path") |
2a59a681 | 539 | AS_AC_EXPAND(LXC_GLOBAL_CONF, "$with_global_conf") |
070a4b8e SH |
540 | AS_AC_EXPAND(LXC_USERNIC_CONF, "$with_usernic_conf") |
541 | AS_AC_EXPAND(LXC_USERNIC_DB, "$with_usernic_db") | |
0af99319 | 542 | AS_AC_EXPAND(LXC_DISTRO_SYSCONF, "$distrosysconf") |
8aa4885c SG |
543 | AS_AC_EXPAND(LXCROOTFSMOUNT, "$with_rootfs_path") |
544 | AS_AC_EXPAND(LXCTEMPLATEDIR, "$datadir/lxc/templates") | |
f2a95ee1 | 545 | AS_AC_EXPAND(LXCTEMPLATECONFIG, "$datadir/lxc/config") |
906f8c4d | 546 | AS_AC_EXPAND(LXCHOOKDIR, "$datadir/lxc/hooks") |
16d08ae7 | 547 | AS_AC_EXPAND(LXCBINHOOKDIR, "$libexecdir/lxc/hooks") |
8aa4885c | 548 | AS_AC_EXPAND(LXCINITDIR, "$libexecdir") |
5e1e7aaf | 549 | AS_AC_EXPAND(LOGPATH, "$with_log_path") |
061ba5d0 | 550 | AS_AC_EXPAND(RUNTIME_PATH, "$with_runtime_path") |
1800f924 | 551 | AS_AC_EXPAND(APPARMOR_CACHE_DIR, "$with_apparmor_cache_dir") |
6e16552d | 552 | AC_SUBST(DEFAULT_CGROUP_PATTERN, ["$with_cgroup_pattern"]) |
881450bb | 553 | |
0080bebf TA |
554 | # We need the install path so criu knows where to reference the hook scripts. |
555 | AC_DEFINE_UNQUOTED([DATADIR], "$DATADIR", ["Prefix for shared files."]) | |
556 | ||
8aa4885c | 557 | # Check for some standard kernel headers |
910bb4fa | 558 | AC_CHECK_HEADERS([linux/unistd.h linux/netlink.h linux/genetlink.h], |
8aa4885c SG |
559 | [], |
560 | AC_MSG_ERROR([Please install the Linux kernel headers.]), | |
561 | [#include <sys/socket.h>]) | |
35f549fe | 562 | |
a6168a17 SG |
563 | # Check for alternate C libraries |
564 | AC_MSG_CHECKING(for bionic libc) | |
565 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( | |
8aa4885c | 566 | [[#ifndef __ANDROID__ |
a6168a17 SG |
567 | error: Not bionic! |
568 | #endif]])], | |
8aa4885c SG |
569 | [is_bionic=yes], |
570 | [is_bionic=no]) | |
a6168a17 | 571 | if test "x$is_bionic" = "xyes"; then |
8aa4885c SG |
572 | AC_DEFINE([IS_BIONIC], 1, [bionic libc]) |
573 | AC_MSG_RESULT([yes]) | |
a6168a17 | 574 | else |
8aa4885c | 575 | AC_MSG_RESULT([no]) |
a6168a17 SG |
576 | fi |
577 | AM_CONDITIONAL([IS_BIONIC], [test "x$is_bionic" = "xyes"]) | |
578 | ||
f7a8609f CB |
579 | # Configuration examples |
580 | AC_ARG_ENABLE([pam], | |
f756a350 | 581 | [AS_HELP_STRING([--enable-pam], [enable pam module [default=no]])], |
b2963bf9 | 582 | [enable_pam=$enableval], [enable_pam=no]) |
f7a8609f CB |
583 | AM_CONDITIONAL([ENABLE_PAM], [test "x$enable_pam" = "xyes"]) |
584 | ||
585 | AM_COND_IF([ENABLE_PAM], | |
586 | [AC_ARG_WITH( | |
587 | [pamdir], | |
588 | [AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored, | |
589 | or "none" if PAM modules are not to be built])], | |
b2963bf9 | 590 | [pamdir=$withval], |
f7a8609f CB |
591 | [ |
592 | if test "${prefix}" = "/usr"; then | |
593 | pamdir="/lib${libdir##*/lib}/security" | |
594 | else | |
595 | pamdir="\$(libdir)/security" | |
596 | fi | |
597 | ] | |
598 | )]) | |
7ac43d3d CB |
599 | |
600 | AM_CONDITIONAL([HAVE_PAM], [test x"$pamdir" != "xnone"]) | |
f7a8609f CB |
601 | AM_COND_IF([ENABLE_PAM], |
602 | [if test "z$pamdir" != "znone"; then | |
603 | AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam]) | |
604 | AC_ARG_VAR([PAM_LIBS], [linker flags for pam]) | |
605 | AC_CHECK_LIB( | |
606 | [pam], | |
607 | [pam_authenticate], | |
608 | [PAM_LIBS="-lpam"], | |
609 | [AC_MSG_ERROR([*** libpam not found.]) | |
610 | ]) | |
611 | ||
612 | AC_SUBST(PAM_LIBS) | |
613 | AC_SUBST([pamdir]) | |
614 | fi]) | |
7ac43d3d | 615 | |
656994bb MH |
616 | # Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP |
617 | AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>]) | |
618 | ||
955e2a02 CB |
619 | # Some systems lack PR_{G,S}ET_NO_NEW_PRIVS definition => HAVE_DECL_PR_{G,S}ET_NO_NEW_PRIVS |
620 | AC_CHECK_DECLS([PR_SET_NO_NEW_PRIVS], [], [], [#include <sys/prctl.h>]) | |
621 | AC_CHECK_DECLS([PR_GET_NO_NEW_PRIVS], [], [], [#include <sys/prctl.h>]) | |
622 | ||
e827ff7e | 623 | # Check for some headers |
8bc781b4 | 624 | AC_CHECK_HEADERS([pty.h sys/memfd.h sys/personality.h sys/resource.h sys/signalfd.h sys/timerfd.h utmpx.h]) |
d029e1de CB |
625 | |
626 | AC_CHECK_HEADER([ifaddrs.h], | |
627 | AM_CONDITIONAL(HAVE_IFADDRS_H, true) | |
628 | AC_DEFINE(HAVE_IFADDRS_H, 1, [Have ifaddrs.h]), | |
629 | AM_CONDITIONAL(HAVE_IFADDRS_H, false)) | |
ff218c25 | 630 | |
af6824fc ST |
631 | # lookup major()/minor()/makedev() |
632 | AC_HEADER_MAJOR | |
633 | ||
2d76d1d7 | 634 | # Check for some syscalls functions |
2b0c8106 CB |
635 | AC_CHECK_FUNCS([setns pivot_root sethostname unshare rand_r confstr faccessat gettid memfd_create move_mount open_tree execveat clone3 fsopen fspick fsconfig fsmount, openat2]) |
636 | AC_CHECK_TYPES([struct open_how], [], [], [[#include <linux/openat2.h>]]) | |
96086a6b CB |
637 | AC_CHECK_TYPES([struct clone_args], [], [], [[#include <linux/sched.h>]]) |
638 | AC_CHECK_MEMBERS([struct clone_args.set_tid],[],[],[[#include <linux/sched.h>]]) | |
639 | AC_CHECK_MEMBERS([struct clone_args.cgroup],[],[],[[#include <linux/sched.h>]]) | |
2d76d1d7 | 640 | |
607e3fca CB |
641 | # Check for strerror_r() support. Defines: |
642 | # - HAVE_STRERROR_R if available | |
643 | # - HAVE_DECL_STRERROR_R if defined | |
644 | # - STRERROR_R_CHAR_P if it returns char * | |
645 | AC_FUNC_STRERROR_R | |
646 | ||
720bbb31 RK |
647 | # Check if "%m" is supported by printf and Co |
648 | AC_MSG_CHECKING([%m format]) | |
d12860c0 | 649 | AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
720bbb31 RK |
650 | #include <stdio.h> |
651 | int main(void) | |
652 | { | |
653 | char msg[256]; | |
654 | int rc; | |
655 | ||
656 | rc = snprintf(msg, sizeof(msg), "%m\n"); | |
657 | if ((rc > 1) && (msg[0] != '%')) | |
658 | { | |
659 | return 0; | |
660 | } | |
661 | else | |
662 | { | |
663 | return 1; | |
664 | } | |
d12860c0 | 665 | }]])],[fmt_m=yes],[fmt_m=no],[fmt_m=no]) |
720bbb31 RK |
666 | if test "x$fmt_m" = "xyes"; then |
667 | AC_DEFINE([HAVE_M_FORMAT], 1, [Have %m format]) | |
668 | AC_MSG_RESULT([yes]) | |
669 | else | |
670 | AC_MSG_RESULT([no]) | |
671 | fi | |
672 | ||
e827ff7e | 673 | # Check for some functions |
babbea4b | 674 | AC_CHECK_LIB(pthread, main) |
614305f3 | 675 | AC_CHECK_FUNCS(statvfs) |
740ee8c7 | 676 | AC_CHECK_LIB(util, openpty) |
35eb5cdc | 677 | AC_CHECK_FUNCS([hasmntopt setmntent endmntent utmpxname]) |
477e62b6 CB |
678 | AC_CHECK_FUNCS([getgrgid_r], |
679 | AM_CONDITIONAL(HAVE_GETGRGID_R, true) | |
680 | AC_DEFINE(HAVE_GETGRGID_R,1,[Have getgrgid_r]), | |
681 | AM_CONDITIONAL(HAVE_GETGRGID_R, false)) | |
1ba0013f SG |
682 | AC_CHECK_FUNCS([getline], |
683 | AM_CONDITIONAL(HAVE_GETLINE, true) | |
684 | AC_DEFINE(HAVE_GETLINE,1,[Have getline]), | |
685 | AM_CONDITIONAL(HAVE_GETLINE, false)) | |
9dbcd668 SG |
686 | AC_CHECK_FUNCS([getsubopt], |
687 | AM_CONDITIONAL(HAVE_GETSUBOPT, true) | |
688 | AC_DEFINE(HAVE_GETSUBOPT,1,[Have getsubopt]), | |
689 | AM_CONDITIONAL(HAVE_GETSUBOPT, false)) | |
1ba0013f SG |
690 | AC_CHECK_FUNCS([fgetln], |
691 | AM_CONDITIONAL(HAVE_FGETLN, true) | |
692 | AC_DEFINE(HAVE_FGETLN,1,[Have fgetln]), | |
693 | AM_CONDITIONAL(HAVE_FGETLN, false)) | |
b25291da CB |
694 | AC_CHECK_FUNCS([keyctl], |
695 | AM_CONDITIONAL(HAVE_KEYCTL, true) | |
696 | AC_DEFINE(HAVE_KEYCTL,1,[Have keyctl]), | |
697 | AM_CONDITIONAL(HAVE_KEYCTL, false)) | |
35eb5cdc CB |
698 | AC_CHECK_FUNCS([openpty], |
699 | AM_CONDITIONAL(HAVE_OPENPTY, true) | |
700 | AC_DEFINE(HAVE_OPENPTY,1,[Have openpty]), | |
701 | AM_CONDITIONAL(HAVE_OPENPTY, false)) | |
a04f5407 CB |
702 | AC_CHECK_FUNCS([prlimit], |
703 | AM_CONDITIONAL(HAVE_PRLIMIT, true) | |
704 | AC_DEFINE(HAVE_PRLIMIT,1,[Have prlimit]), | |
705 | AM_CONDITIONAL(HAVE_PRLIMIT, false)) | |
f48b5fd8 FF |
706 | AC_CHECK_FUNCS([prlimit64], |
707 | AM_CONDITIONAL(HAVE_PRLIMIT64, true) | |
708 | AC_DEFINE(HAVE_PRLIMIT64,1,[Have prlimit64]), | |
709 | AM_CONDITIONAL(HAVE_PRLIMIT64, false)) | |
477e62b6 CB |
710 | AC_CHECK_FUNCS([pthread_setcancelstate], |
711 | AM_CONDITIONAL(HAVE_PTHREAD_SETCANCELSTATE, true) | |
712 | AC_DEFINE(HAVE_PTHREAD_SETCANCELSTATE,1,[Have pthread_setcancelstate]), | |
713 | AM_CONDITIONAL(HAVE_PTHREAD_SETCANCELSTATE, false)) | |
91c272a5 CB |
714 | AC_CHECK_FUNCS([strlcpy], |
715 | AM_CONDITIONAL(HAVE_STRLCPY, true) | |
716 | AC_DEFINE(HAVE_STRLCPY,1,[Have strlcpy]), | |
717 | AM_CONDITIONAL(HAVE_STRLCPY, false)) | |
9a5e7ac4 CB |
718 | AC_CHECK_FUNCS([strlcat], |
719 | AM_CONDITIONAL(HAVE_STRLCAT, true) | |
720 | AC_DEFINE(HAVE_STRLCAT,1,[Have strlcat]), | |
721 | AM_CONDITIONAL(HAVE_STRLCAT, false)) | |
7fa90630 CB |
722 | AC_CHECK_FUNCS([fmemopen], |
723 | AM_CONDITIONAL(HAVE_FMEMOPEN, true) | |
724 | AC_DEFINE(HAVE_FMEMOPEN,1,[Have fmemopen]), | |
725 | AM_CONDITIONAL(HAVE_FMEMOPEN, false)) | |
1ba0013f | 726 | |
da5efb6f CB |
727 | # HAVE_STRUCT_RTNL_LINK_STATS64={0,1} |
728 | AC_CHECK_TYPES([struct rtnl_link_stats64], [], [], [[#include <linux/if_link.h>]]) | |
729 | ||
c9a84173 | 730 | # Check for some libraries |
a81c46e9 | 731 | AX_PTHREAD |
336d5469 | 732 | AC_SEARCH_LIBS(clock_gettime, [rt]) |
c9a84173 | 733 | |
8aa4885c | 734 | # Check for some standard binaries |
5e97c3fc | 735 | AC_PROG_GCC_TRADITIONAL |
95a717e9 | 736 | AC_PROG_SED |
5e97c3fc | 737 | |
babbea4b ÇO |
738 | # See if we support thread-local storage. |
739 | LXC_CHECK_TLS | |
740 | ||
fb3b3ef4 | 741 | # Hardening flags |
b59bc011 CB |
742 | CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \ |
743 | -fPIE \ | |
744 | -Wvla \ | |
745 | -std=gnu11 \ | |
746 | -fms-extensions \ | |
747 | -fdiagnostics-color \ | |
748 | -Wimplicit-fallthrough=5 \ | |
749 | -Wcast-align \ | |
750 | -Wstrict-prototypes \ | |
751 | -fno-strict-aliasing \ | |
752 | -fstack-clash-protection \ | |
753 | -fstack-protector-strong \ | |
754 | --param=ssp-buffer-size=4 \ | |
755 | -g \ | |
756 | --mcet -fcf-protection \ | |
757 | -Werror=implicit-function-declaration \ | |
758 | -Wlogical-op \ | |
759 | -Wmissing-include-dirs \ | |
760 | -Wold-style-definition \ | |
761 | -Winit-self \ | |
762 | -Wunused-but-set-variable \ | |
763 | -Wfloat-equal \ | |
764 | -Wsuggest-attribute=noreturn \ | |
765 | -Werror=return-type \ | |
766 | -Werror=incompatible-pointer-types \ | |
767 | -Wformat=2 \ | |
768 | -Wshadow \ | |
769 | -Wendif-labels \ | |
770 | -Werror=overflow \ | |
771 | -fdiagnostics-show-option \ | |
772 | -Werror=shift-count-overflow \ | |
773 | -Werror=shift-overflow=2 \ | |
774 | -Wdate-time \ | |
775 | -Wnested-externs \ | |
776 | -fasynchronous-unwind-tables \ | |
777 | -pipe \ | |
778 | -fexceptions \ | |
779 | -Warray-bounds \ | |
780 | -Wrestrict \ | |
781 | -Wreturn-local-addr \ | |
782 | -flto=thin \ | |
783 | -fsanitize=cfi \ | |
784 | -Wstringop-overflow]) | |
785 | AC_SUBST(AM_CFLAGS) | |
786 | ||
787 | CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \ | |
788 | -Wl,--as-needed \ | |
789 | -Wl,--no-undefined \ | |
790 | -Wl,--gc-sections \ | |
791 | -Wl,-z,relro \ | |
792 | -Wl,-z,now \ | |
793 | -pie \ | |
794 | -Wl,-fuse-ld=gold]) | |
795 | AC_SUBST(AM_LDFLAGS) | |
e6fe24e1 | 796 | |
96086a6b | 797 | CFLAGS="$CFLAGS -Wvla -std=gnu11 -fms-extensions" |
81a56e80 | 798 | if test "x$enable_werror" = "xyes"; then |
218e8144 | 799 | CFLAGS="$CFLAGS -Werror" |
5e97c3fc | 800 | fi |
801 | ||
81c76cff | 802 | AC_ARG_ENABLE([thread-safety], |
f756a350 | 803 | [AS_HELP_STRING([--enable-thread-safety], [enforce thread-safety otherwise fail the build [default=yes]])], |
b2963bf9 | 804 | [enable_thread_safety=$enableval], [enable_thread_safety=yes]) |
81c76cff | 805 | AM_CONDITIONAL([ENFORCE_THREAD_SAFETY], [test "x$enable_thread_safety" = "xyes"]) |
538337ee CB |
806 | if test "x$enable_thread_safety" = "xyes"; then |
807 | AC_DEFINE([ENFORCE_THREAD_SAFETY], 1, [enforce thread-safety otherwise fail the build]) | |
808 | AC_MSG_RESULT([yes]) | |
809 | else | |
810 | AC_MSG_RESULT([no]) | |
811 | fi | |
81c76cff | 812 | |
64a2547c | 813 | AC_ARG_ENABLE([coverity-build], |
538337ee CB |
814 | [AS_HELP_STRING([--enable-coverity-build], [build for use with Coverity [default=no]])], |
815 | [enable_coverity_build=$enableval], [enable_coverity_build=no]) | |
64a2547c | 816 | AM_CONDITIONAL([ENABLE_COVERITY_BUILD], [test "x$enable_coverity_build" = "xyes"]) |
538337ee CB |
817 | if test "x$enable_coverity_build" = "xyes"; then |
818 | AC_DEFINE([ENABLE_COVERITY_BUILD], 1, [build for use with Coverity]) | |
819 | AC_MSG_RESULT([yes]) | |
820 | else | |
821 | AC_MSG_RESULT([no]) | |
822 | fi | |
64a2547c | 823 | |
5c7bfc02 | 824 | AC_ARG_ENABLE([dlog], |
f756a350 | 825 | [AS_HELP_STRING([--enable-dlog], [enable dlog support [default=no]])], |
b2963bf9 | 826 | [enable_dlog=$enableval], [enable_dlog=no]) |
5c7bfc02 | 827 | AM_CONDITIONAL([ENABLE_DLOG], [test "x$enable_dlog" = "xyes"]) |
828 | ||
829 | AM_COND_IF([ENABLE_DLOG], | |
830 | [PKG_CHECK_MODULES([DLOG],[dlog],[],[ | |
831 | AC_CHECK_HEADER([dlog.h],[],[AC_MSG_ERROR([You must install the dlog development package in order to compile lxc])]) | |
832 | AC_CHECK_LIB([dlog], [dlog_print],[],[AC_MSG_ERROR([You must install the dlog development package in order to compile lxc])]) | |
833 | AC_SUBST([DLOG_LIBS], [-ldlog]) | |
834 | ]) | |
835 | ]) | |
836 | ||
6400238d | 837 | AC_ARG_ENABLE([memfd-rexec], |
f756a350 | 838 | [AS_HELP_STRING([--enable-memfd-rexec], [enforce liblxc as a memfd to protect against certain symlink attacks [default=yes]])], |
b2963bf9 | 839 | [enable_memfd_rexec=$enableval], [enable_memfd_rexec=yes]) |
6400238d CB |
840 | AM_CONDITIONAL([ENFORCE_MEMFD_REXEC], [test "x$enable_memfd_rexec" = "xyes"]) |
841 | if test "x$enable_memfd_rexec" = "xyes"; then | |
842 | AC_DEFINE([ENFORCE_MEMFD_REXEC], 1, [Rexec liblxc as memfd]) | |
843 | AC_MSG_RESULT([yes]) | |
844 | else | |
845 | AC_MSG_RESULT([no]) | |
846 | fi | |
847 | ||
8aa4885c | 848 | # Files requiring some variable expansion |
5e97c3fc | 849 | AC_CONFIG_FILES([ |
288063bd | 850 | Makefile |
b6345ba1 | 851 | lxc.pc |
5e97c3fc | 852 | lxc.spec |
f2a95ee1 | 853 | |
fef909cf CB |
854 | coccinelle/Makefile |
855 | ||
288063bd | 856 | config/Makefile |
8da250da | 857 | config/apparmor/Makefile |
b19c5d12 | 858 | config/apparmor/abstractions/start-container |
719fae07 | 859 | config/selinux/Makefile |
0306de4f SG |
860 | config/bash/Makefile |
861 | config/bash/lxc | |
dc068290 | 862 | config/init/Makefile |
0af99319 MW |
863 | config/init/common/Makefile |
864 | config/init/common/lxc-containers | |
865 | config/init/common/lxc-net | |
dc068290 | 866 | config/init/systemd/Makefile |
015f0dd7 | 867 | config/init/systemd/lxc.service |
de2b7e65 | 868 | config/init/systemd/lxc@.service |
65b27d84 | 869 | config/init/systemd/lxc-net.service |
b6278254 | 870 | config/init/systemd/lxc-monitord.service |
0af99319 MW |
871 | config/init/sysvinit/Makefile |
872 | config/init/sysvinit/lxc-containers | |
873 | config/init/sysvinit/lxc-net | |
a8c71063 | 874 | config/init/upstart/lxc.conf |
0af99319 | 875 | config/init/upstart/lxc-net.conf |
dc068290 | 876 | config/init/upstart/Makefile |
f2a95ee1 SG |
877 | config/etc/Makefile |
878 | config/templates/Makefile | |
5b99af00 | 879 | config/templates/common.conf |
4662c6de | 880 | config/templates/common.conf.d/Makefile |
108b88ce | 881 | config/templates/nesting.conf |
1689c7cf | 882 | config/templates/oci.common.conf |
5b99af00 | 883 | config/templates/userns.conf |
7ceebfd1 | 884 | config/yum/Makefile |
0af99319 MW |
885 | config/sysconfig/Makefile |
886 | config/sysconfig/lxc | |
d823d5b9 | 887 | |
288063bd | 888 | doc/Makefile |
953e611c | 889 | doc/api/Makefile |
4019712d | 890 | doc/lxc-attach.sgml |
a6adab20 | 891 | doc/lxc-autostart.sgml |
4019712d SG |
892 | doc/lxc-cgroup.sgml |
893 | doc/lxc-checkconfig.sgml | |
735f2c6e | 894 | doc/lxc-checkpoint.sgml |
ff5e2751 | 895 | doc/lxc-config.sgml |
4019712d | 896 | doc/lxc-console.sgml |
2b47bac3 | 897 | doc/lxc-copy.sgml |
d823d5b9 | 898 | doc/lxc-create.sgml |
899 | doc/lxc-destroy.sgml | |
4019712d | 900 | doc/lxc-device.sgml |
d823d5b9 | 901 | doc/lxc-execute.sgml |
d823d5b9 | 902 | doc/lxc-freeze.sgml |
4019712d | 903 | doc/lxc-info.sgml |
d823d5b9 | 904 | doc/lxc-ls.sgml |
4019712d | 905 | doc/lxc-monitor.sgml |
813a4837 | 906 | doc/lxc-snapshot.sgml |
4019712d SG |
907 | doc/lxc-start.sgml |
908 | doc/lxc-stop.sgml | |
f080ffd7 | 909 | doc/lxc-top.sgml |
4019712d SG |
910 | doc/lxc-unfreeze.sgml |
911 | doc/lxc-unshare.sgml | |
0a29a3ef | 912 | doc/lxc-update-config.sgml |
df3415e0 | 913 | doc/lxc-user-nic.sgml |
adade80c | 914 | doc/lxc-usernsexec.sgml |
4019712d SG |
915 | doc/lxc-wait.sgml |
916 | ||
a98ad25d VHRA |
917 | doc/pam_cgfs.sgml |
918 | ||
8a67a2b2 | 919 | doc/lxc.conf.sgml |
55fc19a1 SG |
920 | doc/lxc.container.conf.sgml |
921 | doc/lxc.system.conf.sgml | |
df3415e0 | 922 | doc/lxc-usernet.sgml |
8b8b04f8 | 923 | doc/lxc.sgml |
10fba81b | 924 | doc/common_options.sgml |
99e4008c | 925 | doc/see_also.sgml |
d823d5b9 | 926 | |
baf6671f DL |
927 | doc/rootfs/Makefile |
928 | ||
0f71d073 DL |
929 | doc/examples/Makefile |
930 | doc/examples/lxc-macvlan.conf | |
26c39028 | 931 | doc/examples/lxc-vlan.conf |
0f71d073 DL |
932 | doc/examples/lxc-no-netns.conf |
933 | doc/examples/lxc-empty-netns.conf | |
934 | doc/examples/lxc-phys.conf | |
935 | doc/examples/lxc-veth.conf | |
c553a9c2 | 936 | doc/examples/lxc-complex.conf |
0f71d073 | 937 | |
57da8c32 | 938 | doc/ja/Makefile |
57da8c32 | 939 | doc/ja/lxc-attach.sgml |
28f2ab26 | 940 | doc/ja/lxc-autostart.sgml |
57da8c32 KY |
941 | doc/ja/lxc-cgroup.sgml |
942 | doc/ja/lxc-checkconfig.sgml | |
b0e26ca7 | 943 | doc/ja/lxc-checkpoint.sgml |
3220eceb | 944 | doc/ja/lxc-config.sgml |
57da8c32 | 945 | doc/ja/lxc-console.sgml |
842948e4 | 946 | doc/ja/lxc-copy.sgml |
57da8c32 KY |
947 | doc/ja/lxc-create.sgml |
948 | doc/ja/lxc-destroy.sgml | |
949 | doc/ja/lxc-device.sgml | |
950 | doc/ja/lxc-execute.sgml | |
951 | doc/ja/lxc-freeze.sgml | |
952 | doc/ja/lxc-info.sgml | |
57da8c32 KY |
953 | doc/ja/lxc-ls.sgml |
954 | doc/ja/lxc-monitor.sgml | |
ebe0aeb1 | 955 | doc/ja/lxc-snapshot.sgml |
57da8c32 KY |
956 | doc/ja/lxc-start.sgml |
957 | doc/ja/lxc-stop.sgml | |
958 | doc/ja/lxc-top.sgml | |
959 | doc/ja/lxc-unfreeze.sgml | |
960 | doc/ja/lxc-unshare.sgml | |
607a8de5 | 961 | doc/ja/lxc-update-config.sgml |
07ece600 | 962 | doc/ja/lxc-user-nic.sgml |
755d8d03 | 963 | doc/ja/lxc-usernsexec.sgml |
57da8c32 KY |
964 | doc/ja/lxc-wait.sgml |
965 | ||
6da6d73e KY |
966 | doc/ja/pam_cgfs.sgml |
967 | ||
57da8c32 | 968 | doc/ja/lxc.conf.sgml |
fb261f53 KY |
969 | doc/ja/lxc.container.conf.sgml |
970 | doc/ja/lxc.system.conf.sgml | |
07ece600 | 971 | doc/ja/lxc-usernet.sgml |
57da8c32 KY |
972 | doc/ja/lxc.sgml |
973 | doc/ja/common_options.sgml | |
974 | doc/ja/see_also.sgml | |
975 | ||
2b371b26 | 976 | doc/ko/Makefile |
2b371b26 SY |
977 | doc/ko/lxc-attach.sgml |
978 | doc/ko/lxc-autostart.sgml | |
979 | doc/ko/lxc-cgroup.sgml | |
980 | doc/ko/lxc-checkconfig.sgml | |
981 | doc/ko/lxc-checkpoint.sgml | |
2b371b26 SY |
982 | doc/ko/lxc-config.sgml |
983 | doc/ko/lxc-console.sgml | |
b035f792 | 984 | doc/ko/lxc-copy.sgml |
2b371b26 SY |
985 | doc/ko/lxc-create.sgml |
986 | doc/ko/lxc-destroy.sgml | |
987 | doc/ko/lxc-device.sgml | |
988 | doc/ko/lxc-execute.sgml | |
989 | doc/ko/lxc-freeze.sgml | |
990 | doc/ko/lxc-info.sgml | |
991 | doc/ko/lxc-ls.sgml | |
992 | doc/ko/lxc-monitor.sgml | |
993 | doc/ko/lxc-snapshot.sgml | |
2b371b26 SY |
994 | doc/ko/lxc-start.sgml |
995 | doc/ko/lxc-stop.sgml | |
996 | doc/ko/lxc-top.sgml | |
997 | doc/ko/lxc-unfreeze.sgml | |
998 | doc/ko/lxc-unshare.sgml | |
999 | doc/ko/lxc-user-nic.sgml | |
1000 | doc/ko/lxc-usernsexec.sgml | |
1001 | doc/ko/lxc-wait.sgml | |
1002 | ||
1003 | doc/ko/lxc.conf.sgml | |
1004 | doc/ko/lxc.container.conf.sgml | |
1005 | doc/ko/lxc.system.conf.sgml | |
1006 | doc/ko/lxc-usernet.sgml | |
1007 | doc/ko/lxc.sgml | |
1008 | doc/ko/common_options.sgml | |
1009 | doc/ko/see_also.sgml | |
1010 | ||
906f8c4d | 1011 | hooks/Makefile |
84bf5645 | 1012 | hooks/dhclient |
906f8c4d | 1013 | |
c01d62f2 | 1014 | templates/Makefile |
f8d0243a | 1015 | templates/lxc-busybox |
71d3a659 | 1016 | templates/lxc-download |
35444f38 | 1017 | templates/lxc-local |
0ef43a5c | 1018 | templates/lxc-oci |
c9844b87 | 1019 | |
288063bd | 1020 | src/Makefile |
5e97c3fc | 1021 | src/lxc/Makefile |
2a59a681 | 1022 | src/lxc/lxc.functions |
48b1dc4c | 1023 | src/lxc/cmd/lxc-checkconfig |
6a342cab | 1024 | src/lxc/cmd/lxc-update-config |
a22185dd | 1025 | src/lxc/version.h |
be2e4e54 | 1026 | |
72d0e1cb | 1027 | src/tests/Makefile |
8cb8e496 | 1028 | src/tests/lxc-test-usernic |
5e97c3fc | 1029 | ]) |
1030 | AC_CONFIG_COMMANDS([default],[[]],[[]]) | |
1031 | AC_OUTPUT | |
f91d5e4e SG |
1032 | |
1033 | # Configuration overview | |
1034 | cat << EOF | |
1035 | ||
1036 | ---------------------------- | |
8d060937 CB |
1037 | Binaries |
1038 | - Command Line Tools: | |
1039 | - lxc-attach: $enable_tools | |
1040 | - lxc-autostart: $enable_tools | |
1041 | - lxc-cgroup: $enable_tools | |
1042 | - lxc-checkpoint: $enable_tools | |
1043 | - lxc-config: $enable_tools | |
1044 | - lxc-console: $enable_tools | |
1045 | - lxc-copy: $enable_tools | |
1046 | - lxc-create: $enable_tools | |
1047 | - lxc-destroy: $enable_tools | |
1048 | - lxc-device: $enable_tools | |
1049 | - lxc-execute: $enable_tools | |
1050 | - lxc-freeze: $enable_tools | |
1051 | - lxc-info: $enable_tools | |
1052 | - lxc-ls: $enable_tools | |
1053 | - lxc-monitor: $enable_tools | |
1054 | - lxc-snapshot: $enable_tools | |
1055 | - lxc-start: $enable_tools | |
1056 | - lxc-stop: $enable_tools | |
1057 | - lxc-top: $enable_tools | |
1058 | - lxc-unfreeze: $enable_tools | |
1059 | - lxc-unshare: $enable_tools | |
1060 | - lxc-wait: $enable_tools | |
1061 | ||
1062 | - liblxc Commands: | |
1063 | - lxc-checkconfig: $enable_commands | |
1064 | - lxc-update-config: $enable_commands | |
1065 | - lxc-init: $enable_commands | |
1066 | - lxc-monitord: $enable_commands | |
1067 | - lxc-user-nic: $enable_commands | |
1068 | - lxc-usernsexec: $enable_commands | |
1069 | ||
014a65ef CB |
1070 | - static binaries: $enable_static_binaries |
1071 | ||
f91d5e4e SG |
1072 | Environment: |
1073 | - compiler: $CC | |
b59bc011 CB |
1074 | - cflags: ${AM_CFLAGS} ${PTHREAD_CFLAGS} |
1075 | - ldflags: ${AM_LDFLAGS} ${PTHREAD_LIBS} | |
f91d5e4e | 1076 | - distribution: $with_distro |
89f79f6b | 1077 | - init script type(s): $init_script |
f91d5e4e | 1078 | - rpath: $enable_rpath |
fa2bb6ba | 1079 | - OpenSSL: $enable_openssl |
0306de4f | 1080 | - Bash integration: $enable_bash |
f91d5e4e SG |
1081 | |
1082 | Security features: | |
1083 | - Apparmor: $enable_apparmor | |
1084 | - Linux capabilities: $enable_capabilities | |
1085 | - seccomp: $enable_seccomp | |
1086 | - SELinux: $enable_selinux | |
6400238d | 1087 | - memfd rexec: $enable_memfd_rexec |
f91d5e4e | 1088 | |
7ac43d3d | 1089 | PAM: |
f7a8609f | 1090 | - PAM module: $enable_pam |
7ac43d3d CB |
1091 | - cgroup PAM module: $pamdir |
1092 | ||
f91d5e4e SG |
1093 | Documentation: |
1094 | - examples: $enable_examples | |
1095 | - API documentation: $enable_api_docs | |
1096 | - user documentation: $enable_doc | |
1097 | ||
1098 | Debugging: | |
565c4427 | 1099 | - ASAN: $enable_asan |
538337ee | 1100 | - Coverity: $enable_coverity_build |
f91d5e4e | 1101 | - mutex debugging: $enable_mutex_debugging |
538337ee | 1102 | - tests: $enable_tests |
f91d5e4e SG |
1103 | |
1104 | Paths: | |
1105 | - Logs in configpath: $enable_configpath_log | |
81c76cff CB |
1106 | |
1107 | Thread-safety: | |
1108 | - enforce: $enable_thread_safety | |
5c7bfc02 | 1109 | |
1110 | Dlog: | |
1111 | - enable: $enable_dlog | |
f91d5e4e | 1112 | EOF |