]> git.proxmox.com Git - mirror_lxc.git/blob - configure.in
98d12c002f4e16181648f8adbf6440478e4fa023
[mirror_lxc.git] / configure.in
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_INIT([lxc], [0.3.0])
5
6 AC_CONFIG_SRCDIR([configure.in])
7 AC_CONFIG_AUX_DIR([config])
8 AM_CONFIG_HEADER([src/config.h])
9 AM_INIT_AUTOMAKE([-Wno-portability])
10 AC_CANONICAL_HOST
11 AC_PROG_RANLIB
12 AM_PROG_CC_C_O
13 AC_GNU_SOURCE
14 AC_PROG_LIBTOOL
15 AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
16 [#include <linux/types.h>
17 #include <bits/sockaddr.h>
18 #include <linux/socket.h>])
19 AC_PROG_GCC_TRADITIONAL
20
21 if test "x$GCC" = "xyes"; then
22 CFLAGS="$CFLAGS -Wall"
23 fi
24
25 AC_CONFIG_FILES([
26 Makefile
27 lxc.spec
28 config/Makefile
29 src/Makefile
30 src/lxc/Makefile
31 src/lxc/lxc-ps
32 src/lxc/lxc-checkconfig
33 etc/Makefile
34 etc/lxc-macvlan.conf
35 etc/lxc-no-netns.conf
36 etc/lxc-empty-netns.conf
37 etc/lxc-phys.conf
38 etc/lxc-veth.conf
39 etc/lxc-complex-config
40 test/Makefile
41 ])
42 AC_CONFIG_COMMANDS([default],[[]],[[]])
43 AC_OUTPUT