]>
Commit | Line | Data |
---|---|---|
05b3c97b | 1 | # Copyright (c) 2008, 2009, 2010 Nicira Networks |
064af421 | 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 | 14 | |
55aa00e0 | 15 | AC_PREREQ(2.64) |
2f0a1f42 | 16 | AC_INIT(openvswitch, 0.99.2, ovs-bugs@openvswitch.org) |
064af421 BP |
17 | NX_BUILDNR |
18 | AC_CONFIG_SRCDIR([datapath/datapath.c]) | |
19 | AC_CONFIG_MACRO_DIR([m4]) | |
20 | AC_CONFIG_AUX_DIR([build-aux]) | |
21 | AC_CONFIG_HEADERS([config.h]) | |
1b233b95 | 22 | AC_CONFIG_TESTDIR([tests]) |
064af421 BP |
23 | AM_INIT_AUTOMAKE |
24 | ||
25 | AC_PROG_CC | |
26 | AM_PROG_CC_C_O | |
27 | AC_PROG_CPP | |
28 | AC_PROG_RANLIB | |
29 | AC_PROG_MKDIR_P | |
30 | ||
31 | AC_ARG_VAR([PERL], [path to Perl interpreter]) | |
32 | AC_PATH_PROG([PERL], perl, no) | |
33 | if test "$PERL" = no; then | |
34 | AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.]) | |
35 | fi | |
36 | ||
37 | AC_USE_SYSTEM_EXTENSIONS | |
38 | AC_C_BIGENDIAN | |
39 | AC_SYS_LARGEFILE | |
40 | ||
f38b84ea BP |
41 | AC_SEARCH_LIBS([pow], [m]) |
42 | ||
c2b07021 | 43 | OVS_CHECK_COVERAGE |
064af421 BP |
44 | OVS_CHECK_NDEBUG |
45 | OVS_CHECK_NETLINK | |
46 | OVS_CHECK_OPENSSL | |
47 | OVS_CHECK_LOGDIR | |
48 | OVS_CHECK_CURSES | |
49 | OVS_CHECK_LINUX_VT_H | |
50 | OVS_CHECK_PCRE | |
3b135da3 | 51 | OVS_CHECK_PYTHON |
064af421 | 52 | OVS_CHECK_IF_PACKET |
e50097d2 | 53 | OVS_CHECK_STRTOK_R |
9cb07887 BP |
54 | AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec], |
55 | [], [], [[#include <sys/stat.h>]]) | |
86a06318 | 56 | AC_CHECK_FUNCS([mlockall]) |
064af421 | 57 | |
31a7c9e7 BP |
58 | OVS_CHECK_PKIDIR |
59 | OVS_CHECK_RUNDIR | |
60 | OVS_CHECK_MALLOC_HOOKS | |
61 | OVS_CHECK_VALGRIND | |
62 | OVS_CHECK_TTY_LOCK_DIR | |
63 | OVS_CHECK_SOCKET_LIBS | |
064af421 | 64 | |
31a7c9e7 | 65 | AC_CHECK_FUNCS([strsignal]) |
064af421 | 66 | |
31a7c9e7 BP |
67 | OVS_ENABLE_OPTION([-Wall]) |
68 | OVS_ENABLE_OPTION([-Wno-sign-compare]) | |
69 | OVS_ENABLE_OPTION([-Wpointer-arith]) | |
70 | OVS_ENABLE_OPTION([-Wdeclaration-after-statement]) | |
71 | OVS_ENABLE_OPTION([-Wformat-security]) | |
72 | OVS_ENABLE_OPTION([-Wswitch-enum]) | |
73 | OVS_ENABLE_OPTION([-Wunused-parameter]) | |
74 | OVS_ENABLE_OPTION([-Wstrict-aliasing]) | |
75 | OVS_ENABLE_OPTION([-Wbad-function-cast]) | |
76 | OVS_ENABLE_OPTION([-Wcast-align]) | |
77 | OVS_ENABLE_OPTION([-Wstrict-prototypes]) | |
78 | OVS_ENABLE_OPTION([-Wold-style-definition]) | |
79 | OVS_ENABLE_OPTION([-Wmissing-prototypes]) | |
80 | OVS_ENABLE_OPTION([-Wmissing-field-initializers]) | |
81 | OVS_ENABLE_OPTION([-Wno-override-init]) | |
c72e245a | 82 | OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED]) |
064af421 BP |
83 | |
84 | AC_ARG_VAR(KARCH, [Kernel Architecture String]) | |
85 | AC_SUBST(KARCH) | |
7c9e113b | 86 | OVS_CHECK_LINUX26 |
064af421 BP |
87 | |
88 | AC_CONFIG_FILES([Makefile | |
89 | datapath/Makefile | |
90 | datapath/linux-2.6/Kbuild | |
91 | datapath/linux-2.6/Makefile | |
1b233b95 BP |
92 | datapath/linux-2.6/Makefile.main |
93 | tests/atlocal]) | |
064af421 | 94 | |
05b3c97b BP |
95 | dnl This makes sure that include/openflow gets created in the build directory. |
96 | AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp]) | |
97 | ||
064af421 | 98 | AC_OUTPUT |