]> git.proxmox.com Git - mirror_ovs.git/blame_incremental - configure.ac
cfm: Implement "demand mode".
[mirror_ovs.git] / configure.ac
... / ...
CommitLineData
1# Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc.
2#
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:
6#
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.
14
15AC_PREREQ(2.64)
16AC_INIT(openvswitch, 1.11.90, ovs-bugs@openvswitch.org)
17AC_CONFIG_SRCDIR([datapath/datapath.c])
18AC_CONFIG_MACRO_DIR([m4])
19AC_CONFIG_AUX_DIR([build-aux])
20AC_CONFIG_HEADERS([config.h])
21AC_CONFIG_TESTDIR([tests])
22AM_INIT_AUTOMAKE
23
24AC_PROG_CC
25AM_PROG_CC_C_O
26AC_PROG_CPP
27AC_PROG_RANLIB
28AC_PROG_MKDIR_P
29AC_PROG_FGREP
30AC_PROG_EGREP
31
32AC_ARG_VAR([PERL], [path to Perl interpreter])
33AC_PATH_PROG([PERL], perl, no)
34if test "$PERL" = no; then
35 AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
36fi
37
38AM_MISSING_PROG([AUTOM4TE], [autom4te])
39
40AC_USE_SYSTEM_EXTENSIONS
41AC_C_BIGENDIAN
42AC_SYS_LARGEFILE
43
44AC_SEARCH_LIBS([pow], [m])
45AC_SEARCH_LIBS([clock_gettime], [rt])
46AC_SEARCH_LIBS([timer_create], [rt])
47AC_SEARCH_LIBS([pthread_sigmask], [pthread])
48
49OVS_CHECK_ESX
50OVS_CHECK_COVERAGE
51OVS_CHECK_NDEBUG
52OVS_CHECK_NETLINK
53OVS_CHECK_OPENSSL
54OVS_CHECK_LOGDIR
55OVS_CHECK_PYTHON
56OVS_CHECK_PYUIC4
57OVS_CHECK_OVSDBMONITOR
58OVS_CHECK_DOT
59OVS_CHECK_IF_PACKET
60OVS_CHECK_IF_DL
61OVS_CHECK_STRTOK_R
62AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec],
63 [], [], [[#include <sys/stat.h>]])
64AC_CHECK_FUNCS([mlockall strnlen strsignal getloadavg statvfs getmntent_r])
65AC_CHECK_HEADERS([mntent.h sys/statvfs.h linux/types.h linux/if_ether.h])
66
67OVS_CHECK_PKIDIR
68OVS_CHECK_RUNDIR
69OVS_CHECK_DBDIR
70OVS_CHECK_BACKTRACE
71OVS_CHECK_MALLOC_HOOKS
72OVS_CHECK_VALGRIND
73OVS_CHECK_SOCKET_LIBS
74OVS_CHECK_LINKER_SECTIONS
75OVS_CHECK_XENSERVER_VERSION
76OVS_CHECK_GROFF
77OVS_CHECK_GNU_MAKE
78OVS_CHECK_CACHE_TIME
79
80OVS_ENABLE_OPTION([-Wall])
81OVS_ENABLE_OPTION([-Wno-sign-compare])
82OVS_ENABLE_OPTION([-Wpointer-arith])
83OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
84OVS_ENABLE_OPTION([-Wformat-security])
85OVS_ENABLE_OPTION([-Wswitch-enum])
86OVS_ENABLE_OPTION([-Wunused-parameter])
87OVS_ENABLE_OPTION([-Wstrict-aliasing])
88OVS_ENABLE_OPTION([-Wbad-function-cast])
89OVS_ENABLE_OPTION([-Wcast-align])
90OVS_ENABLE_OPTION([-Wstrict-prototypes])
91OVS_ENABLE_OPTION([-Wold-style-definition])
92OVS_ENABLE_OPTION([-Wmissing-prototypes])
93OVS_ENABLE_OPTION([-Wmissing-field-initializers])
94OVS_ENABLE_OPTION([-Wno-override-init])
95OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
96OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
97OVS_ENABLE_WERROR
98OVS_ENABLE_SPARSE
99
100AC_ARG_VAR(KARCH, [Kernel Architecture String])
101AC_SUBST(KARCH)
102OVS_CHECK_LINUX
103
104AC_CONFIG_FILES([Makefile
105datapath/Makefile
106datapath/linux/Kbuild
107datapath/linux/Makefile
108datapath/linux/Makefile.main
109tests/atlocal])
110
111dnl This makes sure that include/openflow gets created in the build directory.
112AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
113
114AC_CONFIG_COMMANDS([ovsdb/ovsdbmonitor/dummy], [:])
115AC_CONFIG_COMMANDS([utilities/bugtool/dummy], [:])
116
117AM_CONDITIONAL([LINUX_DATAPATH], [test "$HAVE_NETLINK" = yes && test "$ESX" = no])
118if test "$HAVE_NETLINK" = yes && test "$ESX" = no; then
119 AC_DEFINE([LINUX_DATAPATH], [1], [System uses the linux datapath module.])
120fi
121
122AC_OUTPUT