]>
Commit | Line | Data |
---|---|---|
e0edde6f | 1 | # Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. |
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) |
d224e350 | 16 | AC_INIT(openvswitch, 1.10.90, ovs-bugs@openvswitch.org) |
064af421 BP |
17 | AC_CONFIG_SRCDIR([datapath/datapath.c]) |
18 | AC_CONFIG_MACRO_DIR([m4]) | |
19 | AC_CONFIG_AUX_DIR([build-aux]) | |
20 | AC_CONFIG_HEADERS([config.h]) | |
1b233b95 | 21 | AC_CONFIG_TESTDIR([tests]) |
064af421 BP |
22 | AM_INIT_AUTOMAKE |
23 | ||
24 | AC_PROG_CC | |
25 | AM_PROG_CC_C_O | |
26 | AC_PROG_CPP | |
27 | AC_PROG_RANLIB | |
28 | AC_PROG_MKDIR_P | |
c92647a4 | 29 | AC_PROG_FGREP |
4958e3ee | 30 | AC_PROG_EGREP |
064af421 BP |
31 | |
32 | AC_ARG_VAR([PERL], [path to Perl interpreter]) | |
33 | AC_PATH_PROG([PERL], perl, no) | |
34 | if test "$PERL" = no; then | |
35 | AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.]) | |
36 | fi | |
37 | ||
4210c33b | 38 | AM_MISSING_PROG([AUTOM4TE], [autom4te]) |
7fd3e43d | 39 | |
064af421 BP |
40 | AC_USE_SYSTEM_EXTENSIONS |
41 | AC_C_BIGENDIAN | |
42 | AC_SYS_LARGEFILE | |
43 | ||
f38b84ea | 44 | AC_SEARCH_LIBS([pow], [m]) |
c73814a3 | 45 | AC_SEARCH_LIBS([clock_gettime], [rt]) |
6ca00f6f | 46 | AC_SEARCH_LIBS([timer_create], [rt]) |
f6eb6b20 | 47 | AC_SEARCH_LIBS([pcap_open_live], [pcap]) |
f38b84ea | 48 | |
361906b1 | 49 | OVS_CHECK_ESX |
c2b07021 | 50 | OVS_CHECK_COVERAGE |
064af421 BP |
51 | OVS_CHECK_NDEBUG |
52 | OVS_CHECK_NETLINK | |
53 | OVS_CHECK_OPENSSL | |
54 | OVS_CHECK_LOGDIR | |
3b135da3 | 55 | OVS_CHECK_PYTHON |
436f27dd AS |
56 | OVS_CHECK_PYUIC4 |
57 | OVS_CHECK_OVSDBMONITOR | |
7c9b0073 | 58 | OVS_CHECK_DOT |
064af421 | 59 | OVS_CHECK_IF_PACKET |
9360d9b7 | 60 | OVS_CHECK_IF_DL |
e50097d2 | 61 | OVS_CHECK_STRTOK_R |
9cb07887 BP |
62 | AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec], |
63 | [], [], [[#include <sys/stat.h>]]) | |
0e191d8f | 64 | AC_CHECK_FUNCS([mlockall strnlen strsignal getloadavg statvfs setmntent]) |
9d232a6d | 65 | AC_CHECK_HEADERS([mntent.h sys/statvfs.h linux/types.h execinfo.h]) |
064af421 | 66 | |
31a7c9e7 BP |
67 | OVS_CHECK_PKIDIR |
68 | OVS_CHECK_RUNDIR | |
f973f2af | 69 | OVS_CHECK_DBDIR |
0e6644c3 | 70 | OVS_CHECK_BACKTRACE |
31a7c9e7 BP |
71 | OVS_CHECK_MALLOC_HOOKS |
72 | OVS_CHECK_VALGRIND | |
31a7c9e7 | 73 | OVS_CHECK_SOCKET_LIBS |
480ce8ab | 74 | OVS_CHECK_LINKER_SECTIONS |
ed2d4f6a | 75 | OVS_CHECK_XENSERVER_VERSION |
0027492d | 76 | OVS_CHECK_GROFF |
b4e1bf8b | 77 | OVS_CHECK_GNU_MAKE |
3d7cab5f | 78 | OVS_CHECK_CACHE_TIME |
064af421 | 79 | |
31a7c9e7 BP |
80 | OVS_ENABLE_OPTION([-Wall]) |
81 | OVS_ENABLE_OPTION([-Wno-sign-compare]) | |
82 | OVS_ENABLE_OPTION([-Wpointer-arith]) | |
83 | OVS_ENABLE_OPTION([-Wdeclaration-after-statement]) | |
84 | OVS_ENABLE_OPTION([-Wformat-security]) | |
85 | OVS_ENABLE_OPTION([-Wswitch-enum]) | |
86 | OVS_ENABLE_OPTION([-Wunused-parameter]) | |
87 | OVS_ENABLE_OPTION([-Wstrict-aliasing]) | |
88 | OVS_ENABLE_OPTION([-Wbad-function-cast]) | |
89 | OVS_ENABLE_OPTION([-Wcast-align]) | |
90 | OVS_ENABLE_OPTION([-Wstrict-prototypes]) | |
91 | OVS_ENABLE_OPTION([-Wold-style-definition]) | |
92 | OVS_ENABLE_OPTION([-Wmissing-prototypes]) | |
93 | OVS_ENABLE_OPTION([-Wmissing-field-initializers]) | |
94 | OVS_ENABLE_OPTION([-Wno-override-init]) | |
c72e245a | 95 | OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED]) |
52af5b99 | 96 | OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER]) |
a64e37a1 | 97 | OVS_ENABLE_WERROR |
29d935d6 | 98 | OVS_ENABLE_SPARSE |
064af421 BP |
99 | |
100 | AC_ARG_VAR(KARCH, [Kernel Architecture String]) | |
101 | AC_SUBST(KARCH) | |
e3438006 | 102 | OVS_CHECK_LINUX |
064af421 BP |
103 | |
104 | AC_CONFIG_FILES([Makefile | |
105 | datapath/Makefile | |
22bcc0e7 JG |
106 | datapath/linux/Kbuild |
107 | datapath/linux/Makefile | |
108 | datapath/linux/Makefile.main | |
1b233b95 | 109 | tests/atlocal]) |
064af421 | 110 | |
05b3c97b BP |
111 | dnl This makes sure that include/openflow gets created in the build directory. |
112 | AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp]) | |
113 | ||
436f27dd | 114 | AC_CONFIG_COMMANDS([ovsdb/ovsdbmonitor/dummy], [:]) |
b2df0225 | 115 | AC_CONFIG_COMMANDS([utilities/bugtool/dummy], [:]) |
436f27dd | 116 | |
361906b1 EJ |
117 | AM_CONDITIONAL([LINUX_DATAPATH], [test "$HAVE_NETLINK" = yes && test "$ESX" = no]) |
118 | if test "$HAVE_NETLINK" = yes && test "$ESX" = no; then | |
119 | AC_DEFINE([LINUX_DATAPATH], [1], [System uses the linux datapath module.]) | |
120 | fi | |
121 | ||
064af421 | 122 | AC_OUTPUT |