]> git.proxmox.com Git - mirror_ovs.git/blame - configure.ac
Merge commit 'origin/citrix'
[mirror_ovs.git] / configure.ac
CommitLineData
064af421
BP
1# Copyright (c) 2008, 2009 Nicira Networks
2#
a14bc59f
BP
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at:
064af421 6#
a14bc59f
BP
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
064af421
BP
14
15AC_PREREQ(2.60)
38b23f76 16AC_INIT(openvswitch, 0.90.3, bugs@openvswitch.org)
064af421
BP
17NX_BUILDNR
18AC_CONFIG_SRCDIR([datapath/datapath.c])
19AC_CONFIG_MACRO_DIR([m4])
20AC_CONFIG_AUX_DIR([build-aux])
21AC_CONFIG_HEADERS([config.h])
22AM_INIT_AUTOMAKE
23
24AC_PROG_CC
25AM_PROG_CC_C_O
26AC_PROG_CPP
27AC_PROG_RANLIB
28AC_PROG_MKDIR_P
29
30AC_ARG_VAR([PERL], [path to Perl interpreter])
31AC_PATH_PROG([PERL], perl, no)
32if test "$PERL" = no; then
33 AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
34fi
35
36AC_USE_SYSTEM_EXTENSIONS
37AC_C_BIGENDIAN
38AC_SYS_LARGEFILE
39
40OVS_CHECK_USERSPACE
41OVS_CHECK_NDEBUG
42OVS_CHECK_NETLINK
43OVS_CHECK_OPENSSL
44OVS_CHECK_LOGDIR
45OVS_CHECK_CURSES
46OVS_CHECK_LINUX_VT_H
47OVS_CHECK_PCRE
48OVS_CHECK_IF_PACKET
e50097d2 49OVS_CHECK_STRTOK_R
064af421
BP
50
51if $build_userspace; then
52 OVS_CHECK_PKIDIR
53 OVS_CHECK_RUNDIR
54 OVS_CHECK_MALLOC_HOOKS
55 OVS_CHECK_VALGRIND
56 OVS_CHECK_TTY_LOCK_DIR
57 OVS_CHECK_SOCKET_LIBS
58 OVS_CHECK_FAULT_LIBS
59
60 AC_CHECK_FUNCS([strsignal])
61
62 OVS_ENABLE_OPTION([-Wall])
63 OVS_ENABLE_OPTION([-Wno-sign-compare])
64 OVS_ENABLE_OPTION([-Wpointer-arith])
65 OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
66 OVS_ENABLE_OPTION([-Wformat-security])
67 OVS_ENABLE_OPTION([-Wswitch-enum])
68 OVS_ENABLE_OPTION([-Wunused-parameter])
69 OVS_ENABLE_OPTION([-Wstrict-aliasing])
70 OVS_ENABLE_OPTION([-Wbad-function-cast])
71 OVS_ENABLE_OPTION([-Wcast-align])
72 OVS_ENABLE_OPTION([-Wstrict-prototypes])
73 OVS_ENABLE_OPTION([-Wold-style-definition])
74 OVS_ENABLE_OPTION([-Wmissing-prototypes])
75 OVS_ENABLE_OPTION([-Wmissing-field-initializers])
76 OVS_ENABLE_OPTION([-Wno-override-init])
77fi
78
79AC_ARG_VAR(KARCH, [Kernel Architecture String])
80AC_SUBST(KARCH)
81OVS_CHECK_LINUX(l26, 2.6, KSRC26, L26_ENABLED)
82
83AC_CONFIG_FILES([Makefile
84datapath/Makefile
85datapath/linux-2.6/Kbuild
86datapath/linux-2.6/Makefile
87datapath/linux-2.6/Makefile.main])
88
89AC_OUTPUT