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