]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Remove autotools
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 29 Apr 2022 03:12:35 +0000 (23:12 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 8 Jun 2022 04:46:59 +0000 (00:46 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
37 files changed:
.gitignore
INSTALL [deleted file]
Makefile.am [deleted file]
NEWS [deleted file]
README [deleted file]
autogen.sh [deleted file]
coccinelle/Makefile.am [deleted file]
config/Makefile.am [deleted file]
config/acinclude.m4 [deleted file]
config/apparmor/Makefile.am [deleted file]
config/attributes.m4 [deleted file]
config/ax_pthread.m4 [deleted file]
config/bash/Makefile.am [deleted file]
config/etc/Makefile.am [deleted file]
config/init/Makefile.am [deleted file]
config/init/common/Makefile.am [deleted file]
config/init/systemd/Makefile.am [deleted file]
config/init/sysvinit/Makefile.am [deleted file]
config/init/upstart/Makefile.am [deleted file]
config/selinux/Makefile.am [deleted file]
config/sysconfig/Makefile.am [deleted file]
config/templates/Makefile.am [deleted file]
config/templates/common.conf.d/Makefile.am [deleted file]
config/yum/Makefile.am [deleted file]
configure.ac [deleted file]
doc/Makefile.am [deleted file]
doc/api/Makefile.am [deleted file]
doc/examples/Makefile.am [deleted file]
doc/ja/Makefile.am [deleted file]
doc/ko/Makefile.am [deleted file]
doc/rootfs/Makefile.am [deleted file]
hooks/Makefile.am [deleted file]
lxc.pc.in [deleted file]
src/Makefile.am [deleted file]
src/lxc/Makefile.am [deleted file]
src/tests/Makefile.am [deleted file]
templates/Makefile.am [deleted file]

index cd78e21cdb8341b3de610a5db780d39950bb25df..b6f99f2da6cb9253de3994c126b67de7c33cfb54 100644 (file)
 .libs
 .dirstamp
 
-Makefile.in
-Makefile
-COPYING
-
-aclocal.m4
-autom4te.cache
-configure
-config.log
-config.status
-libtool
-
 lxc.spec
 lxc.pc
 
@@ -112,15 +101,6 @@ src/tests/lxc-test-sys-mixed
 src/tests/lxc-test-rootfs-options
 src/tests/lxc-test-capabilities
 
-config/compile
-config/config.guess
-config/config.sub
-config/depcomp
-config/install-sh
-config/ltmain.sh
-config/missing
-config/libtool.m4
-config/lt*.m4
 config/apparmor/abstractions/start-container
 config/bash/lxc
 config/init/common/lxc-containers
@@ -153,12 +133,6 @@ doc/api/html/*
 hooks/unmount-namespace
 hooks/dhclient
 
-m4/
-
-src/config.h
-src/config.h.in
-src/stamp-h1
-
 .pc
 patches
 *.orig
diff --git a/INSTALL b/INSTALL
deleted file mode 100644 (file)
index aad6071..0000000
--- a/INSTALL
+++ /dev/null
@@ -1,239 +0,0 @@
-Installation Instructions
-*************************
-
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006 Free Software Foundation, Inc.
-
-This file is free documentation; the Free Software Foundation gives
-unlimited permission to copy, distribute and modify it.
-
-Basic Installation
-==================
-
-Briefly, the shell commands `./autogen.sh; ./configure; make; make install'
-should configure, build, and install this package.  The following
-more-detailed instructions are generic; see the `README' file for
-instructions specific to this package.
-
-   The `configure' shell script attempts to guess correct values for
-various system-dependent variables used during compilation.  It uses
-those values to create a `Makefile' in each directory of the package.
-It may also create one or more `.h' files containing system-dependent
-definitions.  Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, and a
-file `config.log' containing compiler output (useful mainly for
-debugging `configure').
-
-   It can also use an optional file (typically called `config.cache'
-and enabled with `--cache-file=config.cache' or simply `-C') that saves
-the results of its tests to speed up reconfiguring.  Caching is
-disabled by default to prevent problems with accidental use of stale
-cache files.
-
-   If you need to do unusual things to compile the package, please try
-to figure out how `configure' could check whether to do them, and mail
-diffs or instructions to the address given in the `README' so they can
-be considered for the next release.  If you are using the cache, and at
-some point `config.cache' contains results you don't want to keep, you
-may remove or edit it.
-
-   The file `configure.ac' (or `configure.in') is used to create
-`configure' by a program called `autoconf'.  You need `configure.ac' if
-you want to change it or regenerate `configure' using a newer version
-of `autoconf'.
-
-The simplest way to compile this package is:
-
-  0. If the sources are not coming from a package maintainer and the
-     'configure' file does not exist, you should run './autogen.sh' in
-     the directory containing the package's source code in order to
-     generate the 'configure' file from the 'configure.ac' file.
-
-  1. `cd' to the directory containing the package's source code and type
-     `./configure' to configure the package for your system.
-
-     Running `configure' might take a while.  While running, it prints
-     some messages telling which features it is checking for.
-
-  2. Type `make' to compile the package.
-
-  3. Optionally, type `make check' to run any self-tests that come with
-     the package.
-
-  4. Type `make install' to install the programs and any data files and
-     documentation.
-
-  5. You can remove the program binaries and object files from the
-     source code directory by typing `make clean'.  To also remove the
-     files that `configure' created (so you can compile the package for
-     a different kind of computer), type `make distclean'.  There is
-     also a `make maintainer-clean' target, but that is intended mainly
-     for the package's developers.  If you use it, you may have to get
-     all sorts of other programs in order to regenerate files that came
-     with the distribution.
-
-Compilers and Options
-=====================
-
-Some systems require unusual options for compilation or linking that the
-`configure' script does not know about.  Run `./configure --help' for
-details on some of the pertinent environment variables.
-
-   You can give `configure' initial values for configuration parameters
-by setting variables in the command line or in the environment.  Here
-is an example:
-
-     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
-
-   *Note Defining Variables::, for more details.
-
-Compiling For Multiple Architectures
-====================================
-
-You can compile the package for more than one kind of computer at the
-same time, by placing the object files for each architecture in their
-own directory.  To do this, you can use GNU `make'.  `cd' to the
-directory where you want the object files and executables to go and run
-the `configure' script.  `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
-
-   With a non-GNU `make', it is safer to compile the package for one
-architecture at a time in the source code directory.  After you have
-installed the package for one architecture, use `make distclean' before
-reconfiguring for another architecture.
-
-Installation Names
-==================
-
-By default, `make install' installs the package's commands under
-`/usr/local/bin', include files under `/usr/local/include', etc.  You
-can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX'.
-
-   You can specify separate installation prefixes for
-architecture-specific files and architecture-independent files.  If you
-pass the option `--exec-prefix=PREFIX' to `configure', the package uses
-PREFIX as the prefix for installing programs and libraries.
-Documentation and other data files still use the regular prefix.
-
-   In addition, if you use an unusual directory layout you can give
-options like `--bindir=DIR' to specify different values for particular
-kinds of files.  Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
-
-   If the package supports it, you can cause programs to be installed
-with an extra prefix or suffix on their names by giving `configure' the
-option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-
-Optional Features
-=================
-
-Some packages pay attention to `--enable-FEATURE' options to
-`configure', where FEATURE indicates an optional part of the package.
-They may also pay attention to `--with-PACKAGE' options, where PACKAGE
-is something like `gnu-as' or `x' (for the X Window System).  The
-`README' should mention any `--enable-' and `--with-' options that the
-package recognizes.
-
-   For packages that use the X Window System, `configure' can usually
-find the X include and library files automatically, but if it doesn't,
-you can use the `configure' options `--x-includes=DIR' and
-`--x-libraries=DIR' to specify their locations.
-
-Specifying the System Type
-==========================
-
-There may be some features `configure' cannot figure out automatically,
-but needs to determine by the type of machine the package will run on.
-Usually, assuming the package is built to be run on the _same_
-architectures, `configure' can figure that out, but if it prints a
-message saying it cannot guess the machine type, give it the
-`--build=TYPE' option.  TYPE can either be a short name for the system
-type, such as `sun4', or a canonical name which has the form:
-
-     CPU-COMPANY-SYSTEM
-
-where SYSTEM can have one of these forms:
-
-     OS KERNEL-OS
-
-   See the file `config.sub' for the possible values of each field.  If
-`config.sub' isn't included in this package, then this package doesn't
-need to know the machine type.
-
-   If you are _building_ compiler tools for cross-compiling, you should
-use the option `--target=TYPE' to select the type of system they will
-produce code for.
-
-   If you want to _use_ a cross compiler, that generates code for a
-platform different from the build platform, you should specify the
-"host" platform (i.e., that on which the generated programs will
-eventually be run) with `--host=TYPE'.
-
-Sharing Defaults
-================
-
-If you want to set default values for `configure' scripts to share, you
-can create a site shell script called `config.site' that gives default
-values for variables like `CC', `cache_file', and `prefix'.
-`configure' looks for `PREFIX/share/config.site' if it exists, then
-`PREFIX/etc/config.site' if it exists.  Or, you can set the
-`CONFIG_SITE' environment variable to the location of the site script.
-A warning: not all `configure' scripts look for a site script.
-
-Defining Variables
-==================
-
-Variables not defined in a site shell script can be set in the
-environment passed to `configure'.  However, some packages may run
-configure again during the build, and the customized values of these
-variables may be lost.  In order to avoid this problem, you should set
-them in the `configure' command line, using `VAR=value'.  For example:
-
-     ./configure CC=/usr/local2/bin/gcc
-
-causes the specified `gcc' to be used as the C compiler (unless it is
-overridden in the site shell script).
-
-Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf bug.  Until the bug is fixed you can use this workaround:
-
-     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
-
-`configure' Invocation
-======================
-
-`configure' recognizes the following options to control how it operates.
-
-`--help'
-`-h'
-     Print a summary of the options to `configure', and exit.
-
-`--version'
-`-V'
-     Print the version of Autoconf used to generate the `configure'
-     script, and exit.
-
-`--cache-file=FILE'
-     Enable the cache: use and save the results of the tests in FILE,
-     traditionally `config.cache'.  FILE defaults to `/dev/null' to
-     disable caching.
-
-`--config-cache'
-`-C'
-     Alias for `--cache-file=config.cache'.
-
-`--quiet'
-`--silent'
-`-q'
-     Do not print messages saying which checks are being made.  To
-     suppress all normal output, redirect it to `/dev/null' (any error
-     messages will still be shown).
-
-`--srcdir=DIR'
-     Look for the package's source code in directory DIR.  Usually
-     `configure' can determine that directory automatically.
-
-`configure' also accepts some other, not widely useful, options.  Run
-`configure --help' for more details.
-
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644 (file)
index 17fd6a8..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-# Makefile.am
-
-ACLOCAL_AMFLAGS = -I config
-AM_CFLAGS += $(PTHREAD_CFLAGS)
-AM_LDFLAGS += $(PTHREAD_LIBS)
-
-LIBTOOL_DEPS = @LIBTOOL_DEPS@
-SUBDIRS = config coccinelle src templates doc hooks
-DIST_SUBDIRS = config coccinelle  src templates doc hooks
-EXTRA_DIST = autogen.sh \
-            lxc.spec \
-            CONTRIBUTING \
-            CODING_STYLE.md \
-            LICENSE.GPL2 \
-            LICENSE.LGPL2.1 \
-            MAINTAINERS \
-            README.md
-
-RPMARGS =
-
-pcdatadir = $(libdir)/pkgconfig
-pcdata_DATA = lxc.pc
-
-libtool: $(LIBTOOL_DEPS)
-       $(SHELL) ./config.status libtool
-
-install-data-local:
-       $(MKDIR_P) $(DESTDIR)$(LXCPATH)
-       $(MKDIR_P) $(DESTDIR)$(localstatedir)/cache/lxc
-
-ChangeLog::
-       @touch ChangeLog
-
-rpm: dist
-       rpmbuild --clean -ta ${distdir}.tar.gz $(RPMARGS)
diff --git a/NEWS b/NEWS
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/README b/README
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755 (executable)
index 4e9f1d8..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-#
-# lxc: linux Container library
-#
-# (C) Copyright IBM Corp. 2007, 2008
-#
-# Authors:
-# Daniel Lezcano <daniel.lezcano at free.fr>
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-set -x
-
-test -d autom4te.cache && rm -rf autom4te.cache
-libtoolize || exit 1
-aclocal -I config || exit 1
-autoheader || exit 1
-autoconf || exit 1
-automake --add-missing --copy || exit 1
diff --git a/coccinelle/Makefile.am b/coccinelle/Makefile.am
deleted file mode 100644 (file)
index 059f5df..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# Makefile.am
-
-EXTRA_DIST = exit.cocci \
-            run-coccinelle.sh \
-            while-true.cocci
diff --git a/config/Makefile.am b/config/Makefile.am
deleted file mode 100644 (file)
index 54f8859..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = apparmor bash etc init selinux templates yum sysconfig
diff --git a/config/acinclude.m4 b/config/acinclude.m4
deleted file mode 100644 (file)
index d718b5e..0000000
+++ /dev/null
@@ -1,137 +0,0 @@
-dnl as-ac-expand.m4 0.2.0
-dnl autostars m4 macro for expanding directories using configure's prefix
-dnl thomas@apestaart.org
-dnl
-
-dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
-dnl example
-dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
-dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
-
-AC_DEFUN([AS_AC_EXPAND],
-[
-    EXP_VAR=[$1]
-    FROM_VAR=[$2]
-
-    dnl first expand prefix and exec_prefix if necessary
-    prefix_save=$prefix
-    exec_prefix_save=$exec_prefix
-
-    dnl if no prefix given, then use /usr/local, the default prefix
-    if test "x$prefix" = "xNONE"; then
-        prefix="$ac_default_prefix"
-    fi
-    dnl if no exec_prefix given, then use prefix
-    if test "x$exec_prefix" = "xNONE"; then
-        exec_prefix=$prefix
-    fi
-
-    full_var="$FROM_VAR"
-    dnl loop until it doesn't change anymore
-    while true; do
-        new_full_var="`eval echo $full_var`"
-        if test "x$new_full_var" = "x$full_var"; then break; fi
-        full_var=$new_full_var
-    done
-
-    dnl clean up
-    full_var=$new_full_var
-    AC_SUBST([$1], "$full_var")
-
-    dnl restore prefix and exec_prefix
-    prefix=$prefix_save
-    exec_prefix=$exec_prefix_save
-])
-
-dnl Available from the GNU Autoconf Macro Archive at:
-dnl http://www.gnu.org/software/ac-archive/htmldoc/ax_compare_version.html
-AC_DEFUN([AX_COMPARE_VERSION], [
-# Used to indicate true or false condition
-ax_compare_version=false
-         # Convert the two version strings to be compared into a format that
-  # allows a simple string comparison.  The end result is that a version
-  # string of the form 1.12.5-r617 will be converted to the form
-  # 0001001200050617.  In other words, each number is zero padded to four
-  # digits, and non digits are removed.
-  AS_VAR_PUSHDEF([A],[ax_compare_version_A])
-  A=`echo "$1" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \
-                     -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \
-                     -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \
-                     -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \
-                     -e 's/[[^0-9]]//g'`
-
-  AS_VAR_PUSHDEF([B],[ax_compare_version_B])
-  B=`echo "$3" | sed -e 's/\([[0-9]]*\)/Z\1Z/g' \
-                     -e 's/Z\([[0-9]]\)Z/Z0\1Z/g' \
-                     -e 's/Z\([[0-9]][[0-9]]\)Z/Z0\1Z/g' \
-                     -e 's/Z\([[0-9]][[0-9]][[0-9]]\)Z/Z0\1Z/g' \
-                     -e 's/[[^0-9]]//g'`
-
-  dnl # In the case of le, ge, lt, and gt, the strings are sorted as necessary
-  dnl # then the first line is used to determine if the condition is true.
-  dnl # The sed right after the echo is to remove any indented white space.
-  m4_case(m4_tolower($2),
-  [lt],[
-    ax_compare_version=`echo "x$A
-x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/false/;s/x${B}/true/;1q"`
-  ],
-  [gt],[
-    ax_compare_version=`echo "x$A
-x$B" | sed 's/^ *//' | sort | sed "s/x${A}/false/;s/x${B}/true/;1q"`
-  ],
-  [le],[
-    ax_compare_version=`echo "x$A
-x$B" | sed 's/^ *//' | sort | sed "s/x${A}/true/;s/x${B}/false/;1q"`
-  ],
-  [ge],[
-    ax_compare_version=`echo "x$A
-x$B" | sed 's/^ *//' | sort -r | sed "s/x${A}/true/;s/x${B}/false/;1q"`
-  ],[
-    dnl Split the operator from the subversion count if present.
-    m4_bmatch(m4_substr($2,2),
-    [0],[
-      # A count of zero means use the length of the shorter version.
-      # Determine the number of characters in A and B.
-      ax_compare_version_len_A=`echo "$A" | awk '{print(length)}'`
-      ax_compare_version_len_B=`echo "$B" | awk '{print(length)}'`
-
-      # Set A to no more than B's length and B to no more than A's length.
-      A=`echo "$A" | sed "s/\(.\{$ax_compare_version_len_B\}\).*/\1/"`
-      B=`echo "$B" | sed "s/\(.\{$ax_compare_version_len_A\}\).*/\1/"`
-    ],
-    [[0-9]+],[
-      # A count greater than zero means use only that many subversions
-      A=`echo "$A" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"`
-      B=`echo "$B" | sed "s/\(\([[0-9]]\{4\}\)\{m4_substr($2,2)\}\).*/\1/"`
-    ],
-    [.+],[
-      AC_WARNING(
-        [illegal OP numeric parameter: $2])
-    ],[])
-
-    # Pad zeros at end of numbers to make same length.
-    ax_compare_version_tmp_A="$A`echo $B | sed 's/./0/g'`"
-    B="$B`echo $A | sed 's/./0/g'`"
-    A="$ax_compare_version_tmp_A"
-
-    # Check for equality or inequality as necessary.
-    m4_case(m4_tolower(m4_substr($2,0,2)),
-    [eq],[
-      test "x$A" = "x$B" && ax_compare_version=true
-    ],
-    [ne],[
-      test "x$A" != "x$B" && ax_compare_version=true
-    ],[
-      AC_WARNING([illegal OP parameter: $2])
-    ])
-  ])
-
-  AS_VAR_POPDEF([A])dnl
-  AS_VAR_POPDEF([B])dnl
-
-  dnl # Execute ACTION-IF-TRUE / ACTION-IF-FALSE.
-  if test "$ax_compare_version" = "true" ; then
-    m4_ifvaln([$4],[$4],[:])dnl
-    m4_ifvaln([$5],[else $5])dnl
-  fi
-]) dnl AX_COMPARE_VERSION
diff --git a/config/apparmor/Makefile.am b/config/apparmor/Makefile.am
deleted file mode 100644 (file)
index 858f58d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-EXTRA_DIST = \
-       abstractions/container-base \
-       abstractions/container-base.in \
-       abstractions/start-container \
-       container-rules \
-       container-rules.base \
-       lxc-containers \
-       lxc-generate-aa-rules.py \
-       profiles/lxc-default \
-       profiles/lxc-default-cgns \
-       profiles/lxc-default-with-mounting \
-       profiles/lxc-default-with-nesting \
-       usr.bin.lxc-start
-
-
-if ENABLE_APPARMOR
-install-apparmor:
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/apparmor.d/
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
-       $(INSTALL_DATA) $(srcdir)/abstractions/container-base $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/
-       $(INSTALL_DATA) abstractions/start-container $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/
-       $(INSTALL_DATA) $(srcdir)/profiles/lxc-default $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
-       $(INSTALL_DATA) $(srcdir)/profiles/lxc-default-cgns $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
-       $(INSTALL_DATA) $(srcdir)/profiles/lxc-default-with-mounting $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
-       $(INSTALL_DATA) $(srcdir)/profiles/lxc-default-with-nesting $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/
-       $(INSTALL_DATA) $(srcdir)/lxc-containers $(DESTDIR)$(sysconfdir)/apparmor.d/
-       $(INSTALL_DATA) $(srcdir)/usr.bin.lxc-start $(DESTDIR)$(sysconfdir)/apparmor.d/
-
-uninstall-apparmor:
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/usr.bin.lxc-start
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc-containers
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default-with-nesting
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default-with-mounting
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default-cgns
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/lxc-default
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/start-container
-       rm -f $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/container-base
-       rmdir $(DESTDIR)$(sysconfdir)/apparmor.d/lxc/ || :
-       rmdir $(DESTDIR)$(sysconfdir)/apparmor.d/abstractions/lxc/ || :
-       rmdir $(DESTDIR)$(sysconfdir)/apparmor.d/ || :
-
-install-data-local: install-apparmor
-uninstall-local: uninstall-apparmor
-endif
diff --git a/config/attributes.m4 b/config/attributes.m4
deleted file mode 100644 (file)
index 023d9b8..0000000
+++ /dev/null
@@ -1,292 +0,0 @@
-dnl Macros to check the presence of generic (non-typed) symbols.
-dnl Copyright (c) 2006-2008 Diego Pettenò <flameeyes@gmail.com>
-dnl Copyright (c) 2006-2008 xine project
-dnl Copyright (c) 2012 Lucas De Marchi <lucas.de.marchi@gmail.com>
-dnl
-dnl This program is free software; you can redistribute it and/or modify
-dnl it under the terms of the GNU General Public License as published by
-dnl the Free Software Foundation; either version 2, or (at your option)
-dnl any later version.
-dnl
-dnl This program is distributed in the hope that it will be useful,
-dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
-dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-dnl GNU General Public License for more details.
-dnl
-dnl You should have received a copy of the GNU General Public License
-dnl along with this program; if not, write to the Free Software
-dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-dnl 02110-1301, USA.
-dnl
-dnl As a special exception, the copyright owners of the
-dnl macro gives unlimited permission to copy, distribute and modify the
-dnl configure scripts that are the output of Autoconf when processing the
-dnl Macro. You need not follow the terms of the GNU General Public
-dnl License when using or distributing such scripts, even though portions
-dnl of the text of the Macro appear in them. The GNU General Public
-dnl License (GPL) does govern all other use of the material that
-dnl constitutes the Autoconf Macro.
-dnl
-dnl This special exception to the GPL applies to versions of the
-dnl Autoconf Macro released by this project. When you make and
-dnl distribute a modified version of the Autoconf Macro, you may extend
-dnl this special exception to the GPL to apply to your modified version as
-dnl well.
-
-dnl Check if FLAG in ENV-VAR is supported by compiler and append it
-dnl to WHERE-TO-APPEND variable. Note that we invert -Wno-* checks to
-dnl -W* as gcc cannot test for negated warnings. If a C snippet is passed,
-dnl use it, otherwise use a simple main() definition that just returns 0.
-dnl CC_CHECK_FLAG_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG], [C-SNIPPET])
-
-AC_DEFUN([CC_CHECK_FLAG_APPEND], [
-  AC_CACHE_CHECK([if $CC supports flag $3 in envvar $2],
-                 AS_TR_SH([cc_cv_$2_$3]),
-          [eval "AS_TR_SH([cc_save_$2])='${$2}'"
-           eval "AS_TR_SH([$2])='${cc_save_$2} -Werror `echo "$3" | sed 's/^-Wno-/-W/'`'"
-           AC_LINK_IFELSE([AC_LANG_SOURCE(ifelse([$4], [],
-                                                 [int main(void) { return 0; } ],
-                                                 [$4]))],
-                          [eval "AS_TR_SH([cc_cv_$2_$3])='yes'"],
-                          [eval "AS_TR_SH([cc_cv_$2_$3])='no'"])
-           eval "AS_TR_SH([$2])='$cc_save_$2'"])
-
-  AS_IF([eval test x$]AS_TR_SH([cc_cv_$2_$3])[ = xyes],
-        [eval "$1='${$1} $3'"])
-])
-
-dnl CC_CHECK_FLAGS_APPEND([WHERE-TO-APPEND], [ENV-VAR], [FLAG1 FLAG2], [C-SNIPPET])
-AC_DEFUN([CC_CHECK_FLAGS_APPEND], [
-  for flag in [$3]; do
-    CC_CHECK_FLAG_APPEND([$1], [$2], $flag, [$4])
-  done
-])
-
-dnl Check if the flag is supported by linker (cacheable)
-dnl CC_CHECK_LDFLAGS([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
-
-AC_DEFUN([CC_CHECK_LDFLAGS], [
-  AC_CACHE_CHECK([if $CC supports $1 flag],
-    AS_TR_SH([cc_cv_ldflags_$1]),
-    [ac_save_LDFLAGS="$LDFLAGS"
-     LDFLAGS="$LDFLAGS $1"
-     AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 1; }])],
-       [eval "AS_TR_SH([cc_cv_ldflags_$1])='yes'"],
-       [eval "AS_TR_SH([cc_cv_ldflags_$1])="])
-     LDFLAGS="$ac_save_LDFLAGS"
-    ])
-
-  AS_IF([eval test x$]AS_TR_SH([cc_cv_ldflags_$1])[ = xyes],
-    [$2], [$3])
-])
-
-dnl define the LDFLAGS_NOUNDEFINED variable with the correct value for
-dnl the current linker to avoid undefined references in a shared object.
-AC_DEFUN([CC_NOUNDEFINED], [
-  dnl We check $host for which systems to enable this for.
-  AC_REQUIRE([AC_CANONICAL_HOST])
-
-  case $host in
-     dnl FreeBSD (et al.) does not complete linking for shared objects when pthreads
-     dnl are requested, as different implementations are present; to avoid problems
-     dnl use -Wl,-z,defs only for those platform not behaving this way.
-     *-freebsd* | *-openbsd*) ;;
-     *)
-        dnl First of all check for the --no-undefined variant of GNU ld. This allows
-        dnl for a much more readable command line, so that people can understand what
-        dnl it does without going to look for what the heck -z defs does.
-        for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
-           CC_CHECK_LDFLAGS([$possible_flags], [LDFLAGS_NOUNDEFINED="$possible_flags"])
-           break
-        done
-     ;;
-  esac
-
-  AC_SUBST([LDFLAGS_NOUNDEFINED])
-])
-
-dnl Check for a -Werror flag or equivalent. -Werror is the GCC
-dnl and ICC flag that tells the compiler to treat all the warnings
-dnl as fatal. We usually need this option to make sure that some
-dnl constructs (like attributes) are not simply ignored.
-dnl
-dnl Other compilers don't support -Werror per se, but they support
-dnl an equivalent flag:
-dnl  - Sun Studio compiler supports -errwarn=%all
-AC_DEFUN([CC_CHECK_WERROR], [
-  AC_CACHE_CHECK(
-    [for $CC way to treat warnings as errors],
-    [cc_cv_werror],
-    [CC_CHECK_CFLAGS_SILENT([-Werror], [cc_cv_werror=-Werror],
-      [CC_CHECK_CFLAGS_SILENT([-errwarn=%all], [cc_cv_werror=-errwarn=%all])])
-    ])
-])
-
-AC_DEFUN([CC_CHECK_ATTRIBUTE], [
-  AC_REQUIRE([CC_CHECK_WERROR])
-  AC_CACHE_CHECK([if $CC supports __attribute__(( ifelse([$2], , [$1], [$2]) ))],
-    AS_TR_SH([cc_cv_attribute_$1]),
-    [ac_save_CFLAGS="$CFLAGS"
-     CFLAGS="$CFLAGS $cc_cv_werror"
-     AC_COMPILE_IFELSE([AC_LANG_SOURCE([$3])],
-       [eval "AS_TR_SH([cc_cv_attribute_$1])='yes'"],
-       [eval "AS_TR_SH([cc_cv_attribute_$1])='no'"])
-     CFLAGS="$ac_save_CFLAGS"
-    ])
-
-  AS_IF([eval test x$]AS_TR_SH([cc_cv_attribute_$1])[ = xyes],
-    [AC_DEFINE(
-       AS_TR_CPP([SUPPORT_ATTRIBUTE_$1]), 1,
-         [Define this if the compiler supports __attribute__(( ifelse([$2], , [$1], [$2]) ))]
-         )
-     $4],
-    [$5])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_CONSTRUCTOR], [
-  CC_CHECK_ATTRIBUTE(
-    [constructor],,
-    [void __attribute__((constructor)) ctor() { int a; }],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_FORMAT], [
-  CC_CHECK_ATTRIBUTE(
-    [format], [format(printf, n, n)],
-    [void __attribute__((format(printf, 1, 2))) printflike(const char *fmt, ...) { fmt = (void *)0; }],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_FORMAT_ARG], [
-  CC_CHECK_ATTRIBUTE(
-    [format_arg], [format_arg(printf)],
-    [char *__attribute__((format_arg(1))) gettextlike(const char *fmt) { fmt = (void *)0; }],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_VISIBILITY], [
-  CC_CHECK_ATTRIBUTE(
-    [visibility_$1], [visibility("$1")],
-    [void __attribute__((visibility("$1"))) $1_function() { }],
-    [$2], [$3])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_NONNULL], [
-  CC_CHECK_ATTRIBUTE(
-    [nonnull], [nonnull()],
-    [void __attribute__((nonnull())) some_function(void *foo, void *bar) { foo = (void*)0; bar = (void*)0; }],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_UNUSED], [
-  CC_CHECK_ATTRIBUTE(
-    [unused], ,
-    [void some_function(void *foo, __attribute__((unused)) void *bar);],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_SENTINEL], [
-  CC_CHECK_ATTRIBUTE(
-    [sentinel], ,
-    [void some_function(void *foo, ...) __attribute__((sentinel));],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_DEPRECATED], [
-  CC_CHECK_ATTRIBUTE(
-    [deprecated], ,
-    [void some_function(void *foo, ...) __attribute__((deprecated));],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_ALIAS], [
-  CC_CHECK_ATTRIBUTE(
-    [alias], [weak, alias],
-    [void other_function(void *foo) { }
-     void some_function(void *foo) __attribute__((weak, alias("other_function")));],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_MALLOC], [
-  CC_CHECK_ATTRIBUTE(
-    [malloc], ,
-    [void * __attribute__((malloc)) my_alloc(int n);],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_PACKED], [
-  CC_CHECK_ATTRIBUTE(
-    [packed], ,
-    [struct astructure { char a; int b; long c; void *d; } __attribute__((packed));],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_CONST], [
-  CC_CHECK_ATTRIBUTE(
-    [const], ,
-    [int __attribute__((const)) twopow(int n) { return 1 << n; } ],
-    [$1], [$2])
-])
-
-AC_DEFUN([CC_FLAG_VISIBILITY], [
-  AC_REQUIRE([CC_CHECK_WERROR])
-  AC_CACHE_CHECK([if $CC supports -fvisibility=hidden],
-    [cc_cv_flag_visibility],
-    [cc_flag_visibility_save_CFLAGS="$CFLAGS"
-     CFLAGS="$CFLAGS $cc_cv_werror"
-     CC_CHECK_CFLAGS_SILENT([-fvisibility=hidden],
-     cc_cv_flag_visibility='yes',
-     cc_cv_flag_visibility='no')
-     CFLAGS="$cc_flag_visibility_save_CFLAGS"])
-
-  AS_IF([test "x$cc_cv_flag_visibility" = "xyes"],
-    [AC_DEFINE([SUPPORT_FLAG_VISIBILITY], 1,
-       [Define this if the compiler supports the -fvisibility flag])
-     $1],
-    [$2])
-])
-
-AC_DEFUN([CC_FUNC_EXPECT], [
-  AC_REQUIRE([CC_CHECK_WERROR])
-  AC_CACHE_CHECK([if compiler has __builtin_expect function],
-    [cc_cv_func_expect],
-    [ac_save_CFLAGS="$CFLAGS"
-     CFLAGS="$CFLAGS $cc_cv_werror"
-     AC_COMPILE_IFELSE([AC_LANG_SOURCE(
-       [int some_function() {
-        int a = 3;
-        return (int)__builtin_expect(a, 3);
-     }])],
-       [cc_cv_func_expect=yes],
-       [cc_cv_func_expect=no])
-     CFLAGS="$ac_save_CFLAGS"
-    ])
-
-  AS_IF([test "x$cc_cv_func_expect" = "xyes"],
-    [AC_DEFINE([SUPPORT__BUILTIN_EXPECT], 1,
-     [Define this if the compiler supports __builtin_expect() function])
-     $1],
-    [$2])
-])
-
-AC_DEFUN([CC_ATTRIBUTE_ALIGNED], [
-  AC_REQUIRE([CC_CHECK_WERROR])
-  AC_CACHE_CHECK([highest __attribute__ ((aligned ())) supported],
-    [cc_cv_attribute_aligned],
-    [ac_save_CFLAGS="$CFLAGS"
-     CFLAGS="$CFLAGS $cc_cv_werror"
-     for cc_attribute_align_try in 64 32 16 8 4 2; do
-        AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-          int main() {
-            static char c __attribute__ ((aligned($cc_attribute_align_try))) = 0;
-            return c;
-          }])], [cc_cv_attribute_aligned=$cc_attribute_align_try; break])
-     done
-     CFLAGS="$ac_save_CFLAGS"
-  ])
-
-  if test "x$cc_cv_attribute_aligned" != "x"; then
-     AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX], [$cc_cv_attribute_aligned],
-       [Define the highest alignment supported])
-  fi
-])
diff --git a/config/ax_pthread.m4 b/config/ax_pthread.m4
deleted file mode 100644 (file)
index 1598d07..0000000
+++ /dev/null
@@ -1,507 +0,0 @@
-# ===========================================================================
-#        https://www.gnu.org/software/autoconf-archive/ax_pthread.html
-# ===========================================================================
-#
-# SYNOPSIS
-#
-#   AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
-#
-# DESCRIPTION
-#
-#   This macro figures out how to build C programs using POSIX threads. It
-#   sets the PTHREAD_LIBS output variable to the threads library and linker
-#   flags, and the PTHREAD_CFLAGS output variable to any special C compiler
-#   flags that are needed. (The user can also force certain compiler
-#   flags/libs to be tested by setting these environment variables.)
-#
-#   Also sets PTHREAD_CC to any special C compiler that is needed for
-#   multi-threaded programs (defaults to the value of CC otherwise). (This
-#   is necessary on AIX to use the special cc_r compiler alias.)
-#
-#   NOTE: You are assumed to not only compile your program with these flags,
-#   but also to link with them as well. For example, you might link with
-#   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
-#
-#   If you are only building threaded programs, you may wish to use these
-#   variables in your default LIBS, CFLAGS, and CC:
-#
-#     LIBS="$PTHREAD_LIBS $LIBS"
-#     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-#     CC="$PTHREAD_CC"
-#
-#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
-#   has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to
-#   that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
-#
-#   Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
-#   PTHREAD_PRIO_INHERIT symbol is defined when compiling with
-#   PTHREAD_CFLAGS.
-#
-#   ACTION-IF-FOUND is a list of shell commands to run if a threads library
-#   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
-#   is not found. If ACTION-IF-FOUND is not specified, the default action
-#   will define HAVE_PTHREAD.
-#
-#   Please let the authors know if this macro fails on any platform, or if
-#   you have any other suggestions or comments. This macro was based on work
-#   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
-#   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
-#   Alejandro Forero Cuervo to the autoconf macro repository. We are also
-#   grateful for the helpful feedback of numerous users.
-#
-#   Updated for Autoconf 2.68 by Daniel Richard G.
-#
-# LICENSE
-#
-#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
-#   Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
-#   Copyright (c) 2019 Marc Stevens <marc.stevens@cwi.nl>
-#
-#   This program is free software: you can redistribute it and/or modify it
-#   under the terms of the GNU General Public License as published by the
-#   Free Software Foundation, either version 3 of the License, or (at your
-#   option) any later version.
-#
-#   This program is distributed in the hope that it will be useful, but
-#   WITHOUT ANY WARRANTY; without even the implied warranty of
-#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
-#   Public License for more details.
-#
-#   You should have received a copy of the GNU General Public License along
-#   with this program. If not, see <https://www.gnu.org/licenses/>.
-#
-#   As a special exception, the respective Autoconf Macro's copyright owner
-#   gives unlimited permission to copy, distribute and modify the configure
-#   scripts that are the output of Autoconf when processing the Macro. You
-#   need not follow the terms of the GNU General Public License when using
-#   or distributing such scripts, even though portions of the text of the
-#   Macro appear in them. The GNU General Public License (GPL) does govern
-#   all other use of the material that constitutes the Autoconf Macro.
-#
-#   This special exception to the GPL applies to versions of the Autoconf
-#   Macro released by the Autoconf Archive. When you make and distribute a
-#   modified version of the Autoconf Macro, you may extend this special
-#   exception to the GPL to apply to your modified version as well.
-
-#serial 27
-
-AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
-AC_DEFUN([AX_PTHREAD], [
-AC_REQUIRE([AC_CANONICAL_HOST])
-AC_REQUIRE([AC_PROG_CC])
-AC_REQUIRE([AC_PROG_SED])
-AC_LANG_PUSH([C])
-ax_pthread_ok=no
-
-# We used to check for pthread.h first, but this fails if pthread.h
-# requires special compiler flags (e.g. on Tru64 or Sequent).
-# It gets checked for in the link test anyway.
-
-# First of all, check if the user has set any of the PTHREAD_LIBS,
-# etcetera environment variables, and if threads linking works using
-# them:
-if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
-        ax_pthread_save_CC="$CC"
-        ax_pthread_save_CFLAGS="$CFLAGS"
-        ax_pthread_save_LIBS="$LIBS"
-        AS_IF([test "x$PTHREAD_CC" != "x"], [CC="$PTHREAD_CC"])
-        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-        LIBS="$PTHREAD_LIBS $LIBS"
-        AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
-        AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
-        AC_MSG_RESULT([$ax_pthread_ok])
-        if test "x$ax_pthread_ok" = "xno"; then
-                PTHREAD_LIBS=""
-                PTHREAD_CFLAGS=""
-        fi
-        CC="$ax_pthread_save_CC"
-        CFLAGS="$ax_pthread_save_CFLAGS"
-        LIBS="$ax_pthread_save_LIBS"
-fi
-
-# We must check for the threads library under a number of different
-# names; the ordering is very important because some systems
-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
-# libraries is broken (non-POSIX).
-
-# Create a list of thread flags to try. Items with a "," contain both
-# C compiler flags (before ",") and linker flags (after ","). Other items
-# starting with a "-" are C compiler flags, and remaining items are
-# library names, except for "none" which indicates that we try without
-# any flags at all, and "pthread-config" which is a program returning
-# the flags for the Pth emulation library.
-
-ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
-
-# The ordering *is* (sometimes) important.  Some notes on the
-# individual items follow:
-
-# pthreads: AIX (must check this before -lpthread)
-# none: in case threads are in libc; should be tried before -Kthread and
-#       other compiler flags to prevent continual compiler warnings
-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
-#           (Note: HP C rejects this with "bad form for `-t' option")
-# -pthreads: Solaris/gcc (Note: HP C also rejects)
-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
-#      doesn't hurt to check since this sometimes defines pthreads and
-#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
-#      is present but should not be used directly; and before -mthreads,
-#      because the compiler interprets this as "-mt" + "-hreads")
-# -mthreads: Mingw32/gcc, Lynx/gcc
-# pthread: Linux, etcetera
-# --thread-safe: KAI C++
-# pthread-config: use pthread-config program (for GNU Pth library)
-
-case $host_os in
-
-        freebsd*)
-
-        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
-        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
-
-        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
-        ;;
-
-        hpux*)
-
-        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
-        # multi-threading and also sets -lpthread."
-
-        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
-        ;;
-
-        openedition*)
-
-        # IBM z/OS requires a feature-test macro to be defined in order to
-        # enable POSIX threads at all, so give the user a hint if this is
-        # not set. (We don't define these ourselves, as they can affect
-        # other portions of the system API in unpredictable ways.)
-
-        AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
-            [
-#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
-             AX_PTHREAD_ZOS_MISSING
-#            endif
-            ],
-            [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
-        ;;
-
-        solaris*)
-
-        # On Solaris (at least, for some versions), libc contains stubbed
-        # (non-functional) versions of the pthreads routines, so link-based
-        # tests will erroneously succeed. (N.B.: The stubs are missing
-        # pthread_cleanup_push, or rather a function called by this macro,
-        # so we could check for that, but who knows whether they'll stub
-        # that too in a future libc.)  So we'll check first for the
-        # standard Solaris way of linking pthreads (-mt -lpthread).
-
-        ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
-        ;;
-esac
-
-# Are we compiling with Clang?
-
-AC_CACHE_CHECK([whether $CC is Clang],
-    [ax_cv_PTHREAD_CLANG],
-    [ax_cv_PTHREAD_CLANG=no
-     # Note that Autoconf sets GCC=yes for Clang as well as GCC
-     if test "x$GCC" = "xyes"; then
-        AC_EGREP_CPP([AX_PTHREAD_CC_IS_CLANG],
-            [/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
-#            if defined(__clang__) && defined(__llvm__)
-             AX_PTHREAD_CC_IS_CLANG
-#            endif
-            ],
-            [ax_cv_PTHREAD_CLANG=yes])
-     fi
-    ])
-ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
-
-
-# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
-
-# Note that for GCC and Clang -pthread generally implies -lpthread,
-# except when -nostdlib is passed.
-# This is problematic using libtool to build C++ shared libraries with pthread:
-# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
-# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
-# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
-# To solve this, first try -pthread together with -lpthread for GCC
-
-AS_IF([test "x$GCC" = "xyes"],
-      [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"])
-
-# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
-
-AS_IF([test "x$ax_pthread_clang" = "xyes"],
-      [ax_pthread_flags="-pthread,-lpthread -pthread"])
-
-
-# The presence of a feature test macro requesting re-entrant function
-# definitions is, on some systems, a strong hint that pthreads support is
-# correctly enabled
-
-case $host_os in
-        darwin* | hpux* | linux* | osf* | solaris*)
-        ax_pthread_check_macro="_REENTRANT"
-        ;;
-
-        aix*)
-        ax_pthread_check_macro="_THREAD_SAFE"
-        ;;
-
-        *)
-        ax_pthread_check_macro="--"
-        ;;
-esac
-AS_IF([test "x$ax_pthread_check_macro" = "x--"],
-      [ax_pthread_check_cond=0],
-      [ax_pthread_check_cond="!defined($ax_pthread_check_macro)"])
-
-
-if test "x$ax_pthread_ok" = "xno"; then
-for ax_pthread_try_flag in $ax_pthread_flags; do
-
-        case $ax_pthread_try_flag in
-                none)
-                AC_MSG_CHECKING([whether pthreads work without any flags])
-                ;;
-
-                *,*)
-                PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
-                PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
-                AC_MSG_CHECKING([whether pthreads work with "$PTHREAD_CFLAGS" and "$PTHREAD_LIBS"])
-                ;;
-
-                -*)
-                AC_MSG_CHECKING([whether pthreads work with $ax_pthread_try_flag])
-                PTHREAD_CFLAGS="$ax_pthread_try_flag"
-                ;;
-
-                pthread-config)
-                AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
-                AS_IF([test "x$ax_pthread_config" = "xno"], [continue])
-                PTHREAD_CFLAGS="`pthread-config --cflags`"
-                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
-                ;;
-
-                *)
-                AC_MSG_CHECKING([for the pthreads library -l$ax_pthread_try_flag])
-                PTHREAD_LIBS="-l$ax_pthread_try_flag"
-                ;;
-        esac
-
-        ax_pthread_save_CFLAGS="$CFLAGS"
-        ax_pthread_save_LIBS="$LIBS"
-        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-        LIBS="$PTHREAD_LIBS $LIBS"
-
-        # Check for various functions.  We must include pthread.h,
-        # since some functions may be macros.  (On the Sequent, we
-        # need a special flag -Kthread to make this header compile.)
-        # We check for pthread_join because it is in -lpthread on IRIX
-        # while pthread_create is in libc.  We check for pthread_attr_init
-        # due to DEC craziness with -lpthreads.  We check for
-        # pthread_cleanup_push because it is one of the few pthread
-        # functions on Solaris that doesn't have a non-functional libc stub.
-        # We try pthread_create on general principles.
-
-        AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
-#                       if $ax_pthread_check_cond
-#                        error "$ax_pthread_check_macro must be defined"
-#                       endif
-                        static void *some_global = NULL;
-                        static void routine(void *a)
-                          {
-                             /* To avoid any unused-parameter or
-                                unused-but-set-parameter warning.  */
-                             some_global = a;
-                          }
-                        static void *start_routine(void *a) { return a; }],
-                       [pthread_t th; pthread_attr_t attr;
-                        pthread_create(&th, 0, start_routine, 0);
-                        pthread_join(th, 0);
-                        pthread_attr_init(&attr);
-                        pthread_cleanup_push(routine, 0);
-                        pthread_cleanup_pop(0) /* ; */])],
-            [ax_pthread_ok=yes],
-            [])
-
-        CFLAGS="$ax_pthread_save_CFLAGS"
-        LIBS="$ax_pthread_save_LIBS"
-
-        AC_MSG_RESULT([$ax_pthread_ok])
-        AS_IF([test "x$ax_pthread_ok" = "xyes"], [break])
-
-        PTHREAD_LIBS=""
-        PTHREAD_CFLAGS=""
-done
-fi
-
-
-# Clang needs special handling, because older versions handle the -pthread
-# option in a rather... idiosyncratic way
-
-if test "x$ax_pthread_clang" = "xyes"; then
-
-        # Clang takes -pthread; it has never supported any other flag
-
-        # (Note 1: This will need to be revisited if a system that Clang
-        # supports has POSIX threads in a separate library.  This tends not
-        # to be the way of modern systems, but it's conceivable.)
-
-        # (Note 2: On some systems, notably Darwin, -pthread is not needed
-        # to get POSIX threads support; the API is always present and
-        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
-        # -pthread does define _REENTRANT, and while the Darwin headers
-        # ignore this macro, third-party headers might not.)
-
-        # However, older versions of Clang make a point of warning the user
-        # that, in an invocation where only linking and no compilation is
-        # taking place, the -pthread option has no effect ("argument unused
-        # during compilation").  They expect -pthread to be passed in only
-        # when source code is being compiled.
-        #
-        # Problem is, this is at odds with the way Automake and most other
-        # C build frameworks function, which is that the same flags used in
-        # compilation (CFLAGS) are also used in linking.  Many systems
-        # supported by AX_PTHREAD require exactly this for POSIX threads
-        # support, and in fact it is often not straightforward to specify a
-        # flag that is used only in the compilation phase and not in
-        # linking.  Such a scenario is extremely rare in practice.
-        #
-        # Even though use of the -pthread flag in linking would only print
-        # a warning, this can be a nuisance for well-run software projects
-        # that build with -Werror.  So if the active version of Clang has
-        # this misfeature, we search for an option to squash it.
-
-        AC_CACHE_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
-            [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG],
-            [ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
-             # Create an alternate version of $ac_link that compiles and
-             # links in two steps (.c -> .o, .o -> exe) instead of one
-             # (.c -> exe), because the warning occurs only in the second
-             # step
-             ax_pthread_save_ac_link="$ac_link"
-             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
-             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
-             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
-             ax_pthread_save_CFLAGS="$CFLAGS"
-             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
-                AS_IF([test "x$ax_pthread_try" = "xunknown"], [break])
-                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
-                ac_link="$ax_pthread_save_ac_link"
-                AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
-                    [ac_link="$ax_pthread_2step_ac_link"
-                     AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(void){return 0;}]])],
-                         [break])
-                    ])
-             done
-             ac_link="$ax_pthread_save_ac_link"
-             CFLAGS="$ax_pthread_save_CFLAGS"
-             AS_IF([test "x$ax_pthread_try" = "x"], [ax_pthread_try=no])
-             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
-            ])
-
-        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
-                no | unknown) ;;
-                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
-        esac
-
-fi # $ax_pthread_clang = yes
-
-
-
-# Various other checks:
-if test "x$ax_pthread_ok" = "xyes"; then
-        ax_pthread_save_CFLAGS="$CFLAGS"
-        ax_pthread_save_LIBS="$LIBS"
-        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-        LIBS="$PTHREAD_LIBS $LIBS"
-
-        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
-        AC_CACHE_CHECK([for joinable pthread attribute],
-            [ax_cv_PTHREAD_JOINABLE_ATTR],
-            [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
-             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
-                 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
-                                                 [int attr = $ax_pthread_attr; return attr /* ; */])],
-                                [ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break],
-                                [])
-             done
-            ])
-        AS_IF([test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
-               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
-               test "x$ax_pthread_joinable_attr_defined" != "xyes"],
-              [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
-                                  [$ax_cv_PTHREAD_JOINABLE_ATTR],
-                                  [Define to necessary symbol if this constant
-                                   uses a non-standard name on your system.])
-               ax_pthread_joinable_attr_defined=yes
-              ])
-
-        AC_CACHE_CHECK([whether more special flags are required for pthreads],
-            [ax_cv_PTHREAD_SPECIAL_FLAGS],
-            [ax_cv_PTHREAD_SPECIAL_FLAGS=no
-             case $host_os in
-             solaris*)
-             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
-             ;;
-             esac
-            ])
-        AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
-               test "x$ax_pthread_special_flags_added" != "xyes"],
-              [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
-               ax_pthread_special_flags_added=yes])
-
-        AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
-            [ax_cv_PTHREAD_PRIO_INHERIT],
-            [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
-                                             [[int i = PTHREAD_PRIO_INHERIT;
-                                               return i;]])],
-                            [ax_cv_PTHREAD_PRIO_INHERIT=yes],
-                            [ax_cv_PTHREAD_PRIO_INHERIT=no])
-            ])
-        AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
-               test "x$ax_pthread_prio_inherit_defined" != "xyes"],
-              [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])
-               ax_pthread_prio_inherit_defined=yes
-              ])
-
-        CFLAGS="$ax_pthread_save_CFLAGS"
-        LIBS="$ax_pthread_save_LIBS"
-
-        # More AIX lossage: compile with *_r variant
-        if test "x$GCC" != "xyes"; then
-            case $host_os in
-                aix*)
-                AS_CASE(["x/$CC"],
-                    [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
-                    [#handle absolute path differently from PATH based program lookup
-                     AS_CASE(["x$CC"],
-                         [x/*],
-                         [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],
-                         [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])
-                ;;
-            esac
-        fi
-fi
-
-test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
-
-AC_SUBST([PTHREAD_LIBS])
-AC_SUBST([PTHREAD_CFLAGS])
-AC_SUBST([PTHREAD_CC])
-
-# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
-if test "x$ax_pthread_ok" = "xyes"; then
-        ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
-        :
-else
-        ax_pthread_ok=no
-        $2
-fi
-AC_LANG_POP
-])dnl AX_PTHREAD
diff --git a/config/bash/Makefile.am b/config/bash/Makefile.am
deleted file mode 100644 (file)
index a45f10e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-EXTRA_DIST = _lxc
-
-if ENABLE_BASH
-dist_bashcomp_DATA = _lxc
-endif
diff --git a/config/etc/Makefile.am b/config/etc/Makefile.am
deleted file mode 100644 (file)
index d5d0a9a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-configdir = $(sysconfdir)/lxc
-config_DATA = default.conf
-
-EXTRA_DIST = default.conf.lxcbr default.conf.libvirt default.conf.unknown
-
-distclean-local:
-       @$(RM) -f default.conf
-       @$(RM) -f compile config.guess config.sub depcomp install-sh ltmain.sh missing Makefile.in Makefile
diff --git a/config/init/Makefile.am b/config/init/Makefile.am
deleted file mode 100644 (file)
index 1a9c7b2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = common systemd sysvinit upstart
diff --git a/config/init/common/Makefile.am b/config/init/common/Makefile.am
deleted file mode 100644 (file)
index 8c0134c..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-EXTRA_DIST = lxc-containers.in lxc-net.in
-pkglibexec_SCRIPTS = lxc-containers lxc-net
diff --git a/config/init/systemd/Makefile.am b/config/init/systemd/Makefile.am
deleted file mode 100644 (file)
index 4a4fde5..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-EXTRA_DIST = \
-       lxc-apparmor-load \
-       lxc.service.in \
-       lxc@.service.in \
-       lxc-net.service.in \
-       lxc-monitord.service.in
-
-if INIT_SCRIPT_SYSTEMD
-BUILT_SOURCES = lxc.service lxc@.service lxc-net.service lxc-monitord.service
-
-install-systemd: lxc.service lxc@.service lxc-net.service lxc-monitord.service lxc-apparmor-load
-       $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
-       $(INSTALL_DATA) lxc.service lxc@.service lxc-net.service lxc-monitord.service $(DESTDIR)$(SYSTEMD_UNIT_DIR)/
-
-uninstall-systemd:
-       rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc.service
-       rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc@.service
-       rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc-net.service
-       rm -f $(DESTDIR)$(SYSTEMD_UNIT_DIR)/lxc-monitord.service
-       rmdir $(DESTDIR)$(SYSTEMD_UNIT_DIR) || :
-
-pkglibexec_SCRIPTS = lxc-apparmor-load
-
-install-data-local: install-systemd
-uninstall-local: uninstall-systemd
-endif
diff --git a/config/init/sysvinit/Makefile.am b/config/init/sysvinit/Makefile.am
deleted file mode 100644 (file)
index e8b9f4f..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-EXTRA_DIST = lxc-containers.in lxc-net.in
-
-if INIT_SCRIPT_SYSV
-# If we're installing for sysv init, install the helper scripts
-# directly to the rc directory under the appropriate name.
-
-if HAVE_DEBIAN
-initdir = "init.d"
-else
-initdir = "rc.d/init.d"
-endif
-
-install-sysvinit: lxc-containers lxc-net
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/$(initdir)
-       $(INSTALL_SCRIPT) lxc-containers $(DESTDIR)$(sysconfdir)/$(initdir)/lxc
-       $(INSTALL_SCRIPT) lxc-net $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net
-
-uninstall-sysvinit:
-       rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc
-       rm -f $(DESTDIR)$(sysconfdir)/$(initdir)/lxc-net
-       rmdir $(DESTDIR)$(sysconfdir)/$(initdir) || :
-
-install-data-local: install-sysvinit
-uninstall-local: uninstall-sysvinit
-endif
diff --git a/config/init/upstart/Makefile.am b/config/init/upstart/Makefile.am
deleted file mode 100644 (file)
index 5552d32..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-EXTRA_DIST = lxc.conf lxc-instance.conf lxc-net.conf.in
-
-if INIT_SCRIPT_UPSTART
-install-upstart: lxc.conf lxc-instance.conf lxc-net.conf
-       $(MKDIR_P) $(DESTDIR)$(sysconfdir)/init/
-       $(INSTALL_DATA) lxc.conf $(DESTDIR)$(sysconfdir)/init/
-       $(INSTALL_DATA) $(srcdir)/lxc-instance.conf $(DESTDIR)$(sysconfdir)/init/
-       $(INSTALL_DATA) lxc-net.conf $(DESTDIR)$(sysconfdir)/init/
-
-uninstall-upstart:
-       rm -f $(DESTDIR)$(sysconfdir)/init/lxc.conf
-       rm -f $(DESTDIR)$(sysconfdir)/init/lxc-instance.conf
-       rm -f $(DESTDIR)$(sysconfdir)/init/lxc-net.conf
-       rmdir $(DESTDIR)$(sysconfdir)/init || :
-
-install-data-local: install-upstart
-uninstall-local: uninstall-upstart
-endif
diff --git a/config/selinux/Makefile.am b/config/selinux/Makefile.am
deleted file mode 100644 (file)
index 9a2b21c..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-selinuxdir=@DATADIR@/lxc/selinux
-
-EXTRA_DIST = \
-       lxc.if lxc.te
-
-selinux_DATA = \
-       lxc.if \
-       lxc.te
diff --git a/config/sysconfig/Makefile.am b/config/sysconfig/Makefile.am
deleted file mode 100644 (file)
index 3829a01..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-sysconfigdir="@LXC_DISTRO_SYSCONF@"
-
-sysconfig_DATA = \
-       lxc
-
-EXTRA_DIST = $(sysconfig_DATA)
diff --git a/config/templates/Makefile.am b/config/templates/Makefile.am
deleted file mode 100644 (file)
index 3ec5809..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-templatesconfigdir=@LXCTEMPLATECONFIG@
-
-EXTRA_DIST = common.seccomp
-
-SUBDIRS = common.conf.d
-
-templatesconfig_DATA = common.conf \
-                      common.seccomp \
-                      nesting.conf \
-                      oci.common.conf \
-                      userns.conf
diff --git a/config/templates/common.conf.d/Makefile.am b/config/templates/common.conf.d/Makefile.am
deleted file mode 100644 (file)
index b974249..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-templatesconfigdir=@LXCTEMPLATECONFIG@/common.conf.d/
-
-EXTRA_DIST = README
-
-templatesconfig_DATA = \
-       README
diff --git a/config/yum/Makefile.am b/config/yum/Makefile.am
deleted file mode 100644 (file)
index b77ae6f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-yumpluginsdir=$(datadir)/lxc
-
-yumplugins_DATA = \
-       lxc-patch.py
-
-EXTRA_DIST = $(yumplugins_DATA)
diff --git a/configure.ac b/configure.ac
deleted file mode 100644 (file)
index 946a909..0000000
+++ /dev/null
@@ -1,1154 +0,0 @@
-AC_PREREQ([2.69])
-
-m4_define([lxc_devel], 1)
-m4_define([lxc_version_major], 4)
-m4_define([lxc_version_minor], 0)
-m4_define([lxc_version_micro], 0)
-m4_define([lxc_version_beta], [])
-
-m4_define([lxc_abi_major], 1)
-m4_define([lxc_abi_minor], 7)
-m4_define([lxc_abi_micro], 0)
-m4_define([lxc_abi], [lxc_abi_major.lxc_abi_minor.lxc_abi_micro])
-
-m4_define([lxc_version_base], [lxc_version_major.lxc_version_minor.lxc_version_micro])
-m4_define([lxc_version],
-       [ifelse(lxc_devel, 1,
-        ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta])-devel,
-        ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta]))])
-
-AC_INIT([lxc],[lxc_version])
-
-# We need pkg-config
-PKG_PROG_PKG_CONFIG
-
-AC_SUBST(LXC_VERSION_BASE, lxc_version_base)
-AC_SUBST(LXC_VERSION_BETA, lxc_version_beta)
-
-AC_SUBST([LXC_VERSION_MAJOR], [lxc_version_major])
-AC_SUBST([LXC_VERSION_MINOR], [lxc_version_minor])
-AC_SUBST([LXC_VERSION_MICRO], [lxc_version_micro])
-AC_SUBST([LXC_VERSION], [lxc_version])
-AC_SUBST([LXC_DEVEL], [lxc_devel])
-
-AC_SUBST([LXC_ABI_MAJOR], [lxc_abi_major])
-AC_SUBST([LXC_ABI_MINOR], [lxc_abi_minor])
-AC_SUBST([LXC_ABI_MICRO], [lxc_abi_micro])
-AC_SUBST([LXC_ABI], [lxc_abi])
-
-AC_CONFIG_SRCDIR([configure.ac])
-AC_CONFIG_AUX_DIR([config])
-AC_CONFIG_HEADERS([src/config.h])
-AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability subdir-objects])
-AC_CANONICAL_HOST
-AM_PROG_CC_C_O
-AC_USE_SYSTEM_EXTENSIONS
-AC_SYS_LARGEFILE
-AC_GNU_SOURCE
-
-# Test if we have a new enough compiler.
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#define GCC_VERSION \
-       (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
-
-#define CLANG_VERSION \
-       (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__)
-
-#if GCC_VERSION < 40700 && CLANG_VERSION < 10000
-#error Sorry, your compiler is too old - please upgrade it
-#endif
-       ]])], [valid_compiler=yes], [valid_compiler=no])
-if test "x$valid_compiler" = "xno"; then
-       AC_MSG_ERROR([Sorry, your compiler is too old - please upgrade it])
-fi
-
-AC_PROG_GCC_TRADITIONAL
-AC_PROG_CXX
-AC_ENABLE_SHARED
-AC_ENABLE_STATIC
-# Check binaries
-AC_PROG_SED
-case $CC in clang*)
-       AC_CHECK_TOOL([AR], llvm-ar)
-       AC_CHECK_TOOL([NM], llvm-nm)
-       AC_CHECK_TOOL([OBJCOPY], llvm-objcopy)
-       AC_CHECK_TOOL([RANLIB], llvm-ranlib)
-esac
-
-# libtool
-LT_INIT
-AC_SUBST([LIBTOOL_DEPS])
-
-# Detect the distribution. This is used for the default configuration and
-# for some distro-specific build options.
-AC_MSG_CHECKING([host distribution])
-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.]))
-if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
-       with_distro=$(lsb_release -is)
-fi
-if test "z$with_distro" = "z"; then
-       AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
-       AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
-       AC_CHECK_FILE(/etc/sparclinux-release,with_distro="sparclinux")
-       AC_CHECK_FILE(/etc/centos-release,with_distro="centos")
-       AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
-       AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
-       AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
-       AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
-       AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
-       AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
-       AC_CHECK_FILE(/etc/plamo-version,with_distro="plamo")
-       AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
-       AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
-       AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
-       AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
-       AC_CHECK_FILE(/etc/altlinux-release,with_distro="altlinux")
-       AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
-fi
-with_distro=$(echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]')
-
-if test "z$with_distro" = "zforsparc"; then
-       with_distro="sparclinux"
-fi
-
-if test "z$with_distro" = "z"; then
-       with_distro="unknown"
-fi
-case $with_distro in
-       ubuntu|raspbian)
-               distroconf=default.conf.lxcbr
-               distrosysconf="$sysconfdir/default"
-               ;;
-       redhat|redhatenterpriseserver|centos|fedora|oracle|oracleserver|sparclinux|altlinux|suse|opensuse*|plamo|pld)
-               distroconf=default.conf.lxcbr
-               distrosysconf="$sysconfdir/sysconfig"
-               ;;
-       *)
-               distroconf=default.conf.unknown
-               distrosysconf="$sysconfdir/default"
-               ;;
-esac
-AC_MSG_RESULT([$with_distro])
-AM_CONDITIONAL([HAVE_DEBIAN], [test x"$with_distro" = "xdebian" -o x"$with_distro" = "xubuntu" -o x"$with_distro" = "xraspbian"])
-AM_CONDITIONAL([DISTRO_UBUNTU], [test "x$with_distro" = "xubuntu"])
-
-AC_CONFIG_LINKS([config/etc/default.conf:config/etc/${distroconf}])
-
-# Check for init system type
-AC_MSG_CHECKING([for init system type])
-AC_ARG_WITH([init-script],
-           [AS_HELP_STRING([--with-init-script@<:@=TYPE@<:@,TYPE,...@:>@@:>@],
-                           [Type(s) of init script to install: sysvinit, systemd, upstart,
-                            distro @<:@default=distro@:>@])],[],[with_init_script=distro])
-case "$with_init_script" in
-       distro)
-               case $with_distro in
-                       fedora|altlinux|opensuse*)
-                               init_script=systemd
-                               ;;
-                       redhat|redhatenterpriseserver|oracle|oracleserver|sparclinux|plamo)
-                               init_script=sysvinit
-                               ;;
-                       centos)
-                               init_script=sysvinit,systemd
-                               ;;
-                       debian|raspbian|ubuntu)
-                               init_script=upstart,systemd
-                               ;;
-                       pld)
-                               init_script=sysvinit,upstart,systemd
-                               ;;
-                       *)
-                               echo -n "Linux distribution init system unknown."
-                               init_script=
-                               ;;
-               esac
-               ;;
-       *)
-               init_script=$with_init_script
-               ;;
-esac
-
-# Check valid init systems were given, run in subshell so we don't mess up IFS
-(IFS="," ; for init_sys in $init_script;
-do
-       case "$init_sys" in
-               none|sysvinit|systemd|upstart)
-                       ;;
-               *)
-                       exit 1
-                       ;;
-       esac
-done) || AC_MSG_ERROR([Unknown init system type in $init_script])
-
-AM_CONDITIONAL([INIT_SCRIPT_SYSV], [echo "$init_script" |grep -q "sysvinit"])
-AM_CONDITIONAL([INIT_SCRIPT_SYSTEMD], [echo "$init_script" |grep -q "systemd"])
-AM_CONDITIONAL([INIT_SCRIPT_UPSTART], [echo "$init_script" |grep -q "upstart"])
-AC_MSG_RESULT($init_script)
-
-# systemd unit dir
-AC_ARG_WITH([systemdsystemunitdir],
-       AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
-       [with_systemdsystemunitdir=$withval],
-       [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
-if test -z "$with_systemdsystemunitdir"; then
-  with_systemdsystemunitdir=/lib/systemd/system
-fi
-if test "x$with_systemdsystemunitdir" != "xno"; then
-  AC_SUBST([SYSTEMD_UNIT_DIR], [$with_systemdsystemunitdir])
-fi
-
-AC_ARG_ENABLE([werror],
-       [AS_HELP_STRING([--disable-werror], [do not treat warnings as errors])],
-       [enable_werror=$enableval], [enable_werror=yes])
-
-AC_ARG_ENABLE([no_undefined],
-       [AS_HELP_STRING([--disable-no-undefined], [do not pass -Wl,--no-undefined])],
-       [enable_no_undefined=$enableval], [enable_no_undefined=yes])
-AM_CONDITIONAL([ENABLE_NO_UNDEFINED], [test "x$enable_no_undefined" = "xyes"])
-
-AC_ARG_ENABLE([fuzzers],
-       [AS_HELP_STRING([--enable-fuzzers], [compile with fuzzers])],
-       [enable_fuzzers=$enableval], [enable_fuzzers=no])
-AM_CONDITIONAL([ENABLE_FUZZERS], [test "x$enable_fuzzers" = "xyes"])
-
-AM_CONDITIONAL([OSS_FUZZ], [test "x$LIB_FUZZING_ENGINE" != x])
-
-# Allow disabling rpath
-AC_ARG_ENABLE([rpath],
-       [AS_HELP_STRING([--enable-rpath], [set rpath in executables [default=no]])],
-       [enable_rpath=$enableval], [enable_rpath=no])
-AM_CONDITIONAL([ENABLE_RPATH], [test "x$enable_rpath" = "xyes"])
-
-# Documentation (manpages)
-AC_ARG_ENABLE([doc],
-       [AS_HELP_STRING([--enable-doc], [make man pages [default=auto]])],
-       [enable_doc=$enableval], [enable_doc=auto])
-
-if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
-       db2xman=""
-       dbparsers="docbook2X2man docbook2x-man db2x_docbook2man docbook2man docbook-to-man"
-
-       AC_MSG_CHECKING(for docbook2x-man)
-       for name in ${dbparsers}; do
-               if "$name" --help >/dev/null 2>&1; then
-                       db2xman="$name"
-                       break;
-               fi
-       done
-
-       if test -n "${db2xman}"; then
-               AC_MSG_RESULT([${db2xman}])
-               enable_doc="yes"
-       else
-               AC_MSG_RESULT([no])
-               if test "x$enable_doc" = "xyes"; then
-                       AC_MSG_ERROR([docbook2x-man is required, but could not be found])
-               fi
-               enable_doc="no"
-       fi
-
-       AC_SUBST(db2xman)
-fi
-AM_CONDITIONAL([ENABLE_DOCBOOK], [test "x$db2xman" != "x"])
-AM_CONDITIONAL([USE_DOCBOOK2X], [test "x$db2xman" != "xdocbook2man"])
-
-if test "x$db2xman" = "xdocbook2man"; then
-       docdtd="\"-//Davenport//DTD DocBook V3.0//EN\""
-else
-       docdtd="\"-//OASIS//DTD DocBook XML\" \"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\""
-fi
-AC_SUBST(docdtd)
-
-# Documentation (API)
-AC_ARG_ENABLE([api-docs],
-       [AS_HELP_STRING([--enable-api-docs], [make API documentation [default=auto]])],
-       [enable_api_docs=$enableval], [enable_api_docs=auto])
-
-if test "x$enable_api_docs" = "xyes" -o "x$enable_api_docs" = "xauto"; then
-       AC_CHECK_PROGS([HAVE_DOXYGEN],[doxygen])
-       AC_SUBST([HAVE_DOXYGEN])
-
-       if test "x$HAVE_DOXYGEN" != "x"; then
-               enable_api_docs="yes"
-       else
-               if test "x$enable_api_docs" = "xyes"; then
-                       AC_MSG_ERROR([doxygen is required, but could not be found])
-               fi
-               enable_api_docs="no"
-       fi
-fi
-
-AM_CONDITIONAL([ENABLE_API_DOCS], [test "x$HAVE_DOXYGEN" != "x"])
-
-AC_CONFIG_MACRO_DIRS([config])
-
-# Apparmor
-AC_ARG_ENABLE([apparmor],
-       [AS_HELP_STRING([--enable-apparmor], [enable apparmor support [default=auto]])],
-       [enable_apparmor=$enableval], [enable_apparmor=auto])
-
-if test "$enable_apparmor" = "auto" ; then
-       AC_CHECK_LIB([apparmor],[aa_change_profile],[enable_apparmor=yes], [enable_apparmor=no])
-fi
-AM_CONDITIONAL([ENABLE_APPARMOR], [test "x$enable_apparmor" = "xyes"])
-
-# OpenSSL
-# libssl-dev
-AC_ARG_ENABLE([openssl],
-       [AS_HELP_STRING([--enable-openssl], [enable OpenSSL support [default=auto]])],
-       [enable_openssl=$enableval], [enable_openssl=auto])
-
-if test "$enable_openssl" = "auto" ; then
-       AC_CHECK_LIB([ssl], [OPENSSL_init_ssl], [enable_openssl=yes], [enable_openssl=no])
-
-fi
-AM_CONDITIONAL([ENABLE_OPENSSL], [test "x$enable_openssl" = "xyes"])
-
-AC_ARG_ENABLE([static-binaries],
-       [AS_HELP_STRING([--enable-static-binaries], [build all binaries statically [default=no]])],
-       [enable_static_binaries=$enableval], [enable_static_binaries=no])
-AM_CONDITIONAL([ENABLE_STATIC_BINARIES], [test "x$enable_static_binaries" = "xyes"])
-
-AM_COND_IF([ENABLE_OPENSSL],
-       [AC_CHECK_HEADER([openssl/engine.h],[],[AC_MSG_ERROR([You must install the OpenSSL development package in order to compile lxc])])
-       AM_COND_IF([ENABLE_STATIC_BINARIES], [AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto -ldl')], [AC_SUBST([OPENSSL_LIBS], '-lssl -lcrypto')])])
-
-# SELinux
-AC_ARG_ENABLE([selinux],
-       [AS_HELP_STRING([--enable-selinux], [enable SELinux support [default=auto]])],
-       [enable_selinux=$enableval], [enable_selinux=auto])
-
-if test "x$enable_selinux" = xauto; then
-       AC_CHECK_LIB([selinux],[setexeccon_raw],[enable_selinux=yes],[enable_selinux=no])
-fi
-AM_CONDITIONAL([ENABLE_SELINUX], [test "x$enable_selinux" = "xyes"])
-AM_COND_IF([ENABLE_SELINUX],
-       [AC_CHECK_HEADER([selinux/selinux.h],[],[AC_MSG_ERROR([You must install the SELinux development package in order to compile lxc])])
-       AC_CHECK_LIB([selinux], [setexeccon_raw],[true],[AC_MSG_ERROR([You must install the SELinux development package in order to compile lxc])])
-       AC_SUBST([SELINUX_LIBS], [-lselinux])])
-
-# Seccomp syscall filter
-AC_ARG_ENABLE([seccomp],
-       [AS_HELP_STRING([--enable-seccomp], [enable seccomp support [default=auto]])],
-       [enable_seccomp=$enableval], [enable_seccomp=auto])
-
-if test "x$enable_seccomp" = "xauto" ; then
-       AC_CHECK_LIB([seccomp],[seccomp_init],[enable_seccomp=yes],[enable_seccomp=no])
-fi
-AM_CONDITIONAL([ENABLE_SECCOMP], [test "x$enable_seccomp" = "xyes"])
-
-AM_COND_IF([ENABLE_SECCOMP],
-       [PKG_CHECK_MODULES([SECCOMP],[libseccomp],[],[
-               AC_CHECK_HEADER([seccomp.h],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])])
-               AC_CHECK_LIB([seccomp], [seccomp_init],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])])
-               AC_SUBST([SECCOMP_LIBS], [-lseccomp])
-               ])
-       # HAVE_SCMP_FILTER_CTX=1 will tell us we have libseccomp api >= 1.0.0
-       OLD_CFLAGS="$CFLAGS"
-       CFLAGS="$CFLAGS $SECCOMP_CFLAGS"
-       AC_CHECK_TYPES([scmp_filter_ctx], [], [], [[#include <seccomp.h>]])
-       AC_CHECK_DECLS([seccomp_notify_fd], [], [], [[#include <seccomp.h>]])
-       AC_CHECK_TYPES([struct seccomp_notif_sizes], [], [], [[#include <seccomp.h>]])
-       AC_CHECK_DECLS([seccomp_syscall_resolve_name_arch], [], [], [[#include <seccomp.h>]])
-       CFLAGS="$OLD_CFLAGS"
-       ])
-
-AC_MSG_CHECKING(for static libcap)
-# Check for static libcap, make sure the function checked for differs from the
-# the one checked below so the cache doesn't give a wrong answer
-OLD_CFLAGS="$CFLAGS"
-OLD_CPPFLAGS="$CPPFLAGS"
-OLD_LDFLAGS="$LDFLAGS"
-OLD_LIBS="$LIBS"
-CFLAGS=""
-CPPFLAGS=""
-LDFLAGS="-static"
-LIBS="-lcap"
-AC_LINK_IFELSE([
-  AC_LANG_SOURCE(
-    [[int main() { return 0; }]]
-  )],[have_static_libcap=yes],[have_static_libcap=no])
-AM_CONDITIONAL([HAVE_STATIC_LIBCAP], [test "x$have_static_libcap" = "xyes"])
-if test "x$have_static_libcap" = "xyes"; then
-       AC_DEFINE([HAVE_STATIC_LIBCAP], 1, [Have static libcap])
-       AC_MSG_RESULT([yes])
-else
-       AC_MSG_RESULT([no])
-fi
-CPPFLAGS="$OLD_CPPFLAGS"
-CFLAGS="$OLD_CFLAGS"
-LDFLAGS="$OLD_LDFLAGS"
-LIBS="$OLD_LIBS"
-
-
-# Linux capabilities
-AC_ARG_ENABLE([capabilities],
-       [AS_HELP_STRING([--enable-capabilities], [enable kernel capabilities support [default=auto]])],
-       [enable_capabilities=$enableval], [enable_capabilities=auto])
-
-if test "x$enable_capabilities" = "xauto"; then
-       AC_CHECK_LIB([cap],[cap_set_proc],[enable_capabilities=yes],[enable_capabilities=no])
-fi
-AM_CONDITIONAL([ENABLE_CAP], [test "x$enable_capabilities" = "xyes"])
-
-AM_COND_IF([ENABLE_CAP],
-       [AC_CHECK_HEADER([sys/capability.h],[],[AC_MSG_ERROR([You must install the libcap development package in order to compile lxc])])
-       AC_CHECK_LIB(cap,cap_set_proc,[],[AC_MSG_ERROR([You must install the libcap development package in order to compile lxc])])
-        # Test whether we support getting file capabilities via cap_get_file().
-        AC_CHECK_LIB(cap,cap_get_file, AC_DEFINE(LIBCAP_SUPPORTS_FILE_CAPABILITIES,1,[Have cap_get_file]),[],[])
-        AC_SUBST([CAP_LIBS], [-lcap])])
-
-# Configuration examples
-AC_ARG_ENABLE([examples],
-       [AS_HELP_STRING([--enable-examples], [install examples [default=yes]])],
-       [enable_examples=$enableval], [enable_examples=yes])
-AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"])
-
-# Enable dumping stack traces
-AC_ARG_ENABLE([mutex-debugging],
-       [AS_HELP_STRING([--enable-mutex-debugging], [Makes mutexes to report error and provide stack trace [default=no]])],
-       [enable_mutex_debugging=$enableval], [enable_mutex_debugging=no])
-AM_CONDITIONAL([MUTEX_DEBUGGING], [test "x$enable_mutex_debugging" = "xyes"])
-
-AM_COND_IF([MUTEX_DEBUGGING],
-       AC_DEFINE_UNQUOTED([MUTEX_DEBUGGING], 1, [Enabling mutex debugging]))
-
-# Not in older autoconf versions
-# AS_VAR_COPY(DEST, SOURCE)
-# -------------------------
-# Set the polymorphic shell variable DEST to the contents of the polymorphic
-# shell variable SOURCE.
-m4_ifdef([AS_VAR_COPY], [],
-[AC_DEFUN([AS_VAR_COPY],
-    [AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])
-])
-
-dnl PKG_CHECK_VAR was introduced with pkg-config 0.28
-m4_ifdef([PKG_CHECK_VAR], [],
-[AC_DEFUN([PKG_CHECK_VAR],
-    [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-     AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
-     _PKG_CONFIG([$1], [variable="][$3]["], [$2])
-     AS_VAR_COPY([$1], [pkg_cv_][$1])
-     AS_VAR_IF([$1], [""], [$5], [$4])dnl
-    ])# PKG_CHECK_VAR
-])
-
-# Optional bash integration
-AC_ARG_ENABLE([bash],
-       [AS_HELP_STRING([--enable-bash], [build bash integration [default=yes]])],
-       [enable_bash=$enableval], [enable_bash=yes])
-AM_CONDITIONAL([ENABLE_BASH], [test "x$enable_bash" = "xyes"])
-
-AM_COND_IF([ENABLE_BASH],
-       [AC_MSG_CHECKING([bash completion directory])
-       PKG_CHECK_VAR(bashcompdir, [bash-completion], [completionsdir], ,
-               bashcompdir="${sysconfdir}/bash_completion.d")
-       AC_MSG_RESULT([$bashcompdir])
-       AC_SUBST(bashcompdir)
-       ])
-
-# Build the command line tools
-AC_ARG_ENABLE([tools],
-       [AS_HELP_STRING([--enable-tools], [build the command line tools [default=yes]])],
-       [enable_tools=$enableval], [enable_tools=yes])
-AM_CONDITIONAL([ENABLE_TOOLS], [test "x$enable_tools" = "xyes"])
-
-# Build the liblxc commands
-AC_ARG_ENABLE([commands],
-       [AS_HELP_STRING([--enable-commands], [build the liblxc commands [default=yes]])],
-       [enable_commands=$enableval], [enable_commands=yes])
-AM_CONDITIONAL([ENABLE_COMMANDS], [test "x$enable_commands" = "xyes"])
-
-AC_ARG_ENABLE([static-binaries],
-       [AS_HELP_STRING([--enable-static-binaries], [build all binaries statically [default=no]])],
-       [enable_static_binaries=$enableval], [enable_static_binaries=no])
-AM_CONDITIONAL([ENABLE_STATIC_BINARIES], [test "x$enable_static_binaries" = "xyes"])
-
-AC_ARG_ENABLE([sanitizers],
-       [AS_HELP_STRING([--enable-sanitizers], [build with sanitizers enabled [default=no]])],
-       [enable_sanitizers=$enableval], [enable_sanitizers=no])
-AM_CONDITIONAL([ENABLE_SANITIZERS], [test "x$enable_sanitizers" = "xyes"])
-if test "x$enable_sanitizers" = "xyes"; then
-       AC_DEFINE([ENABLE_SANITIZERS], 1, [build with sanitizers enabled])
-
-       CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-               -fsanitize=address \
-               -fsanitize=undefined \
-               -fno-optimize-sibling-calls \
-               -fno-omit-frame-pointer])
-       AC_SUBST(AM_CFLAGS)
-
-       CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
-               -fsanitize=address \
-               -fsanitize=undefined])
-       AC_SUBST(AM_LDFLAGS)
-
-       AC_MSG_RESULT([yes])
-else
-       AC_MSG_RESULT([no])
-fi
-
-if test "x$enable_fuzzers" = "xyes"; then
-       if test "x$LIB_FUZZING_ENGINE" = x; then
-               CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-                       -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
-                       -DRUN_ON_OSS_FUZZ=0 \
-                       -fsanitize=fuzzer-no-link])
-       else
-               CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-                       -DRUN_ON_OSS_FUZZ=1])
-       fi
-fi
-
-if test "x$enable_fuzzers" = "xno" -a "x$enable_sanitizers" = "xno"; then
-       CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[-flto=thin])
-fi
-AC_SUBST(AM_CFLAGS)
-
-# Optional test binaries
-AC_ARG_ENABLE([tests],
-       [AS_HELP_STRING([--enable-tests], [build test/example binaries [default=no]])],
-       [enable_tests=$enableval], [enable_tests=no])
-AM_CONDITIONAL([ENABLE_TESTS], [test "x$enable_tests" = "xyes"])
-
-# Allow overriding the default runtime dir (/run)
-AC_ARG_WITH([runtime-path],
-       [AS_HELP_STRING([--with-runtime-path=dir], [runtime directory (default: /run)])],
-       [with_runtime_path=$withval], [with_runtime_path=['/run']])
-
-# LXC container path, where the containers are actually stored
-# This is overridden by an entry in the file called LXCCONF
-# (i.e. /etc/lxc/lxc.conf)
-AC_ARG_WITH([config-path],
-       [AS_HELP_STRING([--with-config-path=dir], [lxc configuration repository path])],
-       [with_config_path=$withval], [with_config_path=['${localstatedir}/lib/lxc']])
-
-# The path of the global lxc configuration file.
-AC_ARG_WITH([global-conf],
-       [AS_HELP_STRING([--with-global-conf=dir], [global lxc configuration file])],
-       [with_global_conf=$withval], [with_global_conf=['${sysconfdir}/lxc/lxc.conf']])
-
-# The path of the userns network configuration file
-AC_ARG_WITH([usernic-conf],
-       [AS_HELP_STRING([--with-usernic-conf], [user network interface configuration file])],
-       [with_usernic_conf=$withval], [with_usernic_conf=['${sysconfdir}/lxc/lxc-usernet']])
-
-# The path of the runtime usernic database
-AC_ARG_WITH([usernic-db],
-       [AS_HELP_STRING([--with-usernic-db], [lxc user nic database])],
-       [with_usernic_db=$withval], [with_usernic_db=['${with_runtime_path}/lxc/nics']])
-
-# Rootfs path, where the container mount structure is assembled
-AC_ARG_WITH([rootfs-path],
-       [AS_HELP_STRING([--with-rootfs-path=dir], [lxc rootfs mount point])],
-       [with_rootfs_path=$withval], [with_rootfs_path=['${libdir}/lxc/rootfs']])
-
-# cgroup pattern specification
-AC_ARG_WITH([cgroup-pattern],
-       [AS_HELP_STRING([--with-cgroup-pattern=pattern], [pattern for container cgroups])],
-       [with_cgroup_pattern=$withval], [with_cgroup_pattern=['']])
-
-# The path for the apparmor_parser's cache for generated apparmor profiles
-AC_ARG_WITH([apparmor-cache-dir],
-       [AS_HELP_STRING([--with-apparmor-cache-dir=dir],[path for apparmor_parser cache])],
-       [with_apparmor_cache_dir=$withval], [with_apparmor_cache_dir=['${localstatedir}/cache/lxc/apparmor']])
-
-# Container log path.  By default, use $lxcpath.
-AC_MSG_CHECKING([Whether to place logfiles in container config path])
-AC_ARG_ENABLE([configpath-log],
-       [AS_HELP_STRING([--enable-configpath-log], [use logfiles in config path [default=no]])],
-       [enable_configpath_log=$enableval], [enable_configpath_log=no])
-AC_MSG_RESULT([$enable_configpath_log])
-AM_CONDITIONAL([USE_CONFIGPATH_LOGS], [test "$enable_configpath_log" = "yes"])
-
-if test "$enable_configpath_log" = "yes"; then
-       default_log_path="${with_config_path}"
-else
-       default_log_path="${localstatedir}/log/lxc"
-fi
-
-AC_ARG_WITH([log-path],
-       [AS_HELP_STRING([--with-log-path=dir],[per container log path])],
-       [with_log_path=$withval], [with_log_path=['${default_log_path}']])
-
-# Expand some useful variables
-AS_AC_EXPAND(PREFIX, "$prefix")
-AS_AC_EXPAND(LIBDIR, "$libdir")
-AS_AC_EXPAND(BINDIR, "$bindir")
-AS_AC_EXPAND(SBINDIR, "$sbindir")
-AS_AC_EXPAND(LIBEXECDIR, "$libexecdir")
-AS_AC_EXPAND(INCLUDEDIR, "$includedir")
-AS_AC_EXPAND(SYSCONFDIR, "$sysconfdir")
-AS_AC_EXPAND(LXC_DEFAULT_CONFIG, "$sysconfdir/lxc/default.conf")
-AS_AC_EXPAND(DATADIR, "$datadir")
-AS_AC_EXPAND(LOCALSTATEDIR, "$localstatedir")
-AS_AC_EXPAND(DOCDIR, "$docdir")
-AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)} '+%Y-%m-%d')")
-AS_AC_EXPAND(LXCPATH, "$with_config_path")
-AS_AC_EXPAND(LXC_GLOBAL_CONF, "$with_global_conf")
-AS_AC_EXPAND(LXC_USERNIC_CONF, "$with_usernic_conf")
-AS_AC_EXPAND(LXC_USERNIC_DB, "$with_usernic_db")
-AS_AC_EXPAND(LXC_DISTRO_SYSCONF, "$distrosysconf")
-AS_AC_EXPAND(LXCROOTFSMOUNT, "$with_rootfs_path")
-AS_AC_EXPAND(LXCTEMPLATEDIR, "$datadir/lxc/templates")
-AS_AC_EXPAND(LXCTEMPLATECONFIG, "$datadir/lxc/config")
-AS_AC_EXPAND(LXCHOOKDIR, "$datadir/lxc/hooks")
-AS_AC_EXPAND(LXCBINHOOKDIR, "$libexecdir/lxc/hooks")
-AS_AC_EXPAND(LXCINITDIR, "$libexecdir")
-AS_AC_EXPAND(LOGPATH, "$with_log_path")
-AS_AC_EXPAND(RUNTIME_PATH, "$with_runtime_path")
-AS_AC_EXPAND(APPARMOR_CACHE_DIR, "$with_apparmor_cache_dir")
-AC_SUBST(DEFAULT_CGROUP_PATTERN, ["$with_cgroup_pattern"])
-
-# We need the install path so criu knows where to reference the hook scripts.
-AC_DEFINE_UNQUOTED([DATADIR], "$DATADIR", ["Prefix for shared files."])
-
-# Check for some standard kernel headers
-AC_CHECK_HEADERS([linux/unistd.h linux/netlink.h linux/genetlink.h],
-                               [],
-                               AC_MSG_ERROR([Please install the Linux kernel headers.]),
-                               [#include <sys/socket.h>])
-
-# Check for alternate C libraries
-AC_MSG_CHECKING(for bionic libc)
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-       [[#ifndef __ANDROID__
-error: Not bionic!
-#endif]])],
-       [is_bionic=yes],
-       [is_bionic=no])
-if test "x$is_bionic" = "xyes"; then
-       AC_DEFINE([IS_BIONIC], 1, [bionic libc])
-       AC_MSG_RESULT([yes])
-else
-       AC_MSG_RESULT([no])
-fi
-AM_CONDITIONAL([IS_BIONIC], [test "x$is_bionic" = "xyes"])
-
-# Configuration examples
-AC_ARG_ENABLE([pam],
-       [AS_HELP_STRING([--enable-pam], [enable pam module [default=no]])],
-       [enable_pam=$enableval], [enable_pam=no])
-AM_CONDITIONAL([ENABLE_PAM], [test "x$enable_pam" = "xyes"])
-
-AM_COND_IF([ENABLE_PAM],
-       [AC_ARG_WITH(
-               [pamdir],
-               [AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored,
-                                                       or "none" if PAM modules are not to be built])],
-               [exec_pamdir=$withval],
-               [
-                       if test "${prefix}" = "/usr"; then
-                               exec_pamdir="/lib${libdir##*/lib}/security"
-                       else
-                               exec_pamdir="\$(libdir)/security"
-                       fi
-               ]
-       )])
-
-AM_CONDITIONAL([HAVE_PAM], [test x"$exec_pamdir" != "xnone"])
-AM_COND_IF([ENABLE_PAM],
-       [if test "z$exec_pamdir" != "znone"; then
-               AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam])
-               AC_ARG_VAR([PAM_LIBS], [linker flags for pam])
-               AC_CHECK_LIB(
-                       [pam],
-                       [pam_authenticate],
-                       [PAM_LIBS="-lpam"],
-                       [AC_MSG_ERROR([*** libpam not found.])
-                       ])
-
-               AC_SUBST(PAM_LIBS)
-               AC_SUBST([exec_pamdir])
-       fi])
-
-# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
-AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
-
-# Some systems lack PR_{G,S}ET_NO_NEW_PRIVS definition => HAVE_DECL_PR_{G,S}ET_NO_NEW_PRIVS
-AC_CHECK_DECLS([PR_SET_NO_NEW_PRIVS], [], [], [#include <sys/prctl.h>])
-AC_CHECK_DECLS([PR_GET_NO_NEW_PRIVS], [], [], [#include <sys/prctl.h>])
-
-# Check for some headers
-AC_CHECK_HEADERS([pty.h sys/memfd.h sys/personality.h sys/resource.h sys/signalfd.h sys/timerfd.h utmpx.h])
-
-AC_CHECK_HEADER([ifaddrs.h],
-       AM_CONDITIONAL(HAVE_IFADDRS_H, true)
-       AC_DEFINE(HAVE_IFADDRS_H, 1, [Have ifaddrs.h]),
-       AM_CONDITIONAL(HAVE_IFADDRS_H, false))
-
-AC_ARG_ENABLE([liburing],
-       [AS_HELP_STRING([--enable-liburing], [enable liburing support [default=auto]])],
-       [enable_liburing=$enableval], [enable_liburing=auto])
-
-if test "x$enable_liburing" = "auto"; then
-       AC_CHECK_LIB([uring],[__io_uring_sqring_wait],[enable_liburing=yes],[enable_liburing=no])
-fi
-
-AM_CONDITIONAL([ENABLE_LIBURING], [test "x$enable_liburing" = "xyes"])
-
-AM_COND_IF([ENABLE_LIBURING],
-       [AC_CHECK_HEADER([liburing.h],[],[AC_MSG_ERROR([You must install the liburing development package in order to compile lxc])])
-       # We use __io_uring_sqring_wait as an indicator whether liburing is new enough to support poll.
-       AC_CHECK_LIB([uring],[__io_uring_sqring_wait],[],[AC_MSG_ERROR([The liburing development package in order to compile lxc])])
-        AC_SUBST([LIBURING_LIBS], [-luring])])
-
-# lookup major()/minor()/makedev()
-AC_HEADER_MAJOR
-
-# Check for some syscalls functions
-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 mount_setattr sigdescr_np])
-AC_CHECK_TYPES([__aligned_u64], [], [], [[#include <linux/types.h>]])
-AC_CHECK_TYPES([struct mount_attr], [], [], [[#include <linux/mount.h>]])
-AC_CHECK_TYPES([struct open_how], [], [], [[#include <linux/openat2.h>]])
-AC_CHECK_TYPES([struct clone_args], [], [], [[#include <linux/sched.h>]])
-AC_CHECK_MEMBERS([struct clone_args.set_tid],[],[],[[#include <linux/sched.h>]])
-AC_CHECK_MEMBERS([struct clone_args.cgroup],[],[],[[#include <linux/sched.h>]])
-
-# Check for strerror_r() support. Defines:
-# - HAVE_STRERROR_R if available
-# - HAVE_DECL_STRERROR_R if defined
-# - STRERROR_R_CHAR_P if it returns char *
-AC_FUNC_STRERROR_R
-
-# Check for some functions
-AC_CHECK_LIB(pthread, main)
-AC_CHECK_LIB(util, openpty)
-AC_CHECK_FUNCS([hasmntopt setmntent endmntent utmpxname])
-AC_CHECK_FUNCS([getgrgid_r],
-       AM_CONDITIONAL(HAVE_GETGRGID_R, true)
-       AC_DEFINE(HAVE_GETGRGID_R,1,[Have getgrgid_r]),
-       AM_CONDITIONAL(HAVE_GETGRGID_R, false))
-AC_CHECK_FUNCS([getline],
-       AM_CONDITIONAL(HAVE_GETLINE, true)
-       AC_DEFINE(HAVE_GETLINE,1,[Have getline]),
-       AM_CONDITIONAL(HAVE_GETLINE, false))
-AC_CHECK_FUNCS([getsubopt],
-       AM_CONDITIONAL(HAVE_GETSUBOPT, true)
-       AC_DEFINE(HAVE_GETSUBOPT,1,[Have getsubopt]),
-       AM_CONDITIONAL(HAVE_GETSUBOPT, false))
-AC_CHECK_FUNCS([fgetln],
-       AM_CONDITIONAL(HAVE_FGETLN, true)
-       AC_DEFINE(HAVE_FGETLN,1,[Have fgetln]),
-       AM_CONDITIONAL(HAVE_FGETLN, false))
-AC_CHECK_FUNCS([keyctl],
-       AM_CONDITIONAL(HAVE_KEYCTL, true)
-       AC_DEFINE(HAVE_KEYCTL,1,[Have keyctl]),
-       AM_CONDITIONAL(HAVE_KEYCTL, false))
-AC_CHECK_FUNCS([openpty],
-       AM_CONDITIONAL(HAVE_OPENPTY, true)
-       AC_DEFINE(HAVE_OPENPTY,1,[Have openpty]),
-       AM_CONDITIONAL(HAVE_OPENPTY, false))
-AC_CHECK_FUNCS([prlimit],
-       AM_CONDITIONAL(HAVE_PRLIMIT, true)
-       AC_DEFINE(HAVE_PRLIMIT,1,[Have prlimit]),
-       AM_CONDITIONAL(HAVE_PRLIMIT, false))
-AC_CHECK_FUNCS([prlimit64],
-       AM_CONDITIONAL(HAVE_PRLIMIT64, true)
-       AC_DEFINE(HAVE_PRLIMIT64,1,[Have prlimit64]),
-       AM_CONDITIONAL(HAVE_PRLIMIT64, false))
-AC_CHECK_FUNCS([pthread_setcancelstate],
-       AM_CONDITIONAL(HAVE_PTHREAD_SETCANCELSTATE, true)
-       AC_DEFINE(HAVE_PTHREAD_SETCANCELSTATE,1,[Have pthread_setcancelstate]),
-       AM_CONDITIONAL(HAVE_PTHREAD_SETCANCELSTATE, false))
-AC_CHECK_FUNCS([strlcpy],
-       AM_CONDITIONAL(HAVE_STRLCPY, true)
-       AC_DEFINE(HAVE_STRLCPY,1,[Have strlcpy]),
-       AM_CONDITIONAL(HAVE_STRLCPY, false))
-AC_CHECK_FUNCS([strlcat],
-       AM_CONDITIONAL(HAVE_STRLCAT, true)
-       AC_DEFINE(HAVE_STRLCAT,1,[Have strlcat]),
-       AM_CONDITIONAL(HAVE_STRLCAT, false))
-AC_CHECK_FUNCS([strchrnul],
-       AM_CONDITIONAL(HAVE_STRCHRNUL, true)
-       AC_DEFINE(HAVE_STRCHRNUL,1,[Have strchnul]),
-       AM_CONDITIONAL(HAVE_STRCHRNUL, false))
-AC_CHECK_FUNCS([fmemopen],
-       AM_CONDITIONAL(HAVE_FMEMOPEN, true)
-       AC_DEFINE(HAVE_FMEMOPEN,1,[Have fmemopen]),
-       AM_CONDITIONAL(HAVE_FMEMOPEN, false))
-
-# HAVE_STRUCT_RTNL_LINK_STATS64={0,1}
-AC_CHECK_TYPES([struct rtnl_link_stats64], [], [], [[#include <linux/if_link.h>]])
-
-# Check for some libraries
-AX_PTHREAD
-AC_SEARCH_LIBS(clock_gettime, [rt])
-
-# Hardening flags
-CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-       -fPIE \
-       -Wvla \
-       -std=gnu11 \
-       -fms-extensions \
-       -fdiagnostics-color \
-       -Wimplicit-fallthrough=5 \
-       -Wcast-align \
-       -Wstrict-prototypes \
-       -fno-strict-aliasing \
-       -fstack-clash-protection \
-       -fstack-protector-strong \
-       --param=ssp-buffer-size=4 \
-       -g \
-       --mcet -fcf-protection \
-       -Werror=implicit-function-declaration \
-       -Wlogical-op \
-       -Wmissing-include-dirs \
-       -Wold-style-definition \
-       -Winit-self \
-       -Wunused-but-set-variable \
-       -Wfloat-equal \
-       -Wsuggest-attribute=noreturn \
-       -Werror=return-type \
-       -Werror=incompatible-pointer-types \
-       -Wformat=2 \
-       -Wshadow \
-       -Wendif-labels \
-       -Werror=overflow \
-       -fdiagnostics-show-option \
-       -Werror=shift-count-overflow \
-       -Werror=shift-overflow=2 \
-       -Wdate-time \
-       -Wnested-externs \
-       -fasynchronous-unwind-tables \
-       -pipe \
-       -fexceptions \
-       -Warray-bounds \
-       -Wrestrict \
-       -Wreturn-local-addr \
-       -fsanitize=cfi \
-       -Wstringop-overflow])
-AC_SUBST(AM_CFLAGS)
-
-CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
-       -Wl,--as-needed \
-        -Wl,--gc-sections \
-        -Wl,-z,relro \
-        -Wl,-z,now \
-        -pie \
-        -Wl,-fuse-ld=gold])
-
-AM_COND_IF([ENABLE_NO_UNDEFINED],
-       [CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[-Wl,--no-undefined])])
-
-AC_SUBST(AM_LDFLAGS)
-
-CFLAGS="$CFLAGS -Wvla -std=gnu11 -fms-extensions"
-if test "x$enable_werror" = "xyes"; then
-       CFLAGS="$CFLAGS -Werror"
-fi
-
-AC_ARG_ENABLE([thread-safety],
-       [AS_HELP_STRING([--enable-thread-safety], [enforce thread-safety otherwise fail the build [default=yes]])],
-       [enable_thread_safety=$enableval], [enable_thread_safety=yes])
-AM_CONDITIONAL([ENFORCE_THREAD_SAFETY], [test "x$enable_thread_safety" = "xyes"])
-if test "x$enable_thread_safety" = "xyes"; then
-       AC_DEFINE([ENFORCE_THREAD_SAFETY], 1, [enforce thread-safety otherwise fail the build])
-       AC_MSG_RESULT([yes])
-else
-       AC_MSG_RESULT([no])
-fi
-
-AC_ARG_ENABLE([coverity-build],
-       [AS_HELP_STRING([--enable-coverity-build], [build for use with Coverity [default=no]])],
-       [enable_coverity_build=$enableval], [enable_coverity_build=no])
-AM_CONDITIONAL([ENABLE_COVERITY_BUILD], [test "x$enable_coverity_build" = "xyes"])
-if test "x$enable_coverity_build" = "xyes"; then
-       AC_DEFINE([ENABLE_COVERITY_BUILD], 1, [build for use with Coverity])
-       AC_MSG_RESULT([yes])
-else
-       AC_MSG_RESULT([no])
-fi
-
-AC_ARG_ENABLE([dlog],
-       [AS_HELP_STRING([--enable-dlog], [enable dlog support [default=no]])],
-       [enable_dlog=$enableval], [enable_dlog=no])
-AM_CONDITIONAL([ENABLE_DLOG], [test "x$enable_dlog" = "xyes"])
-
-AM_COND_IF([ENABLE_DLOG],
-       [PKG_CHECK_MODULES([DLOG],[dlog],[],[
-               AC_CHECK_HEADER([dlog.h],[],[AC_MSG_ERROR([You must install the dlog development package in order to compile lxc])])
-               AC_CHECK_LIB([dlog], [dlog_print],[],[AC_MSG_ERROR([You must install the dlog development package in order to compile lxc])])
-               AC_SUBST([DLOG_LIBS], [-ldlog])
-               ])
-       ])
-
-AC_ARG_ENABLE([memfd-rexec],
-       [AS_HELP_STRING([--enable-memfd-rexec], [enforce liblxc as a memfd to protect against certain symlink attacks [default=yes]])],
-       [enable_memfd_rexec=$enableval], [enable_memfd_rexec=yes])
-AM_CONDITIONAL([ENFORCE_MEMFD_REXEC], [test "x$enable_memfd_rexec" = "xyes"])
-if test "x$enable_memfd_rexec" = "xyes"; then
-       AC_DEFINE([ENFORCE_MEMFD_REXEC], 1, [Rexec liblxc as memfd])
-       AC_MSG_RESULT([yes])
-else
-       AC_MSG_RESULT([no])
-fi
-
-# Files requiring some variable expansion
-AC_CONFIG_FILES([
-       Makefile
-       lxc.pc
-       lxc.spec
-
-       coccinelle/Makefile
-
-       config/Makefile
-       config/apparmor/Makefile
-       config/apparmor/abstractions/start-container
-       config/selinux/Makefile
-       config/bash/Makefile
-       config/bash/_lxc
-       config/init/Makefile
-       config/init/common/Makefile
-       config/init/common/lxc-containers
-       config/init/common/lxc-net
-       config/init/systemd/Makefile
-       config/init/systemd/lxc.service
-       config/init/systemd/lxc@.service
-       config/init/systemd/lxc-net.service
-       config/init/systemd/lxc-monitord.service
-       config/init/sysvinit/Makefile
-       config/init/sysvinit/lxc-containers
-       config/init/sysvinit/lxc-net
-       config/init/upstart/lxc.conf
-       config/init/upstart/lxc-net.conf
-       config/init/upstart/Makefile
-       config/etc/Makefile
-       config/templates/Makefile
-       config/templates/common.conf
-       config/templates/common.conf.d/Makefile
-       config/templates/nesting.conf
-       config/templates/oci.common.conf
-       config/templates/userns.conf
-       config/yum/Makefile
-       config/sysconfig/Makefile
-       config/sysconfig/lxc
-
-       doc/Makefile
-       doc/api/Makefile
-       doc/lxc-attach.sgml
-       doc/lxc-autostart.sgml
-       doc/lxc-cgroup.sgml
-       doc/lxc-checkconfig.sgml
-       doc/lxc-checkpoint.sgml
-       doc/lxc-config.sgml
-       doc/lxc-console.sgml
-       doc/lxc-copy.sgml
-       doc/lxc-create.sgml
-       doc/lxc-destroy.sgml
-       doc/lxc-device.sgml
-       doc/lxc-execute.sgml
-       doc/lxc-freeze.sgml
-       doc/lxc-info.sgml
-       doc/lxc-ls.sgml
-       doc/lxc-monitor.sgml
-       doc/lxc-snapshot.sgml
-       doc/lxc-start.sgml
-       doc/lxc-stop.sgml
-       doc/lxc-top.sgml
-       doc/lxc-unfreeze.sgml
-       doc/lxc-unshare.sgml
-       doc/lxc-update-config.sgml
-       doc/lxc-user-nic.sgml
-       doc/lxc-usernsexec.sgml
-       doc/lxc-wait.sgml
-
-       doc/pam_cgfs.sgml
-
-       doc/lxc.conf.sgml
-       doc/lxc.container.conf.sgml
-       doc/lxc.system.conf.sgml
-       doc/lxc-usernet.sgml
-       doc/lxc.sgml
-       doc/common_options.sgml
-       doc/see_also.sgml
-
-       doc/rootfs/Makefile
-
-       doc/examples/Makefile
-       doc/examples/lxc-macvlan.conf
-       doc/examples/lxc-vlan.conf
-       doc/examples/lxc-no-netns.conf
-       doc/examples/lxc-empty-netns.conf
-       doc/examples/lxc-phys.conf
-       doc/examples/lxc-veth.conf
-       doc/examples/lxc-complex.conf
-
-       doc/ja/Makefile
-       doc/ja/lxc-attach.sgml
-       doc/ja/lxc-autostart.sgml
-       doc/ja/lxc-cgroup.sgml
-       doc/ja/lxc-checkconfig.sgml
-       doc/ja/lxc-checkpoint.sgml
-       doc/ja/lxc-config.sgml
-       doc/ja/lxc-console.sgml
-       doc/ja/lxc-copy.sgml
-       doc/ja/lxc-create.sgml
-       doc/ja/lxc-destroy.sgml
-       doc/ja/lxc-device.sgml
-       doc/ja/lxc-execute.sgml
-       doc/ja/lxc-freeze.sgml
-       doc/ja/lxc-info.sgml
-       doc/ja/lxc-ls.sgml
-       doc/ja/lxc-monitor.sgml
-       doc/ja/lxc-snapshot.sgml
-       doc/ja/lxc-start.sgml
-       doc/ja/lxc-stop.sgml
-       doc/ja/lxc-top.sgml
-       doc/ja/lxc-unfreeze.sgml
-       doc/ja/lxc-unshare.sgml
-       doc/ja/lxc-update-config.sgml
-       doc/ja/lxc-user-nic.sgml
-       doc/ja/lxc-usernsexec.sgml
-       doc/ja/lxc-wait.sgml
-
-       doc/ja/pam_cgfs.sgml
-
-       doc/ja/lxc.conf.sgml
-       doc/ja/lxc.container.conf.sgml
-       doc/ja/lxc.system.conf.sgml
-       doc/ja/lxc-usernet.sgml
-       doc/ja/lxc.sgml
-       doc/ja/common_options.sgml
-       doc/ja/see_also.sgml
-
-       doc/ko/Makefile
-       doc/ko/lxc-attach.sgml
-       doc/ko/lxc-autostart.sgml
-       doc/ko/lxc-cgroup.sgml
-       doc/ko/lxc-checkconfig.sgml
-       doc/ko/lxc-checkpoint.sgml
-       doc/ko/lxc-config.sgml
-       doc/ko/lxc-console.sgml
-       doc/ko/lxc-copy.sgml
-       doc/ko/lxc-create.sgml
-       doc/ko/lxc-destroy.sgml
-       doc/ko/lxc-device.sgml
-       doc/ko/lxc-execute.sgml
-       doc/ko/lxc-freeze.sgml
-       doc/ko/lxc-info.sgml
-       doc/ko/lxc-ls.sgml
-       doc/ko/lxc-monitor.sgml
-       doc/ko/lxc-snapshot.sgml
-       doc/ko/lxc-start.sgml
-       doc/ko/lxc-stop.sgml
-       doc/ko/lxc-top.sgml
-       doc/ko/lxc-unfreeze.sgml
-       doc/ko/lxc-unshare.sgml
-       doc/ko/lxc-user-nic.sgml
-       doc/ko/lxc-usernsexec.sgml
-       doc/ko/lxc-wait.sgml
-
-       doc/ko/lxc.conf.sgml
-       doc/ko/lxc.container.conf.sgml
-       doc/ko/lxc.system.conf.sgml
-       doc/ko/lxc-usernet.sgml
-       doc/ko/lxc.sgml
-       doc/ko/common_options.sgml
-       doc/ko/see_also.sgml
-
-       hooks/Makefile
-       hooks/dhclient
-
-       templates/Makefile
-       templates/lxc-busybox
-       templates/lxc-download
-       templates/lxc-local
-       templates/lxc-oci
-
-       src/Makefile
-       src/lxc/Makefile
-       src/lxc/lxc.functions
-       src/lxc/cmd/lxc-checkconfig
-       src/lxc/cmd/lxc-update-config
-       src/lxc/version.h
-
-       src/tests/Makefile
-       src/tests/lxc-test-usernic
-])
-AC_CONFIG_COMMANDS([default],[[]],[[]])
-AC_OUTPUT
-
-# Configuration overview
-cat << EOF
-
-----------------------------
-Binaries
- - Command Line Tools:
-   - lxc-attach:     $enable_tools
-   - lxc-autostart:  $enable_tools
-   - lxc-cgroup:     $enable_tools
-   - lxc-checkpoint: $enable_tools
-   - lxc-config:     $enable_tools
-   - lxc-console:    $enable_tools
-   - lxc-copy:       $enable_tools
-   - lxc-create:     $enable_tools
-   - lxc-destroy:    $enable_tools
-   - lxc-device:     $enable_tools
-   - lxc-execute:    $enable_tools
-   - lxc-freeze:     $enable_tools
-   - lxc-info:       $enable_tools
-   - lxc-ls:         $enable_tools
-   - lxc-monitor:    $enable_tools
-   - lxc-snapshot:   $enable_tools
-   - lxc-start:      $enable_tools
-   - lxc-stop:       $enable_tools
-   - lxc-top:        $enable_tools
-   - lxc-unfreeze:   $enable_tools
-   - lxc-unshare:    $enable_tools
-   - lxc-wait:       $enable_tools
-
- - liblxc Commands:
-   - lxc-checkconfig:   $enable_commands
-   - lxc-update-config: $enable_commands
-   - lxc-init:          $enable_commands
-   - lxc-monitord:      $enable_commands
-   - lxc-user-nic:      $enable_commands
-   - lxc-usernsexec:    $enable_commands
-
- - static binaries: $enable_static_binaries
-
-Environment:
- - compiler: $CC
- - cflags: ${AM_CFLAGS} ${PTHREAD_CFLAGS}
- - ldflags: ${AM_LDFLAGS} ${PTHREAD_LIBS}
- - distribution: $with_distro
- - init script type(s): $init_script
- - rpath: $enable_rpath
- - OpenSSL: $enable_openssl
- - Bash integration: $enable_bash
-
-Security features:
- - Apparmor: $enable_apparmor
- - Linux capabilities: $enable_capabilities
- - seccomp: $enable_seccomp
- - SELinux: $enable_selinux
- - memfd rexec: $enable_memfd_rexec
-
-PAM:
- - PAM module: $enable_pam
- - cgroup PAM module: $exec_pamdir
-
-Documentation:
- - examples: $enable_examples
- - API documentation: $enable_api_docs
- - user documentation: $enable_doc
-
-Debugging:
- - Sanitizers: $enable_sanitizers
- - Coverity: $enable_coverity_build
- - mutex debugging: $enable_mutex_debugging
- - tests: $enable_tests
- - fuzzers: $enable_fuzzers
-
-Paths:
- - Logs in configpath: $enable_configpath_log
-
-Thread-safety:
- - enforce: $enable_thread_safety
-
-Dlog:
- - enable: $enable_dlog
-EOF
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644 (file)
index d613a75..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-SUBDIRS = examples rootfs
-DIST_SUBDIRS = examples rootfs ja ko api
-
-if USE_DOCBOOK2X
-SUBDIRS += ja ko
-endif
-
-if ENABLE_API_DOCS
-SUBDIRS += api
-endif
-
-EXTRA_DIST = api-extensions.md \
-            lxc.container.conf \
-            lxc.system.conf \
-            FAQ.txt
-
-if ENABLE_DOCBOOK
-man_MANS = lxc.conf.5 \
-          lxc.container.conf.5 \
-          lxc.system.conf.5 \
-          lxc-usernet.5 \
-          lxc.7
-if ENABLE_TOOLS
-man_MANS += lxc-attach.1 \
-           lxc-autostart.1 \
-           lxc-cgroup.1 \
-           lxc-checkconfig.1 \
-           lxc-checkpoint.1 \
-           lxc-config.1 \
-           lxc-console.1 \
-           lxc-copy.1 \
-           lxc-create.1 \
-           lxc-destroy.1 \
-           lxc-device.1 \
-           lxc-execute.1 \
-           lxc-freeze.1 \
-           lxc-info.1 \
-           lxc-ls.1 \
-           lxc-monitor.1 \
-           lxc-snapshot.1 \
-           lxc-start.1 \
-           lxc-stop.1 \
-           lxc-top.1 \
-           lxc-unfreeze.1 \
-           lxc-unshare.1 \
-           lxc-wait.1
-endif
-
-if ENABLE_PAM
-man_MANS += pam_cgfs.8
-endif
-
-if ENABLE_COMMANDS
-man_MANS += lxc-update-config.1 \
-           lxc-user-nic.1 \
-           lxc-usernsexec.1
-endif
-
-%.1 : %.sgml
-       $(db2xman) $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.5 : %.sgml
-       $(db2xman) $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.7 : %.sgml
-       $(db2xman) $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.8 : %.sgml
-       $(db2xman) $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-lxc-%.sgml : common_options.sgml see_also.sgml
-
-clean-local:
-       $(RM) manpage.* *.7 *.5 *.1 *.8 $(man_MANS)
-endif
diff --git a/doc/api/Makefile.am b/doc/api/Makefile.am
deleted file mode 100644 (file)
index 4fee21a..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-EXTRA_DIST = Doxyfile
-
-if ENABLE_API_DOCS
-html: Doxyfile
-       doxygen $<
-endif
-
-.PHONY: html
-
-all-local: html
-
-clean-local:
-       $(RM) -rf html
diff --git a/doc/examples/Makefile.am b/doc/examples/Makefile.am
deleted file mode 100644 (file)
index f97ca6c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-if ENABLE_EXAMPLES
-pkgexamplesdir=$(docdir)/examples
-
-pkgexamples_DATA = \
-       lxc-macvlan.conf \
-       lxc-vlan.conf \
-       lxc-no-netns.conf \
-       lxc-empty-netns.conf \
-       lxc-phys.conf \
-       lxc-veth.conf \
-       lxc-complex.conf \
-       seccomp-v1.conf \
-       seccomp-v2-denylist.conf \
-       seccomp-v2.conf
-endif
-
-noinst_DATA = \
-       lxc-macvlan.conf.in \
-       lxc-vlan.conf.in \
-       lxc-empty-netns.conf.in \
-       lxc-no-netns.conf.in \
-       lxc-phys.conf.in \
-       lxc-veth.conf.in \
-       lxc-complex.conf.in \
-       seccomp-v1.conf \
-       seccomp-v2-denylist.conf \
-       seccomp-v2.conf
-
-EXTRA_DIST = \
-       seccomp-v1.conf \
-       seccomp-v2-denylist.conf \
-       seccomp-v2.conf
diff --git a/doc/ja/Makefile.am b/doc/ja/Makefile.am
deleted file mode 100644 (file)
index ee46c8b..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-mandir = @mandir@/ja
-
-SUBDIRS =
-DIST_SUBDIRS =
-
-EXTRA_DIST = \
-       FAQ.txt
-
-if ENABLE_DOCBOOK
-man_MANS = lxc.conf.5 \
-          lxc.container.conf.5 \
-          lxc.system.conf.5 \
-          lxc-usernet.5 \
-          lxc.7
-
-if ENABLE_TOOLS
-man_MANS += lxc-attach.1 \
-           lxc-autostart.1 \
-           lxc-cgroup.1 \
-           lxc-checkconfig.1 \
-           lxc-checkpoint.1 \
-           lxc-config.1 \
-           lxc-console.1 \
-           lxc-copy.1 \
-           lxc-create.1 \
-           lxc-destroy.1 \
-           lxc-device.1 \
-           lxc-execute.1 \
-           lxc-freeze.1 \
-           lxc-info.1 \
-           lxc-ls.1 \
-           lxc-monitor.1 \
-           lxc-snapshot.1 \
-           lxc-start.1 \
-           lxc-stop.1 \
-           lxc-top.1 \
-           lxc-unfreeze.1 \
-           lxc-unshare.1 \
-           lxc-wait.1
-endif
-
-if ENABLE_PAM
-man_MANS += pam_cgfs.8
-endif
-
-if ENABLE_COMMANDS
-man_MANS += lxc-update-config.1 \
-           lxc-user-nic.1 \
-           lxc-usernsexec.1
-endif
-
-%.1 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.5 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.7 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.8 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-lxc-%.sgml : common_options.sgml see_also.sgml
-
-clean-local:
-       $(RM) manpage.* *.7 *.5 *.1 *.8 $(man_MANS)
-endif
diff --git a/doc/ko/Makefile.am b/doc/ko/Makefile.am
deleted file mode 100644 (file)
index 2b19683..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-mandir = @mandir@/ko
-
-SUBDIRS =
-DIST_SUBDIRS =
-
-EXTRA_DIST = \
-       FAQ.txt
-
-if ENABLE_DOCBOOK
-man_MANS = \
-       lxc-attach.1 \
-       lxc-autostart.1 \
-       lxc-cgroup.1 \
-       lxc-checkconfig.1 \
-       lxc-checkpoint.1 \
-       lxc-config.1 \
-       lxc-console.1 \
-       lxc-copy.1 \
-       lxc-create.1 \
-       lxc-destroy.1 \
-       lxc-device.1 \
-       lxc-execute.1 \
-       lxc-freeze.1 \
-       lxc-info.1 \
-       lxc-ls.1 \
-       lxc-monitor.1 \
-       lxc-snapshot.1 \
-       lxc-start.1 \
-       lxc-stop.1 \
-       lxc-top.1 \
-       lxc-unfreeze.1 \
-       lxc-unshare.1 \
-       lxc-user-nic.1 \
-       lxc-usernsexec.1 \
-       lxc-wait.1 \
-       \
-       lxc.conf.5 \
-       lxc.container.conf.5 \
-       lxc.system.conf.5 \
-       lxc-usernet.5 \
-       \
-       lxc.7
-
-%.1 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.5 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-%.7 : %.sgml
-       $(db2xman) --encoding=UTF-8 $<
-       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
-
-lxc-%.sgml : common_options.sgml see_also.sgml
-
-clean-local:
-       $(RM) manpage.* *.7 *.5 *.1 $(man_MANS)
-endif
diff --git a/doc/rootfs/Makefile.am b/doc/rootfs/Makefile.am
deleted file mode 100644 (file)
index 44d24ed..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-READMEdir=@LXCROOTFSMOUNT@
-
-README_DATA=README
diff --git a/hooks/Makefile.am b/hooks/Makefile.am
deleted file mode 100644 (file)
index e8cf37b..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-hooksdir=@LXCHOOKDIR@
-binhooksdir=@LXCBINHOOKDIR@
-
-hooks_SCRIPTS = \
-       clonehostname \
-       mountecryptfsroot \
-       ubuntu-cloud-prep \
-       dhclient-script \
-       dhclient \
-       squid-deb-proxy-client \
-       nvidia
-
-binhooks_PROGRAMS = \
-       unmount-namespace
-
-AM_CFLAGS += -I $(top_srcdir)/src \
-            -I $(top_srcdir)/src/include
-
-unmount_namespace_SOURCES = \
-       unmount-namespace.c
-
-if IS_BIONIC
-unmount_namespace_SOURCES += \
-       ../src/include/lxcmntent.c ../src/include/lxcmntent.h
-endif
-
-EXTRA_DIST=$(hooks_SCRIPTS)
diff --git a/lxc.pc.in b/lxc.pc.in
deleted file mode 100644 (file)
index 5689208..0000000
--- a/lxc.pc.in
+++ /dev/null
@@ -1,13 +0,0 @@
-bindir=@BINDIR@
-libdir=@LIBDIR@
-localstatedir=@LOCALSTATEDIR@
-includedir=@INCLUDEDIR@
-rootfsmountdir=@LXCROOTFSMOUNT@
-
-Name: lxc
-Description: linux container tools
-Version: @PACKAGE_VERSION@
-URL: http://linuxcontainers.org
-Libs: -L${libdir} -llxc -lutil -lpthread -ldl
-Libs.private: @CAP_LIBS@ @SECCOMP_LIBS@ @OPENSSL_LIBS@ @SELINUX_LIBS@ @PAM_LIBS@ @DLOG_LIBS@
-Cflags: -I${includedir}
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644 (file)
index ca3b092..0000000
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS = lxc tests
diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
deleted file mode 100644 (file)
index 6bdb50e..0000000
+++ /dev/null
@@ -1,2703 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1+
-
-pkginclude_HEADERS = attach_options.h \
-                    lxccontainer.h \
-                    version.h
-
-noinst_HEADERS = api_extensions.h \
-                attach.h \
-                ../include/bpf.h \
-                ../include/bpf_common.h \
-                caps.h \
-                cgroups/cgroup.h \
-                cgroups/cgroup_utils.h \
-                cgroups/cgroup2_devices.h \
-                compiler.h \
-                conf.h \
-                confile.h \
-                confile_utils.h \
-                criu.h \
-                error.h \
-                error_utils.h \
-                file_utils.h \
-                hlist.h \
-                ../include/strchrnul.h \
-                ../include/strlcat.h \
-                ../include/strlcpy.h \
-                ../include/netns_ifaddrs.h \
-                initutils.h \
-                list.h \
-                log.h \
-                lxc.h \
-                lxclock.h \
-                macro.h \
-                memory_utils.h \
-                monitor.h \
-                mount_utils.h \
-                namespace.h \
-                process_utils.h \
-                rexec.h \
-                start.h \
-                state.h \
-                storage/btrfs.h \
-                storage/dir.h \
-                storage/loop.h \
-                storage/lvm.h \
-                storage/nbd.h \
-                storage/overlay.h \
-                storage/rbd.h \
-                storage/rsync.h \
-                storage/storage.h \
-                storage/storage_utils.h \
-                storage/zfs.h \
-                string_utils.h \
-                syscall_numbers.h \
-                syscall_wrappers.h \
-                terminal.h \
-                ../tests/lxctest.h \
-                tools/arguments.h \
-                utils.h \
-                uuid.h
-
-if IS_BIONIC
-noinst_HEADERS += ../include/fexecve.h \
-                 ../include/lxcmntent.h
-endif
-
-if !HAVE_OPENPTY
-noinst_HEADERS += ../include/openpty.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-noinst_HEADERS += ../include/prlimit.h
-endif
-endif
-
-if !HAVE_GETLINE
-if HAVE_FGETLN
-noinst_HEADERS += ../include/getline.h
-endif
-endif
-
-if !HAVE_GETSUBOPT
-noinst_HEADERS += tools/include/getsubopt.h
-endif
-
-if !HAVE_GETGRGID_R
-noinst_HEADERS += ../include/getgrgid_r.h
-endif
-
-sodir=$(libdir)
-
-LSM_SOURCES = lsm/lsm.c \
-             lsm/lsm.h \
-             lsm/nop.c
-
-if ENABLE_APPARMOR
-LSM_SOURCES += lsm/apparmor.c
-endif
-
-if ENABLE_SELINUX
-LSM_SOURCES += lsm/selinux.c
-endif
-
-lib_LTLIBRARIES = liblxc.la
-liblxc_la_SOURCES = af_unix.c af_unix.h \
-                   api_extensions.h \
-                   attach.c attach.h \
-                   ../include/bpf.h \
-                   ../include/bpf_common.h \
-                   caps.c caps.h \
-                   cgroups/cgfsng.c \
-                   cgroups/cgroup.c cgroups/cgroup.h \
-                   cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                   cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                   compiler.h \
-                   commands.c commands.h \
-                   commands_utils.c commands_utils.h \
-                   conf.c conf.h \
-                   confile.c confile.h \
-                   confile_utils.c confile_utils.h \
-                   criu.c criu.h \
-                   error.c error.h \
-                   execute.c \
-                   error_utils.h \
-                   freezer.c \
-                   file_utils.c file_utils.h \
-                   hlist.h \
-                   ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                   initutils.c initutils.h \
-                   list.h \
-                   log.c log.h \
-                   lxc.h \
-                   lxccontainer.c lxccontainer.h \
-                   lxclock.c lxclock.h \
-                   lxcseccomp.h \
-                   macro.h \
-                   memory_utils.h \
-                   mainloop.c mainloop.h \
-                   mount_utils.c mount_utils.h \
-                   namespace.c namespace.h \
-                   network.c network.h \
-                   nl.c nl.h \
-                   monitor.c monitor.h \
-                   parse.c parse.h \
-                   process_utils.c process_utils.h \
-                   ringbuf.c ringbuf.h \
-                   rtnl.c rtnl.h \
-                   state.c state.h \
-                   start.c start.h \
-                   storage/btrfs.c storage/btrfs.h \
-                   storage/dir.c storage/dir.h \
-                   storage/loop.c storage/loop.h \
-                   storage/lvm.c storage/lvm.h \
-                   storage/nbd.c storage/nbd.h \
-                   storage/overlay.c storage/overlay.h \
-                   storage/rbd.c storage/rbd.h \
-                   storage/rsync.c storage/rsync.h \
-                   storage/storage.c storage/storage.h \
-                   storage/storage_utils.c storage/storage_utils.h \
-                   storage/zfs.c storage/zfs.h \
-                   string_utils.c string_utils.h \
-                   sync.c sync.h \
-                   syscall_numbers.h \
-                   syscall_wrappers.h \
-                   terminal.c terminal.h \
-                   utils.c utils.h \
-                   uuid.c uuid.h \
-                   version.h \
-                   $(LSM_SOURCES)
-
-if IS_BIONIC
-liblxc_la_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-                    ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_OPENPTY
-liblxc_la_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if !HAVE_GETGRGID_R
-liblxc_la_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_GETLINE
-if HAVE_FGETLN
-liblxc_la_SOURCES += ../include/getline.c ../include/getline.h
-endif
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-liblxc_la_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-if ENABLE_SECCOMP
-liblxc_la_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRLCPY
-liblxc_la_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-liblxc_la_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_STRCHRNUL
-liblxc_la_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if ENFORCE_MEMFD_REXEC
-liblxc_la_SOURCES += rexec.c rexec.h
-endif
-
-AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-            -DLXCPATH=\"$(LXCPATH)\" \
-            -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
-            -DLXCINITDIR=\"$(LXCINITDIR)\" \
-            -DLIBEXECDIR=\"$(LIBEXECDIR)\" \
-            -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \
-            -DLXCTEMPLATECONFIG=\"$(LXCTEMPLATECONFIG)\" \
-            -DLOGPATH=\"$(LOGPATH)\" \
-            -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
-            -DLXC_USERNIC_DB=\"$(LXC_USERNIC_DB)\" \
-            -DLXC_USERNIC_CONF=\"$(LXC_USERNIC_CONF)\" \
-            -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \
-            -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
-            -DSBINDIR=\"$(SBINDIR)\" \
-            -DAPPARMOR_CACHE_DIR=\"$(APPARMOR_CACHE_DIR)\" \
-            -I $(top_srcdir)/src \
-            -I $(top_srcdir)/src/include \
-            -I $(top_srcdir)/src/lxc \
-            -I $(top_srcdir)/src/lxc/storage \
-            -I $(top_srcdir)/src/lxc/cgroups
-if ENABLE_APPARMOR
-AM_CFLAGS += -DHAVE_APPARMOR
-endif
-
-if ENABLE_OPENSSL
-AM_CFLAGS += -DHAVE_OPENSSL
-endif
-
-if ENABLE_SECCOMP
-AM_CFLAGS += -DHAVE_SECCOMP \
-            $(SECCOMP_CFLAGS)
-endif
-
-if ENABLE_SELINUX
-AM_CFLAGS += -DHAVE_SELINUX
-endif
-
-if ENABLE_DLOG
-AM_CFLAGS += -DHAVE_DLOG \
-             $(DLOG_CFLAGS)
-endif
-
-if USE_CONFIGPATH_LOGS
-AM_CFLAGS += -DUSE_CONFIGPATH_LOGS
-endif
-
-# build the shared library
-liblxc_la_CFLAGS = -fPIC \
-                  -DPIC \
-                  $(AM_CFLAGS) \
-                  $(LIBLXC_SANITIZER) \
-                  -pthread
-
-liblxc_la_LDFLAGS = -pthread \
-                   -Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) \
-                   -version-info @LXC_ABI_MAJOR@
-
-if ENABLE_NO_UNDEFINED
-liblxc_la_LDFLAGS += -Wl,-no-undefined
-endif
-
-liblxc_la_LIBADD = $(CAP_LIBS) \
-                  $(OPENSSL_LIBS) \
-                  $(SELINUX_LIBS) \
-                  $(SECCOMP_LIBS) \
-                  $(DLOG_LIBS) \
-                  $(LIBURING_LIBS)
-
-bin_SCRIPTS=
-
-if ENABLE_COMMANDS
-bin_SCRIPTS += cmd/lxc-checkconfig \
-              cmd/lxc-update-config
-endif
-
-if ENABLE_TOOLS
-bin_PROGRAMS = lxc-attach \
-              lxc-autostart \
-              lxc-cgroup \
-              lxc-checkpoint \
-              lxc-copy \
-              lxc-config \
-              lxc-console \
-              lxc-create \
-              lxc-destroy \
-              lxc-device \
-              lxc-execute \
-              lxc-freeze \
-              lxc-info \
-              lxc-ls \
-              lxc-monitor \
-              lxc-snapshot \
-              lxc-start \
-              lxc-stop \
-              lxc-top \
-              lxc-unfreeze \
-              lxc-unshare \
-              lxc-wait
-endif
-
-if ENABLE_COMMANDS
-
-if ENABLE_TOOLS
-bin_PROGRAMS += lxc-usernsexec
-else
-bin_PROGRAMS = lxc-usernsexec
-endif
-
-sbin_PROGRAMS = init.lxc
-
-pkglibexec_PROGRAMS = lxc-monitord \
-                     lxc-user-nic
-endif
-
-AM_LDFLAGS += -Wl,-E
-
-if ENABLE_RPATH
-AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
-endif
-
-LDADD = liblxc.la \
-       @CAP_LIBS@ \
-       @OPENSSL_LIBS@ \
-       @SECCOMP_LIBS@ \
-       @SELINUX_LIBS@ \
-       @DLOG_LIBS@ \
-       @LIBURING_LIBS@
-
-if ENABLE_TOOLS
-lxc_attach_SOURCES = tools/lxc_attach.c \
-                    tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_attach_SOURCES += $(liblxc_la_SOURCES)
-lxc_attach_LDFLAGS = -all-static -pthread
-else
-lxc_attach_SOURCES += af_unix.c af_unix.h \
-                     caps.c caps.h \
-                     cgroups/cgfsng.c \
-                     cgroups/cgroup.c cgroups/cgroup.h \
-                     cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                     cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                     commands.c commands.h \
-                     commands_utils.c commands_utils.h \
-                     conf.c conf.h \
-                     confile.c confile.h \
-                     confile_utils.c confile_utils.h \
-                     error.c error.h \
-                     file_utils.c file_utils.h \
-                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                     initutils.c initutils.h \
-                     log.c log.h \
-                     lxclock.c lxclock.h \
-                     mainloop.c mainloop.h \
-                     monitor.c monitor.h \
-                     mount_utils.c mount_utils.h \
-                     namespace.c namespace.h \
-                     network.c network.h \
-                     nl.c nl.h \
-                     parse.c parse.h \
-                     process_utils.c process_utils.h \
-                     rexec.c rexec.h \
-                     ringbuf.c ringbuf.h \
-                     start.c start.h \
-                     state.c state.h \
-                     storage/btrfs.c storage/btrfs.h \
-                     storage/dir.c storage/dir.h \
-                     storage/loop.c storage/loop.h \
-                     storage/lvm.c storage/lvm.h \
-                     storage/nbd.c storage/nbd.h \
-                     storage/overlay.c storage/overlay.h \
-                     storage/rbd.c storage/rbd.h \
-                     storage/rsync.c storage/rsync.h \
-                     storage/storage.c storage/storage.h \
-                     storage/storage_utils.c storage/storage_utils.h \
-                     storage/zfs.c storage/zfs.h \
-                     string_utils.c string_utils.h \
-                     sync.c sync.h \
-                     terminal.c terminal.h \
-                     utils.c utils.h \
-                     uuid.c uuid.h \
-                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_attach_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_attach_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_attach_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_attach_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_attach_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_attach_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_attach_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_autostart_SOURCES = tools/lxc_autostart.c \
-                       tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_autostart_SOURCES += $(liblxc_la_SOURCES)
-lxc_autostart_LDFLAGS = -all-static -pthread
-else
-lxc_autostart_SOURCES += af_unix.c af_unix.h \
-                        caps.c caps.h \
-                        cgroups/cgfsng.c \
-                        cgroups/cgroup.c cgroups/cgroup.h \
-                        cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                        cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                        commands.c commands.h \
-                        commands_utils.c commands_utils.h \
-                        conf.c conf.h \
-                        confile.c confile.h \
-                        confile_utils.c confile_utils.h \
-                        error.c error.h \
-                        file_utils.c file_utils.h \
-                        ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                        initutils.c initutils.h \
-                        log.c log.h \
-                        lxclock.c lxclock.h \
-                        mainloop.c mainloop.h \
-                        monitor.c monitor.h \
-                        mount_utils.c mount_utils.h \
-                        namespace.c namespace.h \
-                        network.c network.h \
-                        nl.c nl.h \
-                        parse.c parse.h \
-                        process_utils.c process_utils.h \
-                        ringbuf.c ringbuf.h \
-                        start.c start.h \
-                        state.c state.h \
-                        storage/btrfs.c storage/btrfs.h \
-                        storage/dir.c storage/dir.h \
-                        storage/loop.c storage/loop.h \
-                        storage/lvm.c storage/lvm.h \
-                        storage/nbd.c storage/nbd.h \
-                        storage/overlay.c storage/overlay.h \
-                        storage/rbd.c storage/rbd.h \
-                        storage/rsync.c storage/rsync.h \
-                        storage/storage.c storage/storage.h \
-                        storage/storage_utils.c storage/storage_utils.h \
-                        storage/zfs.c storage/zfs.h \
-                        string_utils.c string_utils.h \
-                        sync.c sync.h \
-                        terminal.c terminal.h \
-                        utils.c utils.h \
-                        uuid.c uuid.h \
-                        $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_autostart_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_autostart_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_autostart_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_autostart_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_autostart_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_autostart_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_autostart_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_autostart_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_cgroup_SOURCES = tools/lxc_cgroup.c \
-                    tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_cgroup_SOURCES += $(liblxc_la_SOURCES)
-lxc_cgroup_LDFLAGS = -all-static -pthread
-else
-lxc_cgroup_SOURCES += af_unix.c af_unix.h \
-                     caps.c caps.h \
-                     cgroups/cgfsng.c \
-                     cgroups/cgroup.c cgroups/cgroup.h \
-                     cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                     cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                     commands.c commands.h \
-                     commands_utils.c commands_utils.h \
-                     conf.c conf.h \
-                     confile.c confile.h \
-                     confile_utils.c confile_utils.h \
-                     error.c error.h \
-                     file_utils.c file_utils.h \
-                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                     initutils.c initutils.h \
-                     log.c log.h \
-                     lxclock.c lxclock.h \
-                     mainloop.c mainloop.h \
-                     monitor.c monitor.h \
-                     mount_utils.c mount_utils.h \
-                     namespace.c namespace.h \
-                     network.c network.h \
-                     nl.c nl.h \
-                     parse.c parse.h \
-                     process_utils.c process_utils.h \
-                     ringbuf.c ringbuf.h \
-                     start.c start.h \
-                     state.c state.h \
-                     storage/btrfs.c storage/btrfs.h \
-                     storage/dir.c storage/dir.h \
-                     storage/loop.c storage/loop.h \
-                     storage/lvm.c storage/lvm.h \
-                     storage/nbd.c storage/nbd.h \
-                     storage/overlay.c storage/overlay.h \
-                     storage/rbd.c storage/rbd.h \
-                     storage/rsync.c storage/rsync.h \
-                     storage/storage.c storage/storage.h \
-                     storage/storage_utils.c storage/storage_utils.h \
-                     storage/zfs.c storage/zfs.h \
-                     string_utils.c string_utils.h \
-                     sync.c sync.h \
-                     terminal.c terminal.h \
-                     utils.c utils.h \
-                     uuid.c uuid.h \
-                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_cgroup_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_cgroup_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_cgroup_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_cgroup_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_cgroup_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_cgroup_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_cgroup_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_cgroup_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_config_SOURCES = tools/lxc_config.c \
-                    tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_config_SOURCES += $(liblxc_la_SOURCES)
-lxc_config_LDFLAGS = -all-static -pthread
-else
-lxc_config_SOURCES += af_unix.c af_unix.h \
-                     caps.c caps.h \
-                     cgroups/cgfsng.c \
-                     cgroups/cgroup.c cgroups/cgroup.h \
-                     cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                     cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                     commands.c commands.h \
-                     commands_utils.c commands_utils.h \
-                     conf.c conf.h \
-                     confile.c confile.h \
-                     confile_utils.c confile_utils.h \
-                     error.c error.h \
-                     file_utils.c file_utils.h \
-                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                     initutils.c initutils.h \
-                     log.c log.h \
-                     lxclock.c lxclock.h \
-                     mainloop.c mainloop.h \
-                     monitor.c monitor.h \
-                     mount_utils.c mount_utils.h \
-                     namespace.c namespace.h \
-                     network.c network.h \
-                     nl.c nl.h \
-                     parse.c parse.h \
-                     process_utils.c process_utils.h \
-                     ringbuf.c ringbuf.h \
-                     start.c start.h \
-                     state.c state.h \
-                     storage/btrfs.c storage/btrfs.h \
-                     storage/dir.c storage/dir.h \
-                     storage/loop.c storage/loop.h \
-                     storage/lvm.c storage/lvm.h \
-                     storage/nbd.c storage/nbd.h \
-                     storage/overlay.c storage/overlay.h \
-                     storage/rbd.c storage/rbd.h \
-                     storage/rsync.c storage/rsync.h \
-                     storage/storage.c storage/storage.h \
-                     storage/storage_utils.c storage/storage_utils.h \
-                     storage/zfs.c storage/zfs.h \
-                     string_utils.c string_utils.h \
-                     sync.c sync.h \
-                     terminal.c terminal.h \
-                     utils.c utils.h \
-                     uuid.c uuid.h \
-                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_config_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_config_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_config_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_config_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_config_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_config_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_config_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_config_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_console_SOURCES = tools/lxc_console.c \
-                     tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_console_SOURCES += $(liblxc_la_SOURCES)
-lxc_console_LDFLAGS = -all-static -pthread
-else
-lxc_console_SOURCES += af_unix.c af_unix.h \
-                      caps.c caps.h \
-                      cgroups/cgfsng.c \
-                      cgroups/cgroup.c cgroups/cgroup.h \
-                      cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                      cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                      commands.c commands.h \
-                      commands_utils.c commands_utils.h \
-                      conf.c conf.h \
-                      confile.c confile.h \
-                      confile_utils.c confile_utils.h \
-                      error.c error.h \
-                      file_utils.c file_utils.h \
-                      ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                      initutils.c initutils.h \
-                      log.c log.h \
-                      lxclock.c lxclock.h \
-                      mainloop.c mainloop.h \
-                      monitor.c monitor.h \
-                      mount_utils.c mount_utils.h \
-                      namespace.c namespace.h \
-                      network.c network.h \
-                      nl.c nl.h \
-                      parse.c parse.h \
-                      process_utils.c process_utils.h \
-                      ringbuf.c ringbuf.h \
-                      start.c start.h \
-                      state.c state.h \
-                      storage/btrfs.c storage/btrfs.h \
-                      storage/dir.c storage/dir.h \
-                      storage/loop.c storage/loop.h \
-                      storage/lvm.c storage/lvm.h \
-                      storage/nbd.c storage/nbd.h \
-                      storage/overlay.c storage/overlay.h \
-                      storage/rbd.c storage/rbd.h \
-                      storage/rsync.c storage/rsync.h \
-                      storage/storage.c storage/storage.h \
-                      storage/storage_utils.c storage/storage_utils.h \
-                      storage/zfs.c storage/zfs.h \
-                      string_utils.c string_utils.h \
-                      sync.c sync.h \
-                      terminal.c terminal.h \
-                      utils.c utils.h \
-                      uuid.c uuid.h \
-                      $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_console_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_console_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_console_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_console_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_console_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_console_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_console_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_console_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_destroy_SOURCES = tools/lxc_destroy.c \
-                     tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_destroy_SOURCES += $(liblxc_la_SOURCES)
-lxc_destroy_LDFLAGS = -all-static -pthread
-else
-lxc_destroy_SOURCES += af_unix.c af_unix.h \
-                      caps.c caps.h \
-                      cgroups/cgfsng.c \
-                      cgroups/cgroup.c cgroups/cgroup.h \
-                      cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                      cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                      commands.c commands.h \
-                      commands_utils.c commands_utils.h \
-                      conf.c conf.h \
-                      confile.c confile.h \
-                      confile_utils.c confile_utils.h \
-                      error.c error.h \
-                      file_utils.c file_utils.h \
-                      ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                      initutils.c initutils.h \
-                      log.c log.h \
-                      lxclock.c lxclock.h \
-                      mainloop.c mainloop.h \
-                      monitor.c monitor.h \
-                      mount_utils.c mount_utils.h \
-                      namespace.c namespace.h \
-                      network.c network.h \
-                      nl.c nl.h \
-                      parse.c parse.h \
-                      process_utils.c process_utils.h \
-                      ringbuf.c ringbuf.h \
-                      start.c start.h \
-                      state.c state.h \
-                      storage/btrfs.c storage/btrfs.h \
-                      storage/dir.c storage/dir.h \
-                      storage/loop.c storage/loop.h \
-                      storage/lvm.c storage/lvm.h \
-                      storage/nbd.c storage/nbd.h \
-                      storage/overlay.c storage/overlay.h \
-                      storage/rbd.c storage/rbd.h \
-                      storage/rsync.c storage/rsync.h \
-                      storage/storage.c storage/storage.h \
-                      storage/storage_utils.c storage/storage_utils.h \
-                      storage/zfs.c storage/zfs.h \
-                      string_utils.c string_utils.h \
-                      sync.c sync.h \
-                      terminal.c terminal.h \
-                      utils.c utils.h \
-                      uuid.c uuid.h \
-                      $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_destroy_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_destroy_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_destroy_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_destroy_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_destroy_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_destroy_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_destroy_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_destroy_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_device_SOURCES = tools/lxc_device.c \
-                    tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_device_SOURCES += $(liblxc_la_SOURCES)
-lxc_device_LDFLAGS = -all-static -pthread
-else
-lxc_device_SOURCES += af_unix.c af_unix.h \
-                     caps.c caps.h \
-                     cgroups/cgfsng.c \
-                     cgroups/cgroup.c cgroups/cgroup.h \
-                     cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                     cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                     commands.c commands.h \
-                     commands_utils.c commands_utils.h \
-                     conf.c conf.h \
-                     confile.c confile.h \
-                     confile_utils.c confile_utils.h \
-                     error.c error.h \
-                     file_utils.c file_utils.h \
-                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                     initutils.c initutils.h \
-                     log.c log.h \
-                     lxclock.c lxclock.h \
-                     mainloop.c mainloop.h \
-                     monitor.c monitor.h \
-                     mount_utils.c mount_utils.h \
-                     namespace.c namespace.h \
-                     network.c network.h \
-                     nl.c nl.h \
-                     parse.c parse.h \
-                     process_utils.c process_utils.h \
-                     ringbuf.c ringbuf.h \
-                     start.c start.h \
-                     state.c state.h \
-                     storage/btrfs.c storage/btrfs.h \
-                     storage/dir.c storage/dir.h \
-                     storage/loop.c storage/loop.h \
-                     storage/lvm.c storage/lvm.h \
-                     storage/nbd.c storage/nbd.h \
-                     storage/overlay.c storage/overlay.h \
-                     storage/rbd.c storage/rbd.h \
-                     storage/rsync.c storage/rsync.h \
-                     storage/storage.c storage/storage.h \
-                     storage/storage_utils.c storage/storage_utils.h \
-                     storage/zfs.c storage/zfs.h \
-                     string_utils.c string_utils.h \
-                     sync.c sync.h \
-                     terminal.c terminal.h \
-                     utils.c utils.h \
-                     uuid.c uuid.h \
-                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_device_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_device_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_device_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_device_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_device_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_device_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_device_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_device_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_execute_SOURCES = tools/lxc_execute.c \
-                     tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_execute_SOURCES += $(liblxc_la_SOURCES)
-lxc_execute_LDFLAGS = -all-static -pthread
-else
-lxc_execute_SOURCES += af_unix.c af_unix.h \
-                      caps.c caps.h \
-                      cgroups/cgfsng.c \
-                      cgroups/cgroup.c cgroups/cgroup.h \
-                      cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                      cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                      commands.c commands.h \
-                      commands_utils.c commands_utils.h \
-                      conf.c conf.h \
-                      confile.c confile.h \
-                      confile_utils.c confile_utils.h \
-                      error.c error.h \
-                      file_utils.c file_utils.h \
-                      ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                      initutils.c initutils.h \
-                      log.c log.h \
-                      lxclock.c lxclock.h \
-                      mainloop.c mainloop.h \
-                      monitor.c monitor.h \
-                      mount_utils.c mount_utils.h \
-                      namespace.c namespace.h \
-                      network.c network.h \
-                      nl.c nl.h \
-                      parse.c parse.h \
-                      process_utils.c process_utils.h \
-                      ringbuf.c ringbuf.h \
-                      start.c start.h \
-                      state.c state.h \
-                      storage/btrfs.c storage/btrfs.h \
-                      storage/dir.c storage/dir.h \
-                      storage/loop.c storage/loop.h \
-                      storage/lvm.c storage/lvm.h \
-                      storage/nbd.c storage/nbd.h \
-                      storage/overlay.c storage/overlay.h \
-                      storage/rbd.c storage/rbd.h \
-                      storage/rsync.c storage/rsync.h \
-                      storage/storage.c storage/storage.h \
-                      storage/storage_utils.c storage/storage_utils.h \
-                      storage/zfs.c storage/zfs.h \
-                      string_utils.c string_utils.h \
-                      sync.c sync.h \
-                      terminal.c terminal.h \
-                      utils.c utils.h \
-                      uuid.c uuid.h \
-                      $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_execute_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_execute_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_execute_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_execute_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_execute_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_execute_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_execute_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_execute_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_freeze_SOURCES = tools/lxc_freeze.c \
-                    tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_freeze_SOURCES += $(liblxc_la_SOURCES)
-lxc_freeze_LDFLAGS = -all-static -pthread
-else
-lxc_freeze_SOURCES += af_unix.c af_unix.h \
-                     caps.c caps.h \
-                     cgroups/cgfsng.c \
-                     cgroups/cgroup.c cgroups/cgroup.h \
-                     cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                     cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                     commands.c commands.h \
-                     commands_utils.c commands_utils.h \
-                     conf.c conf.h \
-                     confile.c confile.h \
-                     confile_utils.c confile_utils.h \
-                     error.c error.h \
-                     file_utils.c file_utils.h \
-                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                     initutils.c initutils.h \
-                     log.c log.h \
-                     lxclock.c lxclock.h \
-                     mainloop.c mainloop.h \
-                     monitor.c monitor.h \
-                     mount_utils.c mount_utils.h \
-                     namespace.c namespace.h \
-                     network.c network.h \
-                     nl.c nl.h \
-                     parse.c parse.h \
-                     process_utils.c process_utils.h \
-                     ringbuf.c ringbuf.h \
-                     start.c start.h \
-                     state.c state.h \
-                     storage/btrfs.c storage/btrfs.h \
-                     storage/dir.c storage/dir.h \
-                     storage/loop.c storage/loop.h \
-                     storage/lvm.c storage/lvm.h \
-                     storage/nbd.c storage/nbd.h \
-                     storage/overlay.c storage/overlay.h \
-                     storage/rbd.c storage/rbd.h \
-                     storage/rsync.c storage/rsync.h \
-                     storage/storage.c storage/storage.h \
-                     storage/storage_utils.c storage/storage_utils.h \
-                     storage/zfs.c storage/zfs.h \
-                     string_utils.c string_utils.h \
-                     sync.c sync.h \
-                     terminal.c terminal.h \
-                     utils.c utils.h \
-                     uuid.c uuid.h \
-                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_freeze_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_freeze_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_freeze_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_freeze_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_freeze_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_freeze_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_freeze_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_freeze_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_info_SOURCES = tools/lxc_info.c \
-                  tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_info_SOURCES += $(liblxc_la_SOURCES)
-lxc_info_LDFLAGS = -all-static -pthread
-else
-lxc_info_SOURCES += af_unix.c af_unix.h \
-                   caps.c caps.h \
-                   cgroups/cgfsng.c \
-                   cgroups/cgroup.c cgroups/cgroup.h \
-                   cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                   cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                   commands.c commands.h \
-                   commands_utils.c commands_utils.h \
-                   conf.c conf.h \
-                   confile.c confile.h \
-                   confile_utils.c confile_utils.h \
-                   error.c error.h \
-                   file_utils.c file_utils.h \
-                   ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                   initutils.c initutils.h \
-                   log.c log.h \
-                   lxclock.c lxclock.h \
-                   mainloop.c mainloop.h \
-                   monitor.c monitor.h \
-                   mount_utils.c mount_utils.h \
-                   namespace.c namespace.h \
-                   network.c network.h \
-                   nl.c nl.h \
-                   parse.c parse.h \
-                   process_utils.c process_utils.h \
-                   ringbuf.c ringbuf.h \
-                   start.c start.h \
-                   state.c state.h \
-                   storage/btrfs.c storage/btrfs.h \
-                   storage/dir.c storage/dir.h \
-                   storage/loop.c storage/loop.h \
-                   storage/lvm.c storage/lvm.h \
-                   storage/nbd.c storage/nbd.h \
-                   storage/overlay.c storage/overlay.h \
-                   storage/rbd.c storage/rbd.h \
-                   storage/rsync.c storage/rsync.h \
-                   storage/storage.c storage/storage.h \
-                   storage/storage_utils.c storage/storage_utils.h \
-                   storage/zfs.c storage/zfs.h \
-                   string_utils.c string_utils.h \
-                   sync.c sync.h \
-                   terminal.c terminal.h \
-                   utils.c utils.h \
-                   uuid.c uuid.h \
-                   $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_info_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_info_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_info_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_info_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_info_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_info_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_info_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_info_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_monitor_SOURCES = tools/lxc_monitor.c \
-                     tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_monitor_SOURCES += $(liblxc_la_SOURCES)
-lxc_monitor_LDFLAGS = -all-static -pthread
-else
-lxc_monitor_SOURCES += af_unix.c af_unix.h \
-                      caps.c caps.h \
-                      cgroups/cgfsng.c \
-                      cgroups/cgroup.c cgroups/cgroup.h \
-                      cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                      cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                      commands.c commands.h \
-                      commands_utils.c commands_utils.h \
-                      conf.c conf.h \
-                      confile.c confile.h \
-                      confile_utils.c confile_utils.h \
-                      error.c error.h \
-                      file_utils.c file_utils.h \
-                      ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                      initutils.c initutils.h \
-                      log.c log.h \
-                      lxclock.c lxclock.h \
-                      macro.h \
-                      mainloop.c mainloop.h \
-                      monitor.c monitor.h \
-                      mount_utils.c mount_utils.h \
-                      namespace.c namespace.h \
-                      network.c network.h \
-                      nl.c nl.h \
-                      parse.c parse.h \
-                      process_utils.c process_utils.h \
-                      ringbuf.c ringbuf.h \
-                      start.c start.h \
-                      state.c state.h \
-                      storage/btrfs.c storage/btrfs.h \
-                      storage/dir.c storage/dir.h \
-                      storage/loop.c storage/loop.h \
-                      storage/lvm.c storage/lvm.h \
-                      storage/nbd.c storage/nbd.h \
-                      storage/overlay.c storage/overlay.h \
-                      storage/rbd.c storage/rbd.h \
-                      storage/rsync.c storage/rsync.h \
-                      storage/storage.c storage/storage.h \
-                      storage/storage_utils.c storage/storage_utils.h \
-                      storage/zfs.c storage/zfs.h \
-                      string_utils.c string_utils.h \
-                      sync.c sync.h \
-                      terminal.c terminal.h \
-                      utils.c utils.h \
-                      uuid.c uuid.h \
-                      $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_monitor_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_monitor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_monitor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_monitor_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_monitor_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_monitor_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_monitor_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_monitor_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_ls_SOURCES = tools/lxc_ls.c \
-                tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_ls_SOURCES += $(liblxc_la_SOURCES)
-lxc_ls_LDFLAGS = -all-static -pthread
-else
-lxc_ls_SOURCES += af_unix.c af_unix.h \
-                 caps.c caps.h \
-                 cgroups/cgfsng.c \
-                 cgroups/cgroup.c cgroups/cgroup.h \
-                 cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                 cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                 commands.c commands.h \
-                 commands_utils.c commands_utils.h \
-                 conf.c conf.h \
-                 confile.c confile.h \
-                 confile_utils.c confile_utils.h \
-                 error.c error.h \
-                 file_utils.c file_utils.h \
-                 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                 initutils.c initutils.h \
-                 log.c log.h \
-                 lxclock.c lxclock.h \
-                 mainloop.c mainloop.h \
-                 memory_utils.h \
-                 monitor.c monitor.h \
-                 mount_utils.c mount_utils.h \
-                 namespace.c namespace.h \
-                 network.c network.h \
-                 nl.c nl.h \
-                 parse.c parse.h \
-                 process_utils.c process_utils.h \
-                 ringbuf.c ringbuf.h \
-                 start.c start.h \
-                 state.c state.h \
-                 storage/btrfs.c storage/btrfs.h \
-                 storage/dir.c storage/dir.h \
-                 storage/loop.c storage/loop.h \
-                 storage/lvm.c storage/lvm.h \
-                 storage/nbd.c storage/nbd.h \
-                 storage/overlay.c storage/overlay.h \
-                 storage/rbd.c storage/rbd.h \
-                 storage/rsync.c storage/rsync.h \
-                 storage/storage.c storage/storage.h \
-                 storage/storage_utils.c storage/storage_utils.h \
-                 storage/zfs.c storage/zfs.h \
-                 string_utils.c string_utils.h \
-                 sync.c sync.h \
-                 terminal.c terminal.h \
-                 utils.c utils.h \
-                 uuid.c uuid.h \
-                 $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_ls_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_ls_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_ls_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_ls_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_ls_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_ls_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_ls_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_ls_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_copy_SOURCES = tools/lxc_copy.c \
-                  tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_copy_SOURCES += $(liblxc_la_SOURCES)
-lxc_copy_LDFLAGS = -all-static -pthread
-else
-lxc_copy_SOURCES += af_unix.c af_unix.h \
-                   caps.c caps.h \
-                   cgroups/cgfsng.c \
-                   cgroups/cgroup.c cgroups/cgroup.h \
-                   cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                   cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                   commands.c commands.h \
-                   commands_utils.c commands_utils.h \
-                   conf.c conf.h \
-                   confile.c confile.h \
-                   confile_utils.c confile_utils.h \
-                   error.c error.h \
-                   file_utils.c file_utils.h \
-                   ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                   initutils.c initutils.h \
-                   log.c log.h \
-                   lxclock.c lxclock.h \
-                   mainloop.c mainloop.h \
-                   monitor.c monitor.h \
-                   mount_utils.c mount_utils.h \
-                   namespace.c namespace.h \
-                   network.c network.h \
-                   nl.c nl.h \
-                   parse.c parse.h \
-                   process_utils.c process_utils.h \
-                   ringbuf.c ringbuf.h \
-                   start.c start.h \
-                   state.c state.h \
-                   storage/btrfs.c storage/btrfs.h \
-                   storage/dir.c storage/dir.h \
-                   storage/loop.c storage/loop.h \
-                   storage/lvm.c storage/lvm.h \
-                   storage/nbd.c storage/nbd.h \
-                   storage/overlay.c storage/overlay.h \
-                   storage/rbd.c storage/rbd.h \
-                   storage/rsync.c storage/rsync.h \
-                   storage/storage.c storage/storage.h \
-                   storage/storage_utils.c storage/storage_utils.h \
-                   storage/zfs.c storage/zfs.h \
-                   string_utils.c string_utils.h \
-                   sync.c sync.h \
-                   terminal.c terminal.h \
-                   utils.c utils.h \
-                   uuid.c uuid.h \
-                   $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_copy_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_copy_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_copy_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_copy_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_copy_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_copy_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_copy_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_copy_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_start_SOURCES = tools/lxc_start.c \
-                   tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_start_SOURCES += $(liblxc_la_SOURCES)
-lxc_start_LDFLAGS = -all-static -pthread
-else
-lxc_start_SOURCES += af_unix.c af_unix.h \
-                    caps.c caps.h \
-                    cgroups/cgfsng.c \
-                    cgroups/cgroup.c cgroups/cgroup.h \
-                    cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                    cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                    commands.c commands.h \
-                    commands_utils.c commands_utils.h \
-                    conf.c conf.h \
-                    confile.c confile.h \
-                    confile_utils.c confile_utils.h \
-                    error.c error.h \
-                    file_utils.c file_utils.h \
-                    ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                    initutils.c initutils.h \
-                    log.c log.h \
-                    lxclock.c lxclock.h \
-                    mainloop.c mainloop.h \
-                    monitor.c monitor.h \
-                    mount_utils.c mount_utils.h \
-                    namespace.c namespace.h \
-                    network.c network.h \
-                    nl.c nl.h \
-                    parse.c parse.h \
-                    process_utils.c process_utils.h \
-                    ringbuf.c ringbuf.h \
-                    start.c start.h \
-                    state.c state.h \
-                    storage/btrfs.c storage/btrfs.h \
-                    storage/dir.c storage/dir.h \
-                    storage/loop.c storage/loop.h \
-                    storage/lvm.c storage/lvm.h \
-                    storage/nbd.c storage/nbd.h \
-                    storage/overlay.c storage/overlay.h \
-                    storage/rbd.c storage/rbd.h \
-                    storage/rsync.c storage/rsync.h \
-                    storage/storage.c storage/storage.h \
-                    storage/storage_utils.c storage/storage_utils.h \
-                    storage/zfs.c storage/zfs.h \
-                    string_utils.c string_utils.h \
-                    sync.c sync.h \
-                    terminal.c terminal.h \
-                    utils.c utils.h \
-                    uuid.c uuid.h \
-                    $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_start_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_start_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_start_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_start_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_start_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_start_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_start_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_start_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_stop_SOURCES = tools/lxc_stop.c \
-                  tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_stop_SOURCES += $(liblxc_la_SOURCES)
-lxc_stop_LDFLAGS = -all-static -pthread
-else
-lxc_stop_SOURCES += af_unix.c af_unix.h \
-                   caps.c caps.h \
-                   cgroups/cgfsng.c \
-                   cgroups/cgroup.c cgroups/cgroup.h \
-                   cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                   cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                   commands.c commands.h \
-                   commands_utils.c commands_utils.h \
-                   conf.c conf.h \
-                   confile.c confile.h \
-                   confile_utils.c confile_utils.h \
-                   error.c error.h \
-                   file_utils.c file_utils.h \
-                   ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                   initutils.c initutils.h \
-                   log.c log.h \
-                   lxclock.c lxclock.h \
-                   mainloop.c mainloop.h \
-                   monitor.c monitor.h \
-                   mount_utils.c mount_utils.h \
-                   namespace.c namespace.h \
-                   network.c network.h \
-                   nl.c nl.h \
-                   parse.c parse.h \
-                   process_utils.c process_utils.h \
-                   ringbuf.c ringbuf.h \
-                   start.c start.h \
-                   state.c state.h \
-                   storage/btrfs.c storage/btrfs.h \
-                   storage/dir.c storage/dir.h \
-                   storage/loop.c storage/loop.h \
-                   storage/lvm.c storage/lvm.h \
-                   storage/nbd.c storage/nbd.h \
-                   storage/overlay.c storage/overlay.h \
-                   storage/rbd.c storage/rbd.h \
-                   storage/rsync.c storage/rsync.h \
-                   storage/storage.c storage/storage.h \
-                   storage/storage_utils.c storage/storage_utils.h \
-                   storage/zfs.c storage/zfs.h \
-                   string_utils.c string_utils.h \
-                   sync.c sync.h \
-                   terminal.c terminal.h \
-                   utils.c utils.h \
-                   uuid.c uuid.h \
-                   $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_stop_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_stop_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_stop_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_stop_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_stop_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_stop_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_stop_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_stop_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_top_SOURCES = tools/lxc_top.c \
-                 tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_top_SOURCES += $(liblxc_la_SOURCES)
-lxc_top_LDFLAGS = -all-static -pthread
-else
-lxc_top_SOURCES += af_unix.c af_unix.h \
-                  caps.c caps.h \
-                  cgroups/cgfsng.c \
-                  cgroups/cgroup.c cgroups/cgroup.h \
-                  cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                  cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                  commands.c commands.h \
-                  commands_utils.c commands_utils.h \
-                  conf.c conf.h \
-                  confile.c confile.h \
-                  confile_utils.c confile_utils.h \
-                  error.c error.h \
-                  file_utils.c file_utils.h \
-                  ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                  initutils.c initutils.h \
-                  log.c log.h \
-                  lxclock.c lxclock.h \
-                  mainloop.c mainloop.h \
-                  monitor.c monitor.h \
-                  mount_utils.c mount_utils.h \
-                  namespace.c namespace.h \
-                  network.c network.h \
-                  nl.c nl.h \
-                  parse.c parse.h \
-                  process_utils.c process_utils.h \
-                  ringbuf.c ringbuf.h \
-                  start.c start.h \
-                  state.c state.h \
-                  storage/btrfs.c storage/btrfs.h \
-                  storage/dir.c storage/dir.h \
-                  storage/loop.c storage/loop.h \
-                  storage/lvm.c storage/lvm.h \
-                  storage/nbd.c storage/nbd.h \
-                  storage/overlay.c storage/overlay.h \
-                  storage/rbd.c storage/rbd.h \
-                  storage/rsync.c storage/rsync.h \
-                  storage/storage.c storage/storage.h \
-                  storage/storage_utils.c storage/storage_utils.h \
-                  storage/zfs.c storage/zfs.h \
-                  string_utils.c string_utils.h \
-                  sync.c sync.h \
-                  terminal.c terminal.h \
-                  utils.c utils.h \
-                  uuid.c uuid.h \
-                  $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_top_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_top_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_top_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_top_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_top_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_top_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_top_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_top_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c \
-                      tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_unfreeze_SOURCES += $(liblxc_la_SOURCES)
-lxc_unfreeze_LDFLAGS = -all-static -pthread
-else
-lxc_unfreeze_SOURCES += af_unix.c af_unix.h \
-                       caps.c caps.h \
-                       cgroups/cgfsng.c \
-                       cgroups/cgroup.c cgroups/cgroup.h \
-                       cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                       cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                       commands.c commands.h \
-                       commands_utils.c commands_utils.h \
-                       conf.c conf.h \
-                       confile.c confile.h \
-                       confile_utils.c confile_utils.h \
-                       error.c error.h \
-                       file_utils.c file_utils.h \
-                       ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                       initutils.c initutils.h \
-                       log.c log.h \
-                       lxclock.c lxclock.h \
-                       mainloop.c mainloop.h \
-                       monitor.c monitor.h \
-                       mount_utils.c mount_utils.h \
-                       namespace.c namespace.h \
-                       network.c network.h \
-                       nl.c nl.h \
-                       parse.c parse.h \
-                       process_utils.c process_utils.h \
-                       ringbuf.c ringbuf.h \
-                       start.c start.h \
-                       state.c state.h \
-                       storage/btrfs.c storage/btrfs.h \
-                       storage/dir.c storage/dir.h \
-                       storage/loop.c storage/loop.h \
-                       storage/lvm.c storage/lvm.h \
-                       storage/nbd.c storage/nbd.h \
-                       storage/overlay.c storage/overlay.h \
-                       storage/rbd.c storage/rbd.h \
-                       storage/rsync.c storage/rsync.h \
-                       storage/storage.c storage/storage.h \
-                       storage/storage_utils.c storage/storage_utils.h \
-                       storage/zfs.c storage/zfs.h \
-                       string_utils.c string_utils.h \
-                       sync.c sync.h \
-                       terminal.c terminal.h \
-                       utils.c utils.h \
-                       uuid.c uuid.h \
-                       $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_unfreeze_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_unfreeze_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_unfreeze_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_unfreeze_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_unfreeze_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_unfreeze_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_unfreeze_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_unfreeze_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_unshare_SOURCES = tools/lxc_unshare.c \
-                     tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_unshare_SOURCES += $(liblxc_la_SOURCES)
-lxc_unshare_LDFLAGS = -all-static -pthread
-else
-lxc_unshare_SOURCES += af_unix.c af_unix.h \
-                      caps.c caps.h \
-                      cgroups/cgfsng.c \
-                      cgroups/cgroup.c cgroups/cgroup.h \
-                      cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                      cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                      commands.c commands.h \
-                      commands_utils.c commands_utils.h \
-                      conf.c conf.h \
-                      confile.c confile.h \
-                      confile_utils.c confile_utils.h \
-                      error.c error.h \
-                      file_utils.c file_utils.h \
-                      ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                      initutils.c initutils.h \
-                      log.c log.h \
-                      lxclock.c lxclock.h \
-                      mainloop.c mainloop.h \
-                      monitor.c monitor.h \
-                      mount_utils.c mount_utils.h \
-                      namespace.c namespace.h \
-                      network.c network.h \
-                      nl.c nl.h \
-                      parse.c parse.h \
-                      process_utils.c process_utils.h \
-                      ringbuf.c ringbuf.h \
-                      start.c start.h \
-                      state.c state.h \
-                      storage/btrfs.c storage/btrfs.h \
-                      storage/dir.c storage/dir.h \
-                      storage/loop.c storage/loop.h \
-                      storage/lvm.c storage/lvm.h \
-                      storage/nbd.c storage/nbd.h \
-                      storage/overlay.c storage/overlay.h \
-                      storage/rbd.c storage/rbd.h \
-                      storage/rsync.c storage/rsync.h \
-                      storage/storage.c storage/storage.h \
-                      storage/storage_utils.c storage/storage_utils.h \
-                      storage/zfs.c storage/zfs.h \
-                      string_utils.c string_utils.h \
-                      sync.c sync.h \
-                      syscall_numbers.h \
-                      syscall_wrappers.h \
-                      terminal.c terminal.h \
-                      utils.c utils.h \
-                      uuid.c uuid.h \
-                      $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_unshare_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_unshare_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_unshare_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_unshare_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_unshare_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_unshare_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_unshare_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_unshare_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_wait_SOURCES = tools/lxc_wait.c \
-                  tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_wait_SOURCES += $(liblxc_la_SOURCES)
-lxc_wait_LDFLAGS = -all-static -pthread
-else
-lxc_wait_SOURCES += af_unix.c af_unix.h \
-                   caps.c caps.h \
-                   cgroups/cgfsng.c \
-                   cgroups/cgroup.c cgroups/cgroup.h \
-                   cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                   cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                   commands.c commands.h \
-                   commands_utils.c commands_utils.h \
-                   conf.c conf.h \
-                   confile.c confile.h \
-                   confile_utils.c confile_utils.h \
-                   error.c error.h \
-                   file_utils.c file_utils.h \
-                   ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                   initutils.c initutils.h \
-                   log.c log.h \
-                   lxclock.c lxclock.h \
-                   mainloop.c mainloop.h \
-                   monitor.c monitor.h \
-                   mount_utils.c mount_utils.h \
-                   namespace.c namespace.h \
-                   network.c network.h \
-                   nl.c nl.h \
-                   parse.c parse.h \
-                   process_utils.c process_utils.h \
-                   ringbuf.c ringbuf.h \
-                   start.c start.h \
-                   state.c state.h \
-                   storage/btrfs.c storage/btrfs.h \
-                   storage/dir.c storage/dir.h \
-                   storage/loop.c storage/loop.h \
-                   storage/lvm.c storage/lvm.h \
-                   storage/nbd.c storage/nbd.h \
-                   storage/overlay.c storage/overlay.h \
-                   storage/rbd.c storage/rbd.h \
-                   storage/rsync.c storage/rsync.h \
-                   storage/storage.c storage/storage.h \
-                   storage/storage_utils.c storage/storage_utils.h \
-                   storage/zfs.c storage/zfs.h \
-                   string_utils.c string_utils.h \
-                   sync.c sync.h \
-                   terminal.c terminal.h \
-                   utils.c utils.h \
-                   uuid.c uuid.h \
-                   $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_wait_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_wait_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_wait_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_wait_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_wait_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_wait_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_wait_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_wait_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_create_SOURCES = tools/lxc_create.c \
-                    tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_create_SOURCES += $(liblxc_la_SOURCES)
-lxc_create_LDFLAGS = -all-static -pthread
-else
-lxc_create_SOURCES += af_unix.c af_unix.h \
-                     caps.c caps.h \
-                     cgroups/cgfsng.c \
-                     cgroups/cgroup.c cgroups/cgroup.h \
-                     cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                     cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                     commands.c commands.h \
-                     commands_utils.c commands_utils.h \
-                     conf.c conf.h \
-                     confile.c confile.h \
-                     confile_utils.c confile_utils.h \
-                     error.c error.h \
-                     file_utils.c file_utils.h \
-                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                     initutils.c initutils.h \
-                     log.c log.h \
-                     lxclock.c lxclock.h \
-                     mainloop.c mainloop.h \
-                     monitor.c monitor.h \
-                     mount_utils.c mount_utils.h \
-                     namespace.c namespace.h \
-                     network.c network.h \
-                     nl.c nl.h \
-                     parse.c parse.h \
-                     process_utils.c process_utils.h \
-                     ringbuf.c ringbuf.h \
-                     start.c start.h \
-                     state.c state.h \
-                     storage/btrfs.c storage/btrfs.h \
-                     storage/dir.c storage/dir.h \
-                     storage/loop.c storage/loop.h \
-                     storage/lvm.c storage/lvm.h \
-                     storage/nbd.c storage/nbd.h \
-                     storage/overlay.c storage/overlay.h \
-                     storage/rbd.c storage/rbd.h \
-                     storage/rsync.c storage/rsync.h \
-                     storage/storage.c storage/storage.h \
-                     storage/storage_utils.c storage/storage_utils.h \
-                     storage/zfs.c storage/zfs.h \
-                     string_utils.c string_utils.h \
-                     sync.c sync.h \
-                     terminal.c terminal.h \
-                     utils.c utils.h \
-                     uuid.c uuid.h \
-                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_create_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_create_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_create_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_create_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_create_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_create_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_create_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_create_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_snapshot_SOURCES = tools/lxc_snapshot.c \
-                      tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_snapshot_SOURCES += $(liblxc_la_SOURCES)
-lxc_snapshot_LDFLAGS = -all-static -pthread
-else
-lxc_snapshot_SOURCES += af_unix.c af_unix.h \
-                       caps.c caps.h \
-                       cgroups/cgfsng.c \
-                       cgroups/cgroup.c cgroups/cgroup.h \
-                       cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                       cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                       commands.c commands.h \
-                       commands_utils.c commands_utils.h \
-                       conf.c conf.h \
-                       confile.c confile.h \
-                       confile_utils.c confile_utils.h \
-                       error.c error.h \
-                       file_utils.c file_utils.h \
-                       ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                       initutils.c initutils.h \
-                       log.c log.h \
-                       lxclock.c lxclock.h \
-                       mainloop.c mainloop.h \
-                       monitor.c monitor.h \
-                       mount_utils.c mount_utils.h \
-                       namespace.c namespace.h \
-                       network.c network.h \
-                       nl.c nl.h \
-                       parse.c parse.h \
-                       process_utils.c process_utils.h \
-                       ringbuf.c ringbuf.h \
-                       start.c start.h \
-                       state.c state.h \
-                       storage/btrfs.c storage/btrfs.h \
-                       storage/dir.c storage/dir.h \
-                       storage/loop.c storage/loop.h \
-                       storage/lvm.c storage/lvm.h \
-                       storage/nbd.c storage/nbd.h \
-                       storage/overlay.c storage/overlay.h \
-                       storage/rbd.c storage/rbd.h \
-                       storage/rsync.c storage/rsync.h \
-                       storage/storage.c storage/storage.h \
-                       storage/storage_utils.c storage/storage_utils.h \
-                       storage/zfs.c storage/zfs.h \
-                       string_utils.c string_utils.h \
-                       sync.c sync.h \
-                       terminal.c terminal.h \
-                       utils.c utils.h \
-                       uuid.c uuid.h \
-                       $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_snapshot_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_snapshot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_snapshot_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_snapshot_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_snapshot_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_snapshot_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_snapshot_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_snapshot_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c \
-                        tools/arguments.c tools/arguments.h
-
-if ENABLE_STATIC_BINARIES
-lxc_checkpoint_SOURCES += $(liblxc_la_SOURCES)
-lxc_checkpoint_LDFLAGS = -all-static -pthread
-else
-lxc_checkpoint_SOURCES += af_unix.c af_unix.h \
-                         caps.c caps.h \
-                         cgroups/cgfsng.c \
-                         cgroups/cgroup.c cgroups/cgroup.h \
-                         cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                         cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                         commands.c commands.h \
-                         commands_utils.c commands_utils.h \
-                         conf.c conf.h \
-                         confile.c confile.h \
-                         confile_utils.c confile_utils.h \
-                         error.c error.h \
-                         file_utils.c file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         initutils.c initutils.h \
-                         log.c log.h \
-                         lxclock.c lxclock.h \
-                         mainloop.c mainloop.h \
-                         monitor.c monitor.h \
-                         mount_utils.c mount_utils.h \
-                         namespace.c namespace.h \
-                         network.c network.h \
-                         nl.c nl.h \
-                         parse.c parse.h \
-                         process_utils.c process_utils.h \
-                         ringbuf.c ringbuf.h \
-                         start.c start.h \
-                         state.c state.h \
-                         storage/btrfs.c storage/btrfs.h \
-                         storage/dir.c storage/dir.h \
-                         storage/loop.c storage/loop.h \
-                         storage/lvm.c storage/lvm.h \
-                         storage/nbd.c storage/nbd.h \
-                         storage/overlay.c storage/overlay.h \
-                         storage/rbd.c storage/rbd.h \
-                         storage/rsync.c storage/rsync.h \
-                         storage/storage.c storage/storage.h \
-                         storage/storage_utils.c storage/storage_utils.h \
-                         storage/zfs.c storage/zfs.h \
-                         string_utils.c string_utils.h \
-                         sync.c sync.h \
-                         terminal.c terminal.h \
-                         utils.c utils.h \
-                         uuid.c uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_checkpoint_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_checkpoint_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_checkpoint_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_checkpoint_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_checkpoint_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_checkpoint_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_checkpoint_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_checkpoint_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-endif
-
-if ENABLE_COMMANDS
-# Binaries shipping with liblxc
-init_lxc_SOURCES = cmd/lxc_init.c \
-                  af_unix.c af_unix.h \
-                  caps.c caps.h \
-                  error.c error.h \
-                  file_utils.c file_utils.h \
-                  initutils.c initutils.h \
-                  log.c log.h \
-                  macro.h \
-                  memory_utils.h \
-                  namespace.c namespace.h \
-                  string_utils.c string_utils.h
-
-if !HAVE_STRLCPY
-init_lxc_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-init_lxc_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-init_lxc_LDFLAGS = -pthread
-
-lxc_monitord_SOURCES = cmd/lxc_monitord.c
-
-if ENABLE_STATIC_BINARIES
-lxc_monitord_SOURCES += $(liblxc_la_SOURCES)
-lxc_monitord_LDFLAGS = -all-static -pthread
-else
-lxc_monitord_SOURCES += af_unix.c af_unix.h \
-                       caps.c caps.h \
-                       cgroups/cgfsng.c \
-                       cgroups/cgroup.c cgroups/cgroup.h \
-                       cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                       cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                       commands.c commands.h \
-                       commands_utils.c commands_utils.h \
-                       conf.c conf.h \
-                       confile.c confile.h \
-                       confile_utils.c confile_utils.h \
-                       error.c error.h \
-                       file_utils.c file_utils.h \
-                       ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                       initutils.c initutils.h \
-                       log.c log.h \
-                       lxclock.c lxclock.h \
-                       mainloop.c mainloop.h \
-                       monitor.c monitor.h \
-                       mount_utils.c mount_utils.h \
-                       namespace.c namespace.h \
-                       network.c network.h \
-                       nl.c nl.h \
-                       parse.c parse.h \
-                       process_utils.c process_utils.h \
-                       ringbuf.c ringbuf.h \
-                       start.c start.h \
-                       state.c state.h \
-                       storage/btrfs.c storage/btrfs.h \
-                       storage/dir.c storage/dir.h \
-                       storage/loop.c storage/loop.h \
-                       storage/lvm.c storage/lvm.h \
-                       storage/nbd.c storage/nbd.h \
-                       storage/overlay.c storage/overlay.h \
-                       storage/rbd.c storage/rbd.h \
-                       storage/rsync.c storage/rsync.h \
-                       storage/storage.c storage/storage.h \
-                       storage/storage_utils.c storage/storage_utils.h \
-                       storage/zfs.c storage/zfs.h \
-                       string_utils.c string_utils.h \
-                       sync.c sync.h \
-                       syscall_numbers.h \
-                       terminal.c terminal.h \
-                       utils.c utils.h \
-                       uuid.c uuid.h \
-                       $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_monitord_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_monitord_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_monitord_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_monitord_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_monitord_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_monitord_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_monitord_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_monitord_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_user_nic_SOURCES = cmd/lxc_user_nic.c
-
-if ENABLE_STATIC_BINARIES
-lxc_user_nic_SOURCES += $(liblxc_la_SOURCES)
-lxc_user_nic_LDFLAGS = -all-static -pthread
-else
-lxc_user_nic_SOURCES += af_unix.c af_unix.h \
-                       caps.c caps.h \
-                       cgroups/cgfsng.c \
-                       cgroups/cgroup.c cgroups/cgroup.h \
-                       cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                       cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                       commands.c commands.h \
-                       commands_utils.c commands_utils.h \
-                       conf.c conf.h \
-                       confile.c confile.h \
-                       confile_utils.c confile_utils.h \
-                       error.c error.h \
-                       file_utils.c file_utils.h \
-                       ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                       initutils.c initutils.h \
-                       log.c log.h \
-                       lxclock.c lxclock.h \
-                       mainloop.c mainloop.h \
-                       memory_utils.h \
-                       monitor.c monitor.h \
-                       mount_utils.c mount_utils.h \
-                       namespace.c namespace.h \
-                       network.c network.h \
-                       nl.c nl.h \
-                       parse.c parse.h \
-                       process_utils.c process_utils.h \
-                       ringbuf.c ringbuf.h \
-                       start.c start.h \
-                       state.c state.h \
-                       storage/btrfs.c storage/btrfs.h \
-                       storage/dir.c storage/dir.h \
-                       storage/loop.c storage/loop.h \
-                       storage/lvm.c storage/lvm.h \
-                       storage/nbd.c storage/nbd.h \
-                       storage/overlay.c storage/overlay.h \
-                       storage/rbd.c storage/rbd.h \
-                       storage/rsync.c storage/rsync.h \
-                       storage/storage.c storage/storage.h \
-                       storage/storage_utils.c storage/storage_utils.h \
-                       storage/zfs.c storage/zfs.h \
-                       string_utils.c string_utils.h \
-                       sync.c sync.h \
-                       syscall_numbers.h \
-                       syscall_wrappers.h \
-                       terminal.c terminal.h \
-                       utils.c utils.h \
-                       uuid.c uuid.h \
-                       $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_user_nic_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_user_nic_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_user_nic_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_user_nic_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_user_nic_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_user_nic_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_user_nic_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-
-lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c
-
-if ENABLE_STATIC_BINARIES
-lxc_usernsexec_SOURCES += $(liblxc_la_SOURCES)
-lxc_usernsexec_LDFLAGS = -all-static -pthread
-else
-lxc_usernsexec_SOURCES += af_unix.c af_unix.h \
-                         caps.c caps.h \
-                         cgroups/cgfsng.c \
-                         cgroups/cgroup.c cgroups/cgroup.h \
-                         cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
-                         cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
-                         commands.c commands.h \
-                         commands_utils.c commands_utils.h \
-                         conf.c conf.h \
-                         confile.c confile.h \
-                         confile_utils.c confile_utils.h \
-                         error.c error.h \
-                         file_utils.c file_utils.h \
-                         hlist.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         initutils.c initutils.h \
-                         list.h \
-                         log.c log.h \
-                         lxclock.c lxclock.h \
-                         macro.h \
-                         mainloop.c mainloop.h \
-                         memory_utils.h \
-                         monitor.c monitor.h \
-                         mount_utils.c mount_utils.h \
-                         namespace.c namespace.h \
-                         network.c network.h \
-                         nl.c nl.h \
-                         parse.c parse.h \
-                         process_utils.c process_utils.h \
-                         ringbuf.c ringbuf.h \
-                         start.c start.h \
-                         state.c state.h \
-                         storage/btrfs.c storage/btrfs.h \
-                         storage/dir.c storage/dir.h \
-                         storage/loop.c storage/loop.h \
-                         storage/lvm.c storage/lvm.h \
-                         storage/nbd.c storage/nbd.h \
-                         storage/overlay.c storage/overlay.h \
-                         storage/rbd.c storage/rbd.h \
-                         storage/rsync.c storage/rsync.h \
-                         storage/storage.c storage/storage.h \
-                         storage/storage_utils.c storage/storage_utils.h \
-                         storage/zfs.c storage/zfs.h \
-                         string_utils.c string_utils.h \
-                         sync.c sync.h \
-                         syscall_wrappers.h \
-                         terminal.c terminal.h \
-                         utils.c utils.h \
-                         uuid.c uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_usernsexec_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_usernsexec_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_usernsexec_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_usernsexec_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_usernsexec_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_usernsexec_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_usernsexec_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-endif
-endif
-
-
-if ENABLE_TOOLS
-if !HAVE_GETSUBOPT
-lxc_copy_SOURCES += tools/include/getsubopt.c tools/include/getsubopt.h
-endif
-endif
-
-if ENABLE_COMMANDS
-if HAVE_STATIC_LIBCAP
-sbin_PROGRAMS += init.lxc.static
-
-init_lxc_static_SOURCES = cmd/lxc_init.c \
-                         af_unix.c af_unix.h \
-                         caps.c caps.h \
-                         error.c error.h \
-                         file_utils.c file_utils.h \
-                         initutils.c initutils.h \
-                         log.c log.h \
-                         macro.h \
-                         memory_utils.h \
-                         namespace.c namespace.h \
-                         string_utils.c string_utils.h
-
-if !HAVE_GETLINE
-if HAVE_FGETLN
-init_lxc_static_SOURCES += ../include/getline.c ../include/getline.h
-endif
-endif
-
-if !HAVE_STRLCPY
-init_lxc_static_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-init_lxc_static_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-init_lxc_static_LDFLAGS = -all-static -pthread
-init_lxc_static_LDADD = @CAP_LIBS@
-init_lxc_static_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF
-if ENABLE_SANITIZERS
-init_lxc_static_CFLAGS += -fno-sanitize=address,undefined
-endif
-if ENABLE_FUZZERS
-init_lxc_static_CFLAGS += -fno-sanitize=fuzzer-no-link
-endif
-endif
-endif
-
-if ENABLE_PAM
-if HAVE_PAM
-exec_pam_LTLIBRARIES = pam_cgfs.la
-
-pam_cgfs_la_SOURCES = pam/pam_cgfs.c \
-                     file_utils.c file_utils.h \
-                     macro.h \
-                     memory_utils.h \
-                     string_utils.c string_utils.h
-
-if !HAVE_STRLCAT
-pam_cgfs_la_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_STRLCPY
-pam_cgfs_la_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-pam_cgfs_la_CFLAGS = $(AM_CFLAGS) -DNO_LXC_CONF
-
-pam_cgfs_la_LIBADD = $(AM_LIBS) \
-                    $(PAM_LIBS) \
-                    $(DLOG_LIBS) \
-                    -L$(top_srcdir)
-
-pam_cgfs_la_LDFLAGS = $(AM_LDFLAGS) \
-                     -avoid-version \
-                     -module \
-                     -shared
-endif
-endif
-
-install-exec-hook:
-       mkdir -p $(DESTDIR)$(datadir)/lxc
-       install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc
-       mv $(shell readlink -f $(DESTDIR)$(libdir)/liblxc.so) $(DESTDIR)$(libdir)/liblxc.so.@LXC_ABI@
-       rm -f $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.1
-       cd $(DESTDIR)$(libdir); \
-       ln -sf liblxc.so.@LXC_ABI@ liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)); \
-       ln -sf liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) liblxc.so
-if ENABLE_PAM
-if HAVE_PAM
-       $(RM) "$(DESTDIR)$(exec_pamdir)/pam_cgfs.la"
-       $(RM) "$(DESTDIR)$(exec_pamdir)/pam_cgfs.a"
-endif
-endif
-if ENABLE_COMMANDS
-       chmod u+s $(DESTDIR)$(libexecdir)/lxc/lxc-user-nic
-
-if ENABLE_BASH
-install-data-local:
-       cd $(DESTDIR)$(bashcompdir); \
-       for bin in $(bin_PROGRAMS) ; do \
-               ln -sf _lxc $$bin ; \
-       done
-endif
-endif
-
-uninstall-local:
-       $(RM) $(DESTDIR)$(libdir)/liblxc.so*
-       $(RM) $(DESTDIR)$(libdir)/liblxc.a
-if ENABLE_BASH
-       for bin in $(bin_PROGRAMS) ; do \
-               $(RM) $(DESTDIR)$(bashcompdir)/$$bin ; \
-       done
-endif
-
-if ENABLE_PAM
-if HAVE_PAM
-       $(RM) $(DESTDIR)$(exec_pamdir)/pam_cgfs.so*
-endif
-endif
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
deleted file mode 100644 (file)
index 4e0314d..0000000
+++ /dev/null
@@ -1,1708 +0,0 @@
-if ENABLE_TESTS
-
-LDADD = ../lxc/liblxc.la \
-       @CAP_LIBS@ \
-       @OPENSSL_LIBS@ \
-       @SECCOMP_LIBS@ \
-       @SELINUX_LIBS@ \
-       @DLOG_LIBS@ \
-       @LIBURING_LIBS@
-
-LSM_SOURCES = ../lxc/lsm/lsm.c \
-             ../lxc/lsm/lsm.h \
-             ../lxc/lsm/nop.c
-
-if ENABLE_APPARMOR
-LSM_SOURCES += ../lxc/lsm/apparmor.c
-endif
-
-if ENABLE_SELINUX
-LSM_SOURCES += ../lxc/lsm/selinux.c
-endif
-
-lxc_test_arch_parse_SOURCES = arch_parse.c \
-                             lxctest.h \
-                             ../lxc/lxc.h \
-                             ../lxc/memory_utils.h
-
-lxc_test_api_reboot_SOURCES = api_reboot.c \
-                             ../lxc/af_unix.c ../lxc/af_unix.h \
-                             ../lxc/caps.c ../lxc/caps.h \
-                             ../lxc/cgroups/cgfsng.c \
-                             ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                             ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                             ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                             ../lxc/commands.c ../lxc/commands.h \
-                             ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                             ../lxc/conf.c ../lxc/conf.h \
-                             ../lxc/confile.c ../lxc/confile.h \
-                             ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                             ../lxc/error.c ../lxc/error.h \
-                             ../lxc/file_utils.c ../lxc/file_utils.h \
-                             ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                             ../lxc/initutils.c ../lxc/initutils.h \
-                             ../lxc/log.c ../lxc/log.h \
-                             ../lxc/lxclock.c ../lxc/lxclock.h \
-                             ../lxc/mainloop.c ../lxc/mainloop.h \
-                             ../lxc/monitor.c ../lxc/monitor.h \
-                             ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                             ../lxc/namespace.c ../lxc/namespace.h \
-                             ../lxc/network.c ../lxc/network.h \
-                             ../lxc/nl.c ../lxc/nl.h \
-                             ../lxc/parse.c ../lxc/parse.h \
-                             ../lxc/process_utils.c ../lxc/process_utils.h \
-                             ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                             ../lxc/start.c ../lxc/start.h \
-                             ../lxc/state.c ../lxc/state.h \
-                             ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                             ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                             ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                             ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                             ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                             ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                             ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                             ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                             ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                             ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                             ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                             ../lxc/sync.c ../lxc/sync.h \
-                             ../lxc/string_utils.c ../lxc/string_utils.h \
-                             ../lxc/terminal.c ../lxc/terminal.h \
-                             ../lxc/utils.c ../lxc/utils.h \
-                             ../lxc/uuid.c ../lxc/uuid.h \
-                             $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_api_reboot_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_api_reboot_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_api_reboot_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_api_reboot_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_api_reboot_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_api_reboot_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_api_reboot_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_apparmor_SOURCES = aa.c \
-                           ../lxc/af_unix.c ../lxc/af_unix.h \
-                           ../lxc/caps.c ../lxc/caps.h \
-                           ../lxc/cgroups/cgfsng.c \
-                           ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                           ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                           ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                           ../lxc/commands.c ../lxc/commands.h \
-                           ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                           ../lxc/conf.c ../lxc/conf.h \
-                           ../lxc/confile.c ../lxc/confile.h \
-                           ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                           ../lxc/error.c ../lxc/error.h \
-                           ../lxc/file_utils.c ../lxc/file_utils.h \
-                           ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                           ../lxc/initutils.c ../lxc/initutils.h \
-                           ../lxc/log.c ../lxc/log.h \
-                           ../lxc/lxclock.c ../lxc/lxclock.h \
-                           ../lxc/mainloop.c ../lxc/mainloop.h \
-                           ../lxc/monitor.c ../lxc/monitor.h \
-                           ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                           ../lxc/namespace.c ../lxc/namespace.h \
-                           ../lxc/network.c ../lxc/network.h \
-                           ../lxc/nl.c ../lxc/nl.h \
-                           ../lxc/parse.c ../lxc/parse.h \
-                           ../lxc/process_utils.c ../lxc/process_utils.h \
-                           ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                           ../lxc/start.c ../lxc/start.h \
-                           ../lxc/state.c ../lxc/state.h \
-                           ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                           ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                           ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                           ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                           ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                           ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                           ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                           ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                           ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                           ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                           ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                           ../lxc/sync.c ../lxc/sync.h \
-                           ../lxc/string_utils.c ../lxc/string_utils.h \
-                           ../lxc/terminal.c ../lxc/terminal.h \
-                           ../lxc/utils.c ../lxc/utils.h \
-                           ../lxc/uuid.c ../lxc/uuid.h \
-                           $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_apparmor_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_apparmor_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_apparmor_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_apparmor_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_apparmor_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_apparmor_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_apparmor_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_apparmor_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_attach_SOURCES = attach.c \
-                         ../lxc/af_unix.c ../lxc/af_unix.h \
-                         ../lxc/caps.c ../lxc/caps.h \
-                         ../lxc/cgroups/cgfsng.c \
-                         ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                         ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                         ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                         ../lxc/commands.c ../lxc/commands.h \
-                         ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                         ../lxc/conf.c ../lxc/conf.h \
-                         ../lxc/confile.c ../lxc/confile.h \
-                         ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                         ../lxc/error.c ../lxc/error.h \
-                         ../lxc/file_utils.c ../lxc/file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         ../lxc/initutils.c ../lxc/initutils.h \
-                         ../lxc/log.c ../lxc/log.h \
-                         ../lxc/lxclock.c ../lxc/lxclock.h \
-                         ../lxc/mainloop.c ../lxc/mainloop.h \
-                         ../lxc/monitor.c ../lxc/monitor.h \
-                         ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                         ../lxc/namespace.c ../lxc/namespace.h \
-                         ../lxc/network.c ../lxc/network.h \
-                         ../lxc/nl.c ../lxc/nl.h \
-                         ../lxc/parse.c ../lxc/parse.h \
-                         ../lxc/process_utils.c ../lxc/process_utils.h \
-                         ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                         ../lxc/start.c ../lxc/start.h \
-                         ../lxc/state.c ../lxc/state.h \
-                         ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                         ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                         ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                         ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                         ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                         ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                         ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                         ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                         ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                         ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                         ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                         ../lxc/sync.c ../lxc/sync.h \
-                         ../lxc/string_utils.c ../lxc/string_utils.h \
-                         ../lxc/terminal.c ../lxc/terminal.h \
-                         ../lxc/utils.c ../lxc/utils.h \
-                         ../lxc/uuid.c ../lxc/uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_attach_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_attach_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_attach_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_attach_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_attach_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_attach_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_attach_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_basic_SOURCES = basic.c
-lxc_test_cgpath_SOURCES = cgpath.c \
-                         ../lxc/af_unix.c ../lxc/af_unix.h \
-                         ../lxc/caps.c ../lxc/caps.h \
-                         ../lxc/cgroups/cgfsng.c \
-                         ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                         ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                         ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                         ../lxc/commands.c ../lxc/commands.h \
-                         ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                         ../lxc/conf.c ../lxc/conf.h \
-                         ../lxc/confile.c ../lxc/confile.h \
-                         ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                         ../lxc/error.c ../lxc/error.h \
-                         ../lxc/file_utils.c ../lxc/file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         ../lxc/initutils.c ../lxc/initutils.h \
-                         ../lxc/log.c ../lxc/log.h \
-                         ../lxc/lxclock.c ../lxc/lxclock.h \
-                         ../lxc/mainloop.c ../lxc/mainloop.h \
-                         ../lxc/monitor.c ../lxc/monitor.h \
-                         ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                         ../lxc/namespace.c ../lxc/namespace.h \
-                         ../lxc/network.c ../lxc/network.h \
-                         ../lxc/nl.c ../lxc/nl.h \
-                         ../lxc/parse.c ../lxc/parse.h \
-                         ../lxc/process_utils.c ../lxc/process_utils.h \
-                         ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                         ../lxc/start.c ../lxc/start.h \
-                         ../lxc/state.c ../lxc/state.h \
-                         ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                         ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                         ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                         ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                         ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                         ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                         ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                         ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                         ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                         ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                         ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                         ../lxc/sync.c ../lxc/sync.h \
-                         ../lxc/string_utils.c ../lxc/string_utils.h \
-                         ../lxc/terminal.c ../lxc/terminal.h \
-                         ../lxc/utils.c ../lxc/utils.h \
-                         ../lxc/uuid.c ../lxc/uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_cgpath_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_cgpath_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_cgpath_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_cgpath_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_cgpath_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_cgpath_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_cgpath_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_clonetest_SOURCES = clonetest.c
-lxc_test_concurrent_SOURCES = concurrent.c
-lxc_test_config_jump_table_SOURCES = config_jump_table.c \
-                                    lxctest.h \
-                                    ../lxc/af_unix.c ../lxc/af_unix.h \
-                                    ../lxc/caps.c ../lxc/caps.h \
-                                    ../lxc/cgroups/cgfsng.c \
-                                    ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                                    ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                                    ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                                    ../lxc/commands.c ../lxc/commands.h \
-                                    ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                                    ../lxc/conf.c ../lxc/conf.h \
-                                    ../lxc/confile.c ../lxc/confile.h \
-                                    ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                                    ../lxc/error.c ../lxc/error.h \
-                                    ../lxc/file_utils.c ../lxc/file_utils.h \
-                                    ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                                    ../lxc/initutils.c ../lxc/initutils.h \
-                                    ../lxc/log.c ../lxc/log.h \
-                                    ../lxc/lxclock.c ../lxc/lxclock.h \
-                                    ../lxc/mainloop.c ../lxc/mainloop.h \
-                                    ../lxc/monitor.c ../lxc/monitor.h \
-                                    ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                                    ../lxc/namespace.c ../lxc/namespace.h \
-                                    ../lxc/network.c ../lxc/network.h \
-                                    ../lxc/nl.c ../lxc/nl.h \
-                                    ../lxc/parse.c ../lxc/parse.h \
-                                    ../lxc/process_utils.c ../lxc/process_utils.h \
-                                    ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                                    ../lxc/start.c ../lxc/start.h \
-                                    ../lxc/state.c ../lxc/state.h \
-                                    ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                                    ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                                    ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                                    ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                                    ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                                    ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                                    ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                                    ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                                    ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                                    ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                                    ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                                    ../lxc/sync.c ../lxc/sync.h \
-                                    ../lxc/string_utils.c ../lxc/string_utils.h \
-                                    ../lxc/terminal.c ../lxc/terminal.h \
-                                    ../lxc/utils.c ../lxc/utils.h \
-                                    ../lxc/uuid.c ../lxc/uuid.h \
-                                    $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_config_jump_table_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_config_jump_table_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_config_jump_table_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_config_jump_table_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_config_jump_table_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_config_jump_table_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_config_jump_table_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_console_SOURCES = console.c
-lxc_test_console_log_SOURCES = console_log.c lxctest.h
-lxc_test_containertests_SOURCES = containertests.c
-lxc_test_createtest_SOURCES = createtest.c
-lxc_test_criu_check_feature_SOURCES = criu_check_feature.c lxctest.h
-lxc_test_cve_2019_5736_SOURCES =  cve-2019-5736.c lxctest.h
-lxc_test_destroytest_SOURCES = destroytest.c
-lxc_test_device_add_remove_SOURCES = device_add_remove.c \
-                                    ../lxc/af_unix.c ../lxc/af_unix.h \
-                                    ../lxc/caps.c ../lxc/caps.h \
-                                    ../lxc/cgroups/cgfsng.c \
-                                    ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                                    ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                                    ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                                    ../lxc/commands.c ../lxc/commands.h \
-                                    ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                                    ../lxc/conf.c ../lxc/conf.h \
-                                    ../lxc/confile.c ../lxc/confile.h \
-                                    ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                                    ../lxc/error.c ../lxc/error.h \
-                                    ../lxc/file_utils.c ../lxc/file_utils.h \
-                                    ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                                    ../lxc/initutils.c ../lxc/initutils.h \
-                                    ../lxc/log.c ../lxc/log.h \
-                                    ../lxc/lxclock.c ../lxc/lxclock.h \
-                                    ../lxc/mainloop.c ../lxc/mainloop.h \
-                                    ../lxc/monitor.c ../lxc/monitor.h \
-                                    ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                                    ../lxc/namespace.c ../lxc/namespace.h \
-                                    ../lxc/network.c ../lxc/network.h \
-                                    ../lxc/nl.c ../lxc/nl.h \
-                                    ../lxc/parse.c ../lxc/parse.h \
-                                    ../lxc/process_utils.c ../lxc/process_utils.h \
-                                    ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                                    ../lxc/start.c ../lxc/start.h \
-                                    ../lxc/state.c ../lxc/state.h \
-                                    ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                                    ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                                    ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                                    ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                                    ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                                    ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                                    ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                                    ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                                    ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                                    ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                                    ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                                    ../lxc/sync.c ../lxc/sync.h \
-                                    ../lxc/string_utils.c ../lxc/string_utils.h \
-                                    ../lxc/terminal.c ../lxc/terminal.h \
-                                    ../lxc/utils.c ../lxc/utils.h \
-                                    ../lxc/uuid.c ../lxc/uuid.h \
-                                    $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_device_add_remove_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_device_add_remove_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_device_add_remove_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_device_add_remove_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_device_add_remove_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_device_add_remove_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_device_add_remove_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_device_add_remove_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_getkeys_SOURCES = getkeys.c
-lxc_test_get_item_SOURCES = get_item.c \
-                           ../lxc/af_unix.c ../lxc/af_unix.h \
-                           ../lxc/caps.c ../lxc/caps.h \
-                           ../lxc/cgroups/cgfsng.c \
-                           ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                           ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                           ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                           ../lxc/commands.c ../lxc/commands.h \
-                           ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                           ../lxc/conf.c ../lxc/conf.h \
-                           ../lxc/confile.c ../lxc/confile.h \
-                           ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                           ../lxc/error.c ../lxc/error.h \
-                           ../lxc/file_utils.c ../lxc/file_utils.h \
-                           ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                           ../lxc/initutils.c ../lxc/initutils.h \
-                           ../lxc/log.c ../lxc/log.h \
-                           ../lxc/lxclock.c ../lxc/lxclock.h \
-                           ../lxc/mainloop.c ../lxc/mainloop.h \
-                           ../lxc/monitor.c ../lxc/monitor.h \
-                           ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                           ../lxc/namespace.c ../lxc/namespace.h \
-                           ../lxc/network.c ../lxc/network.h \
-                           ../lxc/nl.c ../lxc/nl.h \
-                           ../lxc/parse.c ../lxc/parse.h \
-                           ../lxc/process_utils.c ../lxc/process_utils.h \
-                           ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                           ../lxc/start.c ../lxc/start.h \
-                           ../lxc/state.c ../lxc/state.h \
-                           ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                           ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                           ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                           ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                           ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                           ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                           ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                           ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                           ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                           ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                           ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                           ../lxc/sync.c ../lxc/sync.h \
-                           ../lxc/string_utils.c ../lxc/string_utils.h \
-                           ../lxc/terminal.c ../lxc/terminal.h \
-                           ../lxc/utils.c ../lxc/utils.h \
-                           ../lxc/uuid.c ../lxc/uuid.h \
-                           $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_get_item_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_get_item_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_get_item_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_get_item_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_get_item_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_get_item_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_get_item_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_get_item_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_list_SOURCES = list.c
-lxc_test_locktests_SOURCES = locktests.c \
-                            ../lxc/af_unix.c ../lxc/af_unix.h \
-                            ../lxc/caps.c ../lxc/caps.h \
-                            ../lxc/cgroups/cgfsng.c \
-                            ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                            ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                            ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                            ../lxc/commands.c ../lxc/commands.h \
-                            ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                            ../lxc/conf.c ../lxc/conf.h \
-                            ../lxc/confile.c ../lxc/confile.h \
-                            ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                            ../lxc/error.c ../lxc/error.h \
-                            ../lxc/file_utils.c ../lxc/file_utils.h \
-                            ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                            ../lxc/initutils.c ../lxc/initutils.h \
-                            ../lxc/log.c ../lxc/log.h \
-                            ../lxc/lxclock.c ../lxc/lxclock.h \
-                            ../lxc/mainloop.c ../lxc/mainloop.h \
-                            ../lxc/monitor.c ../lxc/monitor.h \
-                            ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                            ../lxc/namespace.c ../lxc/namespace.h \
-                            ../lxc/network.c ../lxc/network.h \
-                            ../lxc/nl.c ../lxc/nl.h \
-                            ../lxc/parse.c ../lxc/parse.h \
-                            ../lxc/process_utils.c ../lxc/process_utils.h \
-                            ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                            ../lxc/start.c ../lxc/start.h \
-                            ../lxc/state.c ../lxc/state.h \
-                            ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                            ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                            ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                            ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                            ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                            ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                            ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                            ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                            ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                            ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                            ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                            ../lxc/sync.c ../lxc/sync.h \
-                            ../lxc/string_utils.c ../lxc/string_utils.h \
-                            ../lxc/terminal.c ../lxc/terminal.h \
-                            ../lxc/utils.c ../lxc/utils.h \
-                            ../lxc/uuid.c ../lxc/uuid.h \
-                            $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_locktests_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_locktests_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_locktests_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_locktests_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_locktests_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_locktests_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_locktests_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_locktests_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_lxcpath_SOURCES = lxcpath.c
-lxc_test_may_control_SOURCES = may_control.c
-lxc_test_mount_injection_SOURCES = mount_injection.c \
-                                  lxctest.h \
-                                  ../lxc/af_unix.c ../lxc/af_unix.h \
-                                  ../lxc/caps.c ../lxc/caps.h \
-                                  ../lxc/cgroups/cgfsng.c \
-                                  ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                                  ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                                  ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                                  ../lxc/commands.c ../lxc/commands.h \
-                                  ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                                  ../lxc/conf.c ../lxc/conf.h \
-                                  ../lxc/confile.c ../lxc/confile.h \
-                                  ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                                  ../lxc/error.c ../lxc/error.h \
-                                  ../lxc/file_utils.c ../lxc/file_utils.h \
-                                  ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                                  ../lxc/initutils.c ../lxc/initutils.h \
-                                  ../lxc/log.c ../lxc/log.h \
-                                  ../lxc/lxclock.c ../lxc/lxclock.h \
-                                  ../lxc/mainloop.c ../lxc/mainloop.h \
-                                  ../lxc/monitor.c ../lxc/monitor.h \
-                                  ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                                  ../lxc/namespace.c ../lxc/namespace.h \
-                                  ../lxc/network.c ../lxc/network.h \
-                                  ../lxc/nl.c ../lxc/nl.h \
-                                  ../lxc/parse.c ../lxc/parse.h \
-                                  ../lxc/process_utils.c ../lxc/process_utils.h \
-                                  ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                                  ../lxc/start.c ../lxc/start.h \
-                                  ../lxc/state.c ../lxc/state.h \
-                                  ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                                  ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                                  ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                                  ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                                  ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                                  ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                                  ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                                  ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                                  ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                                  ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                                  ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                                  ../lxc/sync.c ../lxc/sync.h \
-                                  ../lxc/string_utils.c ../lxc/string_utils.h \
-                                  ../lxc/terminal.c ../lxc/terminal.h \
-                                  ../lxc/utils.c ../lxc/utils.h \
-                                  ../lxc/uuid.c ../lxc/uuid.h \
-                                  $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_mount_injection_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_mount_injection_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_mount_injection_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_mount_injection_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_mount_injection_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_mount_injection_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_mount_injection_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_mount_injection_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_parse_config_file_SOURCES = parse_config_file.c \
-                                    lxctest.h \
-                                    ../lxc/af_unix.c ../lxc/af_unix.h \
-                                    ../lxc/caps.c ../lxc/caps.h \
-                                    ../lxc/cgroups/cgfsng.c \
-                                    ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                                    ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                                    ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                                    ../lxc/commands.c ../lxc/commands.h \
-                                    ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                                    ../lxc/conf.c ../lxc/conf.h \
-                                    ../lxc/confile.c ../lxc/confile.h \
-                                    ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                                    ../lxc/error.c ../lxc/error.h \
-                                    ../lxc/file_utils.c ../lxc/file_utils.h \
-                                    ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                                    ../lxc/initutils.c ../lxc/initutils.h \
-                                    ../lxc/log.c ../lxc/log.h \
-                                    ../lxc/lxclock.c ../lxc/lxclock.h \
-                                    ../lxc/mainloop.c ../lxc/mainloop.h \
-                                    ../lxc/monitor.c ../lxc/monitor.h \
-                                    ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                                    ../lxc/namespace.c ../lxc/namespace.h \
-                                    ../lxc/network.c ../lxc/network.h \
-                                    ../lxc/nl.c ../lxc/nl.h \
-                                    ../lxc/parse.c ../lxc/parse.h \
-                                    ../lxc/process_utils.c ../lxc/process_utils.h \
-                                    ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                                    ../lxc/start.c ../lxc/start.h \
-                                    ../lxc/state.c ../lxc/state.h \
-                                    ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                                    ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                                    ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                                    ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                                    ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                                    ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                                    ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                                    ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                                    ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                                    ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                                    ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                                    ../lxc/sync.c ../lxc/sync.h \
-                                    ../lxc/string_utils.c ../lxc/string_utils.h \
-                                    ../lxc/terminal.c ../lxc/terminal.h \
-                                    ../lxc/utils.c ../lxc/utils.h \
-                                    ../lxc/uuid.c ../lxc/uuid.h \
-                                    $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_parse_config_file_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_parse_config_file_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_parse_config_file_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_parse_config_file_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_parse_config_file_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_parse_config_file_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_parse_config_file_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_raw_clone_SOURCES = lxc_raw_clone.c \
-                            lxctest.h \
-                            ../lxc/af_unix.c ../lxc/af_unix.h \
-                            ../lxc/caps.c ../lxc/caps.h \
-                            ../lxc/cgroups/cgfsng.c \
-                            ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                            ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                            ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                            ../lxc/commands.c ../lxc/commands.h \
-                            ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                            ../lxc/conf.c ../lxc/conf.h \
-                            ../lxc/confile.c ../lxc/confile.h \
-                            ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                            ../lxc/error.c ../lxc/error.h \
-                            ../lxc/file_utils.c ../lxc/file_utils.h \
-                            ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                            ../lxc/initutils.c ../lxc/initutils.h \
-                            ../lxc/log.c ../lxc/log.h \
-                            ../lxc/lxclock.c ../lxc/lxclock.h \
-                            ../lxc/mainloop.c ../lxc/mainloop.h \
-                            ../lxc/monitor.c ../lxc/monitor.h \
-                            ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                            ../lxc/namespace.c ../lxc/namespace.h \
-                            ../lxc/network.c ../lxc/network.h \
-                            ../lxc/nl.c ../lxc/nl.h \
-                            ../lxc/parse.c ../lxc/parse.h \
-                            ../lxc/process_utils.c ../lxc/process_utils.h \
-                            ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                            ../lxc/start.c ../lxc/start.h \
-                            ../lxc/state.c ../lxc/state.h \
-                            ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                            ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                            ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                            ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                            ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                            ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                            ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                            ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                            ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                            ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                            ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                            ../lxc/sync.c ../lxc/sync.h \
-                            ../lxc/string_utils.c ../lxc/string_utils.h \
-                            ../lxc/terminal.c ../lxc/terminal.h \
-                            ../lxc/utils.c ../lxc/utils.h \
-                            ../lxc/uuid.c ../lxc/uuid.h \
-                            $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_raw_clone_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_raw_clone_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_raw_clone_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_raw_clone_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_raw_clone_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_raw_clone_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_raw_clone_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_raw_clone_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_reboot_SOURCES = reboot.c
-lxc_test_saveconfig_SOURCES = saveconfig.c
-lxc_test_share_ns_SOURCES = share_ns.c \
-                           lxctest.h \
-                           ../lxc/compiler.h
-
-if !HAVE_STRLCPY
-lxc_test_share_ns_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_share_ns_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_share_ns_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_share_ns_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_share_ns_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_share_ns_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_shortlived_SOURCES = shortlived.c \
-                             ../lxc/file_utils.c ../lxc/file_utils.h \
-                             ../lxc/string_utils.c ../lxc/string_utils.h
-
-if !HAVE_STRLCPY
-lxc_test_shortlived_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_shortlived_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_shortlived_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_shortlived_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_shortlived_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_shortlived_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_shutdowntest_SOURCES = shutdowntest.c
-lxc_test_snapshot_SOURCES = snapshot.c
-lxc_test_startone_SOURCES = startone.c
-lxc_test_state_server_SOURCES = state_server.c \
-                               lxctest.h \
-                               ../lxc/compiler.h
-
-if !HAVE_STRLCPY
-lxc_test_state_server_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_state_server_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_state_server_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_state_server_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_state_server_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_state_server_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_utils_SOURCES = lxc-test-utils.c \
-                        lxctest.h \
-                         ../lxc/af_unix.c ../lxc/af_unix.h \
-                         ../lxc/caps.c ../lxc/caps.h \
-                         ../lxc/cgroups/cgfsng.c \
-                         ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                         ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                         ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                         ../lxc/commands.c ../lxc/commands.h \
-                         ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                         ../lxc/conf.c ../lxc/conf.h \
-                         ../lxc/confile.c ../lxc/confile.h \
-                         ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                         ../lxc/error.c ../lxc/error.h \
-                         ../lxc/file_utils.c ../lxc/file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         ../lxc/initutils.c ../lxc/initutils.h \
-                         ../lxc/log.c ../lxc/log.h \
-                         ../lxc/lxclock.c ../lxc/lxclock.h \
-                         ../lxc/mainloop.c ../lxc/mainloop.h \
-                         ../lxc/monitor.c ../lxc/monitor.h \
-                         ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                         ../lxc/namespace.c ../lxc/namespace.h \
-                         ../lxc/network.c ../lxc/network.h \
-                         ../lxc/nl.c ../lxc/nl.h \
-                         ../lxc/parse.c ../lxc/parse.h \
-                         ../lxc/process_utils.c ../lxc/process_utils.h \
-                         ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                         ../lxc/start.c ../lxc/start.h \
-                         ../lxc/state.c ../lxc/state.h \
-                         ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                         ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                         ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                         ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                         ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                         ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                         ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                         ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                         ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                         ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                         ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                         ../lxc/sync.c ../lxc/sync.h \
-                         ../lxc/string_utils.c ../lxc/string_utils.h \
-                         ../lxc/terminal.c ../lxc/terminal.h \
-                         ../lxc/utils.c ../lxc/utils.h \
-                         ../lxc/uuid.c ../lxc/uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_utils_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_utils_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_utils_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_utils_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_utils_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_utils_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_utils_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_sys_mixed_SOURCES = sys_mixed.c \
-                         ../lxc/af_unix.c ../lxc/af_unix.h \
-                         ../lxc/caps.c ../lxc/caps.h \
-                         ../lxc/cgroups/cgfsng.c \
-                         ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                         ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                         ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                         ../lxc/commands.c ../lxc/commands.h \
-                         ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                         ../lxc/conf.c ../lxc/conf.h \
-                         ../lxc/confile.c ../lxc/confile.h \
-                         ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                         ../lxc/error.c ../lxc/error.h \
-                         ../lxc/file_utils.c ../lxc/file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         ../lxc/initutils.c ../lxc/initutils.h \
-                         ../lxc/log.c ../lxc/log.h \
-                         ../lxc/lxclock.c ../lxc/lxclock.h \
-                         ../lxc/mainloop.c ../lxc/mainloop.h \
-                         ../lxc/monitor.c ../lxc/monitor.h \
-                         ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                         ../lxc/namespace.c ../lxc/namespace.h \
-                         ../lxc/network.c ../lxc/network.h \
-                         ../lxc/nl.c ../lxc/nl.h \
-                         ../lxc/parse.c ../lxc/parse.h \
-                         ../lxc/process_utils.c ../lxc/process_utils.h \
-                         ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                         ../lxc/start.c ../lxc/start.h \
-                         ../lxc/state.c ../lxc/state.h \
-                         ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                         ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                         ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                         ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                         ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                         ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                         ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                         ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                         ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                         ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                         ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                         ../lxc/sync.c ../lxc/sync.h \
-                         ../lxc/string_utils.c ../lxc/string_utils.h \
-                         ../lxc/terminal.c ../lxc/terminal.h \
-                         ../lxc/utils.c ../lxc/utils.h \
-                         ../lxc/uuid.c ../lxc/uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_sys_mixed_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_sys_mixed_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_sys_mixed_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_sys_mixed_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_sys_mixed_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_sys_mixed_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_sys_mixed_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_sys_mixed_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_rootfs_options_SOURCES = rootfs_options.c \
-                                 ../lxc/af_unix.c ../lxc/af_unix.h \
-                                 ../lxc/caps.c ../lxc/caps.h \
-                                 ../lxc/cgroups/cgfsng.c \
-                                 ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                                 ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                                 ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                                 ../lxc/commands.c ../lxc/commands.h \
-                                 ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                                 ../lxc/conf.c ../lxc/conf.h \
-                                 ../lxc/confile.c ../lxc/confile.h \
-                                 ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                                 ../lxc/error.c ../lxc/error.h \
-                                 ../lxc/file_utils.c ../lxc/file_utils.h \
-                                 ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                                 ../lxc/initutils.c ../lxc/initutils.h \
-                                 ../lxc/log.c ../lxc/log.h \
-                                 ../lxc/lxclock.c ../lxc/lxclock.h \
-                                 ../lxc/mainloop.c ../lxc/mainloop.h \
-                                 ../lxc/monitor.c ../lxc/monitor.h \
-                                 ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                                 ../lxc/namespace.c ../lxc/namespace.h \
-                                 ../lxc/network.c ../lxc/network.h \
-                                 ../lxc/nl.c ../lxc/nl.h \
-                                 ../lxc/parse.c ../lxc/parse.h \
-                                 ../lxc/process_utils.c ../lxc/process_utils.h \
-                                 ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                                 ../lxc/start.c ../lxc/start.h \
-                                 ../lxc/state.c ../lxc/state.h \
-                                 ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                                 ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                                 ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                                 ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                                 ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                                 ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                                 ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                                 ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                                 ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                                 ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                                 ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                                 ../lxc/sync.c ../lxc/sync.h \
-                                 ../lxc/string_utils.c ../lxc/string_utils.h \
-                                 ../lxc/terminal.c ../lxc/terminal.h \
-                                 ../lxc/utils.c ../lxc/utils.h \
-                                 ../lxc/uuid.c ../lxc/uuid.h \
-                                 $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_rootfs_options_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_rootfs_options_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_rootfs_options_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_rootfs_options_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_rootfs_options_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_rootfs_options_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_rootfs_options_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_rootfs_options_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_capabilities_SOURCES = capabilities.c \
-                                     ../lxc/af_unix.c ../lxc/af_unix.h \
-                                     ../lxc/caps.c ../lxc/caps.h \
-                                     ../lxc/cgroups/cgfsng.c \
-                                     ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                                     ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                                     ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                                     ../lxc/commands.c ../lxc/commands.h \
-                                     ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                                     ../lxc/conf.c ../lxc/conf.h \
-                                     ../lxc/confile.c ../lxc/confile.h \
-                                     ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                                     ../lxc/error.c ../lxc/error.h \
-                                     ../lxc/file_utils.c ../lxc/file_utils.h \
-                                     ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                                     ../lxc/initutils.c ../lxc/initutils.h \
-                                     ../lxc/log.c ../lxc/log.h \
-                                     ../lxc/lxclock.c ../lxc/lxclock.h \
-                                     ../lxc/mainloop.c ../lxc/mainloop.h \
-                                     ../lxc/monitor.c ../lxc/monitor.h \
-                                     ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                                     ../lxc/namespace.c ../lxc/namespace.h \
-                                     ../lxc/network.c ../lxc/network.h \
-                                     ../lxc/nl.c ../lxc/nl.h \
-                                     ../lxc/parse.c ../lxc/parse.h \
-                                     ../lxc/process_utils.c ../lxc/process_utils.h \
-                                     ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                                     ../lxc/start.c ../lxc/start.h \
-                                     ../lxc/state.c ../lxc/state.h \
-                                     ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                                     ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                                     ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                                     ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                                     ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                                     ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                                     ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                                     ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                                     ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                                     ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                                     ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                                     ../lxc/sync.c ../lxc/sync.h \
-                                     ../lxc/string_utils.c ../lxc/string_utils.h \
-                                     ../lxc/terminal.c ../lxc/terminal.h \
-                                     ../lxc/utils.c ../lxc/utils.h \
-                                     ../lxc/uuid.c ../lxc/uuid.h \
-                                     $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_capabilities_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_capabilities_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_capabilities_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_capabilities_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_capabilities_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_capabilities_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-               ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_capabilities_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_capabilities_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_sysctls_SOURCES = sysctls.c \
-                         ../lxc/af_unix.c ../lxc/af_unix.h \
-                         ../lxc/caps.c ../lxc/caps.h \
-                         ../lxc/cgroups/cgfsng.c \
-                         ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                         ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                         ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                         ../lxc/commands.c ../lxc/commands.h \
-                         ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                         ../lxc/conf.c ../lxc/conf.h \
-                         ../lxc/confile.c ../lxc/confile.h \
-                         ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                         ../lxc/error.c ../lxc/error.h \
-                         ../lxc/file_utils.c ../lxc/file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         ../lxc/initutils.c ../lxc/initutils.h \
-                         ../lxc/log.c ../lxc/log.h \
-                         ../lxc/lxclock.c ../lxc/lxclock.h \
-                         ../lxc/mainloop.c ../lxc/mainloop.h \
-                         ../lxc/monitor.c ../lxc/monitor.h \
-                         ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                         ../lxc/namespace.c ../lxc/namespace.h \
-                         ../lxc/network.c ../lxc/network.h \
-                         ../lxc/nl.c ../lxc/nl.h \
-                         ../lxc/parse.c ../lxc/parse.h \
-                         ../lxc/process_utils.c ../lxc/process_utils.h \
-                         ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                         ../lxc/start.c ../lxc/start.h \
-                         ../lxc/state.c ../lxc/state.h \
-                         ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                         ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                         ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                         ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                         ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                         ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                         ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                         ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                         ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                         ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                         ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                         ../lxc/sync.c ../lxc/sync.h \
-                         ../lxc/string_utils.c ../lxc/string_utils.h \
-                         ../lxc/terminal.c ../lxc/terminal.h \
-                         ../lxc/utils.c ../lxc/utils.h \
-                         ../lxc/uuid.c ../lxc/uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_sysctls_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_sysctls_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_sysctls_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_sysctls_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_sysctls_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_sysctls_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-                           ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_sysctls_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_sysctls_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-lxc_test_proc_pid_SOURCES = proc_pid.c \
-                         ../lxc/af_unix.c ../lxc/af_unix.h \
-                         ../lxc/caps.c ../lxc/caps.h \
-                         ../lxc/cgroups/cgfsng.c \
-                         ../lxc/cgroups/cgroup.c ../lxc/cgroups/cgroup.h \
-                         ../lxc/cgroups/cgroup2_devices.c ../lxc/cgroups/cgroup2_devices.h \
-                         ../lxc/cgroups/cgroup_utils.c ../lxc/cgroups/cgroup_utils.h \
-                         ../lxc/commands.c ../lxc/commands.h \
-                         ../lxc/commands_utils.c ../lxc/commands_utils.h \
-                         ../lxc/conf.c ../lxc/conf.h \
-                         ../lxc/confile.c ../lxc/confile.h \
-                         ../lxc/confile_utils.c ../lxc/confile_utils.h \
-                         ../lxc/error.c ../lxc/error.h \
-                         ../lxc/file_utils.c ../lxc/file_utils.h \
-                         ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
-                         ../lxc/initutils.c ../lxc/initutils.h \
-                         ../lxc/log.c ../lxc/log.h \
-                         ../lxc/lxclock.c ../lxc/lxclock.h \
-                         ../lxc/mainloop.c ../lxc/mainloop.h \
-                         ../lxc/monitor.c ../lxc/monitor.h \
-                         ../lxc/mount_utils.c ../lxc/mount_utils.h \
-                         ../lxc/namespace.c ../lxc/namespace.h \
-                         ../lxc/network.c ../lxc/network.h \
-                         ../lxc/nl.c ../lxc/nl.h \
-                         ../lxc/parse.c ../lxc/parse.h \
-                         ../lxc/process_utils.c ../lxc/process_utils.h \
-                         ../lxc/ringbuf.c ../lxc/ringbuf.h \
-                         ../lxc/start.c ../lxc/start.h \
-                         ../lxc/state.c ../lxc/state.h \
-                         ../lxc/storage/btrfs.c ../lxc/storage/btrfs.h \
-                         ../lxc/storage/dir.c ../lxc/storage/dir.h \
-                         ../lxc/storage/loop.c ../lxc/storage/loop.h \
-                         ../lxc/storage/lvm.c ../lxc/storage/lvm.h \
-                         ../lxc/storage/nbd.c ../lxc/storage/nbd.h \
-                         ../lxc/storage/overlay.c ../lxc/storage/overlay.h \
-                         ../lxc/storage/rbd.c ../lxc/storage/rbd.h \
-                         ../lxc/storage/rsync.c ../lxc/storage/rsync.h \
-                         ../lxc/storage/storage.c ../lxc/storage/storage.h \
-                         ../lxc/storage/storage_utils.c ../lxc/storage/storage_utils.h \
-                         ../lxc/storage/zfs.c ../lxc/storage/zfs.h \
-                         ../lxc/sync.c ../lxc/sync.h \
-                         ../lxc/string_utils.c ../lxc/string_utils.h \
-                         ../lxc/terminal.c ../lxc/terminal.h \
-                         ../lxc/utils.c ../lxc/utils.h \
-                         ../lxc/uuid.c ../lxc/uuid.h \
-                         $(LSM_SOURCES)
-if ENABLE_SECCOMP
-lxc_test_proc_pid_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
-endif
-
-if !HAVE_STRCHRNUL
-lxc_test_proc_pid_SOURCES += ../include/strchrnul.c ../include/strchrnul.h
-endif
-
-if !HAVE_STRLCPY
-lxc_test_proc_pid_SOURCES += ../include/strlcpy.c ../include/strlcpy.h
-endif
-
-if !HAVE_STRLCAT
-lxc_test_proc_pid_SOURCES += ../include/strlcat.c ../include/strlcat.h
-endif
-
-if !HAVE_OPENPTY
-lxc_test_proc_pid_SOURCES += ../include/openpty.c ../include/openpty.h
-endif
-
-if IS_BIONIC
-lxc_test_proc_pid_SOURCES += ../include/fexecve.c ../include/fexecve.h \
-                            ../include/lxcmntent.c ../include/lxcmntent.h
-endif
-
-if !HAVE_GETGRGID_R
-lxc_test_proc_pid_SOURCES += ../include/getgrgid_r.c ../include/getgrgid_r.h
-endif
-
-if !HAVE_PRLIMIT
-if HAVE_PRLIMIT64
-lxc_test_proc_pid_SOURCES += ../include/prlimit.c ../include/prlimit.h
-endif
-endif
-
-AM_CFLAGS += -DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-            -DLXCPATH=\"$(LXCPATH)\" \
-            -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
-            -DLXCINITDIR=\"$(LXCINITDIR)\" \
-            -DLIBEXECDIR=\"$(LIBEXECDIR)\" \
-            -DLOGPATH=\"$(LOGPATH)\" \
-            -DLXCTEMPLATEDIR=\"$(LXCTEMPLATEDIR)\" \
-            -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
-            -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \
-            -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
-            -DSBINDIR=\"$(SBINDIR)\" \
-            -I $(top_srcdir)/src \
-            -I $(top_srcdir)/src/include \
-            -I $(top_srcdir)/src/lxc \
-            -I $(top_srcdir)/src/lxc/cgroups \
-            -I $(top_srcdir)/src/lxc/tools \
-            -I $(top_srcdir)/src/lxc/storage \
-            -pthread
-
-if ENABLE_APPARMOR
-AM_CFLAGS += -DHAVE_APPARMOR
-AM_CFLAGS += -DAPPARMOR_CACHE_DIR=\"$(APPARMOR_CACHE_DIR)\"
-endif
-
-if ENABLE_SECCOMP
-AM_CFLAGS += -DHAVE_SECCOMP \
-            $(SECCOMP_CFLAGS)
-endif
-
-if ENABLE_SELINUX
-AM_CFLAGS += -DHAVE_SELINUX
-endif
-
-bin_PROGRAMS = lxc-test-api-reboot \
-              lxc-test-apparmor \
-              lxc-test-arch-parse \
-              lxc-test-attach \
-              lxc-test-basic \
-              lxc-test-capabilities \
-              lxc-test-cgpath \
-              lxc-test-clonetest \
-              lxc-test-concurrent \
-              lxc-test-config-jump-table \
-              lxc-test-console \
-              lxc-test-console-log \
-              lxc-test-containertests \
-              lxc-test-createtest \
-              lxc-test-criu-check-feature \
-              lxc-test-cve-2019-5736 \
-              lxc-test-destroytest \
-              lxc-test-device-add-remove \
-              lxc-test-getkeys \
-              lxc-test-get_item \
-              lxc-test-list \
-              lxc-test-locktests \
-              lxc-test-lxcpath \
-              lxc-test-may-control \
-              lxc-test-mount-injection \
-              lxc-test-parse-config-file \
-              lxc-test-proc-pid \
-              lxc-test-raw-clone \
-              lxc-test-reboot \
-              lxc-test-rootfs-options \
-              lxc-test-saveconfig \
-              lxc-test-share-ns \
-              lxc-test-shortlived \
-              lxc-test-shutdowntest \
-              lxc-test-snapshot \
-              lxc-test-startone \
-              lxc-test-state-server \
-              lxc-test-sysctls \
-              lxc-test-sys-mixed \
-              lxc-test-utils
-
-bin_SCRIPTS =
-if ENABLE_TOOLS
-bin_SCRIPTS += lxc-test-automount \
-              lxc-test-autostart \
-              lxc-test-cloneconfig \
-              lxc-test-createconfig \
-              lxc-test-exit-code \
-              lxc-test-no-new-privs \
-              lxc-test-rootfs \
-              lxc-test-procsys \
-              lxc-test-usernsexec
-
-if DISTRO_UBUNTU
-bin_SCRIPTS += lxc-test-lxc-attach \
-              lxc-test-apparmor-mount \
-              lxc-test-apparmor-generated \
-              lxc-test-checkpoint-restore \
-              lxc-test-snapdeps \
-              lxc-test-symlink \
-              lxc-test-unpriv \
-              lxc-test-usernic
-endif
-endif
-
-if ENABLE_FUZZERS
-LIB_FUZZING_ENGINE ?= -fsanitize=fuzzer
-
-# https://google.github.io/oss-fuzz/getting-started/new-project-guide/#Requirements
-nodist_EXTRA_fuzz_lxc_config_read_SOURCES = dummy.cxx
-fuzz_lxc_config_read_SOURCES = fuzz-lxc-config-read.c
-fuzz_lxc_config_read_CFLAGS = $(AM_CFLAGS)
-fuzz_lxc_config_read_CXXFLAGS = $(AM_CFLAGS)
-fuzz_lxc_config_read_LDFLAGS = $(AM_LDFLAGS) -static
-fuzz_lxc_config_read_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
-
-nodist_EXTRA_fuzz_lxc_define_load_SOURCES = dummy.cxx
-fuzz_lxc_define_load_SOURCES = fuzz-lxc-define-load.c
-fuzz_lxc_define_load_CFLAGS = $(AM_CFLAGS)
-fuzz_lxc_define_load_CXXFLAGS = $(AM_CFLAGS)
-fuzz_lxc_define_load_LDFLAGS = $(AM_LDFLAGS) -static
-fuzz_lxc_define_load_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
-
-nodist_EXTRA_fuzz_lxc_cgroup_init_SOURCES = dummy.cxx
-fuzz_lxc_cgroup_init_SOURCES = fuzz-lxc-cgroup-init.c
-fuzz_lxc_cgroup_init_CFLAGS = $(AM_CFLAGS)
-fuzz_lxc_cgroup_init_CXXFLAGS = $(AM_CFLAGS)
-fuzz_lxc_cgroup_init_LDFLAGS = $(AM_LDFLAGS) -static
-fuzz_lxc_cgroup_init_LDADD = $(LDADD) $(LIB_FUZZING_ENGINE)
-
-bin_PROGRAMS += fuzz-lxc-cgroup-init \
-               fuzz-lxc-config-read \
-               fuzz-lxc-define-load
-
-bin_SCRIPTS += lxc-test-fuzzers
-endif
-endif
-
-EXTRA_DIST = arch_parse.c \
-            basic.c \
-            capabilities.c \
-            cgpath.c \
-            clonetest.c \
-            concurrent.c \
-            config_jump_table.c \
-            console.c \
-            console_log.c \
-            containertests.c \
-            createtest.c \
-            criu_check_feature.c \
-            cve-2019-5736.c \
-            destroytest.c \
-            device_add_remove.c \
-            get_item.c \
-            getkeys.c \
-            list.c \
-            locktests.c \
-            lxcpath.c \
-            lxc_raw_clone.c \
-            lxc-test-lxc-attach \
-            lxc-test-automount \
-            lxc-test-rootfs \
-            lxc-test-procsys \
-            lxc-test-autostart \
-            lxc-test-apparmor-mount \
-            lxc-test-apparmor-generated \
-            lxc-test-checkpoint-restore \
-            lxc-test-cloneconfig \
-            lxc-test-createconfig \
-            lxc-test-exit-code \
-            lxc-test-no-new-privs \
-            lxc-test-snapdeps \
-            lxc-test-symlink \
-            lxc-test-unpriv \
-            lxc-test-usernsexec \
-            lxc-test-utils.c \
-            may_control.c \
-            mount_injection.c \
-            parse_config_file.c \
-            proc_pid.c \
-            rootfs_options.c \
-            saveconfig.c \
-            shortlived.c \
-            shutdowntest.c \
-            snapshot.c \
-            startone.c \
-            state_server.c \
-            share_ns.c \
-            sysctls.c \
-            sys_mixed.c
-
-clean-local:
-       rm -f lxc-test-utils-*
-       rm -f lxc-parse-config-file-*
diff --git a/templates/Makefile.am b/templates/Makefile.am
deleted file mode 100644 (file)
index 15df51d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-templatesdir=@LXCTEMPLATEDIR@
-
-templates_SCRIPTS = lxc-busybox \
-                   lxc-download \
-                   lxc-local \
-                   lxc-oci