~ubuntu-branches/ubuntu/quantal/lxc/quantal-201208301614

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2010-06-28 10:15:48 UTC
  • mto: (1.1.4 upstream) (3.1.5 sid)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20100628101548-vexhggdo6x9cpwtk
ImportĀ upstreamĀ versionĀ 0.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#                                               -*- Autoconf -*-
2
2
# Process this file with autoconf to produce a configure script.
3
3
 
4
 
AC_INIT([lxc], [0.6.5])
 
4
AC_INIT([lxc], [0.7.1])
5
5
 
6
6
AC_CONFIG_SRCDIR([configure.ac])
7
7
AC_CONFIG_AUX_DIR([config])
35
35
AS_AC_EXPAND(LIBDIR, $libdir)
36
36
AS_AC_EXPAND(BINDIR, $bindir)
37
37
AS_AC_EXPAND(INCLUDEDIR, $includedir)
38
 
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
39
38
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
40
39
AS_AC_EXPAND(DATADIR, $datadir)
41
40
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
47
46
                [lxc configuration repository path]
48
47
        )], [], [with_config_path="${localstatedir}/lib/lxc"])
49
48
 
 
49
AC_ARG_WITH([rootfs-path],
 
50
        [AC_HELP_STRING(
 
51
                [--with-rootfs-path=dir],
 
52
                [lxc rootfs mount point]
 
53
        )], [], [with_rootfs_path="${libdir}/lxc/rootfs"])
 
54
 
50
55
AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
 
56
 
51
57
AS_AC_EXPAND(LXCPATH, "${with_config_path}")
 
58
AS_AC_EXPAND(LXCROOTFSMOUNT, "${with_rootfs_path}")
 
59
AS_AC_EXPAND(LXCINITDIR, $libdir/lxc)
 
60
AS_AC_EXPAND(LXCTEMPLATEDIR, $libdir/lxc/templates)
52
61
AH_TEMPLATE([LXCPATH], [lxc configuration repository])
53
 
AH_TEMPLATE([LXCLIBEXECDIR], [lxc executable library path])
 
62
AH_TEMPLATE([LXCINITDIR], [lxc-init directory location])
 
63
AH_TEMPLATE([LXCROOTFSMOUNT], [lxc default rootfs mount point])
54
64
AC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")
55
 
AC_DEFINE_UNQUOTED(LXCLIBEXECDIR, "$LIBEXECDIR")
 
65
AC_DEFINE_UNQUOTED(LXCINITDIR, "$LXCINITDIR")
 
66
AC_DEFINE_UNQUOTED(LXCROOTFSMOUNT, "$LXCROOTFSMOUNT")
56
67
 
57
68
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h],
58
 
                 [],
59
 
                 AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
60
 
                 [#include <sys/socket.h>
 
69
                                  [],
 
70
                                  AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
 
71
                                  [#include <sys/socket.h>
61
72
                 ])
62
73
 
63
74
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
64
75
[#include <sys/types.h>
65
76
#include <sys/capability.h>])
 
77
AC_CHECK_LIB(cap,cap_set_proc,caplib=yes,caplib=no)
 
78
AC_MSG_CHECKING([linux capabilities])
 
79
if test "x$caplib" = "xyes" ; then
 
80
   CAP_LIBS="-lcap"
 
81
   AC_MSG_RESULT([$CAP_LIBS])
 
82
else
 
83
   AC_MSG_ERROR([not found])
 
84
fi
 
85
AC_SUBST([CAP_LIBS])
66
86
 
67
87
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
68
88
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
76
96
fi
77
97
 
78
98
AC_CONFIG_FILES([
79
 
        Makefile
 
99
        Makefile
80
100
        lxc.pc
81
101
        lxc.spec
82
 
        config/Makefile
 
102
        config/Makefile
83
103
 
84
 
        doc/Makefile
 
104
        doc/Makefile
85
105
        doc/lxc-create.sgml
86
106
        doc/lxc-destroy.sgml
87
107
        doc/lxc-execute.sgml
88
108
        doc/lxc-start.sgml
 
109
        doc/lxc-checkpoint.sgml
 
110
        doc/lxc-restart.sgml
89
111
        doc/lxc-stop.sgml
90
112
        doc/lxc-console.sgml
91
113
        doc/lxc-freeze.sgml
95
117
        doc/lxc-ls.sgml
96
118
        doc/lxc-ps.sgml
97
119
        doc/lxc-cgroup.sgml
 
120
        doc/lxc-kill.sgml
98
121
        doc/lxc.conf.sgml
99
122
        doc/lxc.sgml
100
123
        doc/common_options.sgml
101
124
        doc/see_also.sgml
102
125
 
 
126
        doc/rootfs/Makefile
 
127
 
103
128
        doc/examples/Makefile
104
129
        doc/examples/lxc-macvlan.conf
105
130
        doc/examples/lxc-vlan.conf
109
134
        doc/examples/lxc-veth.conf
110
135
        doc/examples/lxc-complex.conf
111
136
 
112
 
        scripts/Makefile
113
 
        scripts/lxc-debian
114
 
        scripts/lxc-busybox
115
 
        scripts/lxc-fedora
116
 
        scripts/lxc-sshd
 
137
        templates/Makefile
 
138
        templates/lxc-debian
 
139
        templates/lxc-ubuntu
 
140
        templates/lxc-busybox
 
141
        templates/lxc-fedora
 
142
        templates/lxc-sshd
117
143
 
118
 
        src/Makefile
 
144
        src/Makefile
119
145
        src/lxc/Makefile
120
146
        src/lxc/lxc-ps
121
147
        src/lxc/lxc-ls