]> git.proxmox.com Git - mirror_ovs.git/blame - configure.ac
tests: Disable profiling for "wait-until must wait" test.
[mirror_ovs.git] / configure.ac
CommitLineData
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 15AC_PREREQ(2.64)
b9b0865a 16AC_INIT(openvswitch, 1.0.1, ovs-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])
1b233b95 22AC_CONFIG_TESTDIR([tests])
064af421
BP
23AM_INIT_AUTOMAKE
24
25AC_PROG_CC
26AM_PROG_CC_C_O
27AC_PROG_CPP
28AC_PROG_RANLIB
29AC_PROG_MKDIR_P
30
31AC_ARG_VAR([PERL], [path to Perl interpreter])
32AC_PATH_PROG([PERL], perl, no)
33if test "$PERL" = no; then
34 AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
35fi
36
37AC_USE_SYSTEM_EXTENSIONS
38AC_C_BIGENDIAN
39AC_SYS_LARGEFILE
40
f38b84ea 41AC_SEARCH_LIBS([pow], [m])
c73814a3 42AC_SEARCH_LIBS([clock_gettime], [rt])
f38b84ea 43
c2b07021 44OVS_CHECK_COVERAGE
064af421
BP
45OVS_CHECK_NDEBUG
46OVS_CHECK_NETLINK
47OVS_CHECK_OPENSSL
48OVS_CHECK_LOGDIR
49OVS_CHECK_CURSES
50OVS_CHECK_LINUX_VT_H
51OVS_CHECK_PCRE
3b135da3 52OVS_CHECK_PYTHON
436f27dd
AS
53OVS_CHECK_PYUIC4
54OVS_CHECK_OVSDBMONITOR
f8d739a9 55OVS_CHECK_ER_DIAGRAMS
064af421 56OVS_CHECK_IF_PACKET
e50097d2 57OVS_CHECK_STRTOK_R
9cb07887
BP
58AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec],
59 [], [], [[#include <sys/stat.h>]])
86a06318 60AC_CHECK_FUNCS([mlockall])
064af421 61
31a7c9e7
BP
62OVS_CHECK_PKIDIR
63OVS_CHECK_RUNDIR
64OVS_CHECK_MALLOC_HOOKS
65OVS_CHECK_VALGRIND
66OVS_CHECK_TTY_LOCK_DIR
67OVS_CHECK_SOCKET_LIBS
064af421 68
31a7c9e7 69AC_CHECK_FUNCS([strsignal])
064af421 70
31a7c9e7
BP
71OVS_ENABLE_OPTION([-Wall])
72OVS_ENABLE_OPTION([-Wno-sign-compare])
73OVS_ENABLE_OPTION([-Wpointer-arith])
74OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
75OVS_ENABLE_OPTION([-Wformat-security])
76OVS_ENABLE_OPTION([-Wswitch-enum])
77OVS_ENABLE_OPTION([-Wunused-parameter])
78OVS_ENABLE_OPTION([-Wstrict-aliasing])
79OVS_ENABLE_OPTION([-Wbad-function-cast])
80OVS_ENABLE_OPTION([-Wcast-align])
81OVS_ENABLE_OPTION([-Wstrict-prototypes])
82OVS_ENABLE_OPTION([-Wold-style-definition])
83OVS_ENABLE_OPTION([-Wmissing-prototypes])
84OVS_ENABLE_OPTION([-Wmissing-field-initializers])
85OVS_ENABLE_OPTION([-Wno-override-init])
c72e245a 86OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
064af421
BP
87
88AC_ARG_VAR(KARCH, [Kernel Architecture String])
89AC_SUBST(KARCH)
7c9e113b 90OVS_CHECK_LINUX26
064af421
BP
91
92AC_CONFIG_FILES([Makefile
93datapath/Makefile
94datapath/linux-2.6/Kbuild
95datapath/linux-2.6/Makefile
1b233b95
BP
96datapath/linux-2.6/Makefile.main
97tests/atlocal])
064af421 98
05b3c97b
BP
99dnl This makes sure that include/openflow gets created in the build directory.
100AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
101
436f27dd
AS
102AC_CONFIG_COMMANDS([ovsdb/ovsdbmonitor/dummy], [:])
103
064af421 104AC_OUTPUT