]> git.proxmox.com Git - mirror_ovs.git/blame_incremental - configure.ac
Make the source tree sparse clean.
[mirror_ovs.git] / configure.ac
... / ...
CommitLineData
1# Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks
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.1.0, ovs-bugs@openvswitch.org)
17NX_BUILDNR
18AC_CONFIG_SRCDIR([datapath/datapath.c])
19AC_CONFIG_MACRO_DIR([m4])
20AC_CONFIG_AUX_DIR([build-aux])
21AC_CONFIG_HEADERS([config.h])
22AC_CONFIG_TESTDIR([tests])
23AM_INIT_AUTOMAKE
24
25AC_PROG_CC
26AM_PROG_CC_C_O
27AC_PROG_CPP
28AC_PROG_RANLIB
29AC_PROG_MKDIR_P
30AC_PROG_FGREP
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
38AC_USE_SYSTEM_EXTENSIONS
39AC_C_BIGENDIAN
40AC_SYS_LARGEFILE
41
42AC_SEARCH_LIBS([pow], [m])
43AC_SEARCH_LIBS([clock_gettime], [rt])
44
45OVS_CHECK_COVERAGE
46OVS_CHECK_NDEBUG
47OVS_CHECK_NETLINK
48OVS_CHECK_OPENSSL
49OVS_CHECK_LOGDIR
50OVS_CHECK_RTNL_LINK_STATS64
51OVS_CHECK_PYTHON
52OVS_CHECK_PYUIC4
53OVS_CHECK_OVSDBMONITOR
54OVS_CHECK_DOT
55OVS_CHECK_IF_PACKET
56OVS_CHECK_STRTOK_R
57AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec],
58 [], [], [[#include <sys/stat.h>]])
59AC_CHECK_FUNCS([mlockall strnlen strsignal getloadavg statvfs setmntent])
60AC_CHECK_HEADERS([mntent.h sys/statvfs.h])
61
62OVS_CHECK_PKIDIR
63OVS_CHECK_RUNDIR
64OVS_CHECK_BACKTRACE
65OVS_CHECK_MALLOC_HOOKS
66OVS_CHECK_VALGRIND
67OVS_CHECK_SOCKET_LIBS
68OVS_CHECK_LINKER_SECTIONS
69OVS_CHECK_XENSERVER_VERSION
70
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])
86OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
87OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
88OVS_ENABLE_WERROR
89
90AC_ARG_VAR(KARCH, [Kernel Architecture String])
91AC_SUBST(KARCH)
92OVS_CHECK_LINUX26
93
94AC_CONFIG_FILES([Makefile
95datapath/Makefile
96datapath/linux-2.6/Kbuild
97datapath/linux-2.6/Makefile
98datapath/linux-2.6/Makefile.main
99tests/atlocal])
100
101dnl This makes sure that include/openflow gets created in the build directory.
102AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
103
104AC_CONFIG_COMMANDS([ovsdb/ovsdbmonitor/dummy], [:])
105
106AC_OUTPUT