mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-04-28 18:42:47 +00:00
Remove autotools
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
099bd13ce5
commit
4c8139f9cf
26
.gitignore
vendored
26
.gitignore
vendored
@ -14,17 +14,6 @@
|
|||||||
.libs
|
.libs
|
||||||
.dirstamp
|
.dirstamp
|
||||||
|
|
||||||
Makefile.in
|
|
||||||
Makefile
|
|
||||||
COPYING
|
|
||||||
|
|
||||||
aclocal.m4
|
|
||||||
autom4te.cache
|
|
||||||
configure
|
|
||||||
config.log
|
|
||||||
config.status
|
|
||||||
libtool
|
|
||||||
|
|
||||||
lxc.spec
|
lxc.spec
|
||||||
lxc.pc
|
lxc.pc
|
||||||
|
|
||||||
@ -112,15 +101,6 @@ src/tests/lxc-test-sys-mixed
|
|||||||
src/tests/lxc-test-rootfs-options
|
src/tests/lxc-test-rootfs-options
|
||||||
src/tests/lxc-test-capabilities
|
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/apparmor/abstractions/start-container
|
||||||
config/bash/lxc
|
config/bash/lxc
|
||||||
config/init/common/lxc-containers
|
config/init/common/lxc-containers
|
||||||
@ -153,12 +133,6 @@ doc/api/html/*
|
|||||||
hooks/unmount-namespace
|
hooks/unmount-namespace
|
||||||
hooks/dhclient
|
hooks/dhclient
|
||||||
|
|
||||||
m4/
|
|
||||||
|
|
||||||
src/config.h
|
|
||||||
src/config.h.in
|
|
||||||
src/stamp-h1
|
|
||||||
|
|
||||||
.pc
|
.pc
|
||||||
patches
|
patches
|
||||||
*.orig
|
*.orig
|
||||||
|
239
INSTALL
239
INSTALL
@ -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.
|
|
||||||
|
|
35
Makefile.am
35
Makefile.am
@ -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)
|
|
31
autogen.sh
31
autogen.sh
@ -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
|
|
@ -1,5 +0,0 @@
|
|||||||
# Makefile.am
|
|
||||||
|
|
||||||
EXTRA_DIST = exit.cocci \
|
|
||||||
run-coccinelle.sh \
|
|
||||||
while-true.cocci
|
|
@ -1 +0,0 @@
|
|||||||
SUBDIRS = apparmor bash etc init selinux templates yum sysconfig
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
||||||
])
|
|
@ -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
|
|
@ -1,5 +0,0 @@
|
|||||||
EXTRA_DIST = _lxc
|
|
||||||
|
|
||||||
if ENABLE_BASH
|
|
||||||
dist_bashcomp_DATA = _lxc
|
|
||||||
endif
|
|
@ -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
|
|
@ -1 +0,0 @@
|
|||||||
SUBDIRS = common systemd sysvinit upstart
|
|
@ -1,2 +0,0 @@
|
|||||||
EXTRA_DIST = lxc-containers.in lxc-net.in
|
|
||||||
pkglibexec_SCRIPTS = lxc-containers lxc-net
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,8 +0,0 @@
|
|||||||
selinuxdir=@DATADIR@/lxc/selinux
|
|
||||||
|
|
||||||
EXTRA_DIST = \
|
|
||||||
lxc.if lxc.te
|
|
||||||
|
|
||||||
selinux_DATA = \
|
|
||||||
lxc.if \
|
|
||||||
lxc.te
|
|
@ -1,6 +0,0 @@
|
|||||||
sysconfigdir="@LXC_DISTRO_SYSCONF@"
|
|
||||||
|
|
||||||
sysconfig_DATA = \
|
|
||||||
lxc
|
|
||||||
|
|
||||||
EXTRA_DIST = $(sysconfig_DATA)
|
|
@ -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
|
|
@ -1,6 +0,0 @@
|
|||||||
templatesconfigdir=@LXCTEMPLATECONFIG@/common.conf.d/
|
|
||||||
|
|
||||||
EXTRA_DIST = README
|
|
||||||
|
|
||||||
templatesconfig_DATA = \
|
|
||||||
README
|
|
@ -1,6 +0,0 @@
|
|||||||
yumpluginsdir=$(datadir)/lxc
|
|
||||||
|
|
||||||
yumplugins_DATA = \
|
|
||||||
lxc-patch.py
|
|
||||||
|
|
||||||
EXTRA_DIST = $(yumplugins_DATA)
|
|
1154
configure.ac
1154
configure.ac
File diff suppressed because it is too large
Load Diff
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,3 +0,0 @@
|
|||||||
READMEdir=@LXCROOTFSMOUNT@
|
|
||||||
|
|
||||||
README_DATA=README
|
|
@ -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)
|
|
13
lxc.pc.in
13
lxc.pc.in
@ -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}
|
|
@ -1 +0,0 @@
|
|||||||
SUBDIRS = lxc tests
|
|
2703
src/lxc/Makefile.am
2703
src/lxc/Makefile.am
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +0,0 @@
|
|||||||
templatesdir=@LXCTEMPLATEDIR@
|
|
||||||
|
|
||||||
templates_SCRIPTS = lxc-busybox \
|
|
||||||
lxc-download \
|
|
||||||
lxc-local \
|
|
||||||
lxc-oci
|
|
Loading…
Reference in New Issue
Block a user