14
13
AC_CHECK_PROG(SETCAP, setcap, yes, no, $PATH$PATH_SEPARATOR/sbin)
15
AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
16
AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
16
[AC_HELP_STRING([--enable-doc], [make mans (require docbook2man installed) [default=auto]])],
17
[], [enable_doc=auto])
19
if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
20
AC_CHECK_PROG(have_docbook, [docbook2man], [yes], [no])
22
test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \
23
AC_MSG_ERROR([docbook2man required by man request, but not found])
26
AM_CONDITIONAL([ENABLE_DOCBOOK], [test "x$have_docbook" = "xyes"])
28
AC_ARG_ENABLE([examples],
29
[AC_HELP_STRING([--disable-examples], [do not install configuration examples])],
30
[], [enable_examples=yes])
32
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"])
17
34
AS_AC_EXPAND(PREFIX, $prefix)
18
35
AS_AC_EXPAND(LIBDIR, $libdir)
19
36
AS_AC_EXPAND(BINDIR, $bindir)
22
39
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
23
40
AS_AC_EXPAND(DATADIR, $datadir)
24
41
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
25
AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
42
AS_AC_EXPAND(DOCDIR, $docdir)
44
AC_ARG_WITH([config-path],
46
[--with-config-path=dir],
47
[lxc configuration repository]
48
)], [], [with_config_path="${localstatedir}/lib/lxc"])
26
50
AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
51
AS_AC_EXPAND(LXCPATH, "${with_config_path}")
52
AH_TEMPLATE([LXCPATH], [lxc configuration repository])
53
AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path])
54
AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")
55
AC_DEFINE_UNQUOTED(LXCLIBEXECDIR, "$LIBEXECDIR")
28
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
29
[#include <linux/types.h>
30
#include <bits/sockaddr.h>
31
#include <linux/socket.h>])
57
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],
59
AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
60
[#include <sys/socket.h>
33
63
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
34
64
[#include <sys/types.h>
45
75
CFLAGS="$CFLAGS -Wall"
48
LXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
49
LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
50
LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
52
AC_ARG_WITH([kernel-release],
53
[AC_HELP_STRING([--with-kernel-release=RELEASE],
54
[specify the "uname -r"-value to build for])],
55
[KERNEL_RELEASE="${withval}"],
56
[KERNEL_RELEASE=`uname -r`])
58
AC_ARG_ENABLE(test, [ --enable-test compile test program [default=no]],, enable_test=no)
59
AM_CONDITIONAL(ENABLE_TEST, test x$enable_test = xyes)
61
AC_SUBST(LXC_MAJOR_VERSION)
62
AC_SUBST(LXC_MINOR_VERSION)
63
AC_SUBST(LXC_MICRO_VERSION)
87
100
doc/common_options.sgml
103
doc/examples/Makefile
104
doc/examples/lxc-macvlan.conf
105
doc/examples/lxc-no-netns.conf
106
doc/examples/lxc-empty-netns.conf
107
doc/examples/lxc-phys.conf
108
doc/examples/lxc-veth.conf
109
doc/examples/lxc-complex-config
91
112
scripts/lxc-debian
92
113
scripts/lxc-fedora
100
121
src/lxc/lxc-checkconfig
101
122
src/lxc/lxc-setcap
102
123
src/lxc/lxc-version
106
etc/lxc-no-netns.conf
107
etc/lxc-empty-netns.conf
110
etc/lxc-complex-config
114
128
AC_CONFIG_COMMANDS([default],[[]],[[]])
117
if test "x$DOCBOOK" = "xno"; then
122
The docbook tool is not installed, the man pages won't be generated.
123
If you want the man pages, install docbook and rerun 'configure'.
129
131
if test "x$SETCAP" = "xno"; then