]> git.proxmox.com Git - mirror_ovs.git/blame_incremental - configure.ac
ovs-vsctl: Prevent uninitialized variable warning.
[mirror_ovs.git] / configure.ac
... / ...
CommitLineData
1# Copyright (c) 2008, 2009 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.63)
16AC_INIT(openvswitch, 0.90.6, 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
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
41AC_SEARCH_LIBS([pow], [m])
42
43OVS_CHECK_COVERAGE
44OVS_CHECK_NDEBUG
45OVS_CHECK_NETLINK
46OVS_CHECK_OPENSSL
47OVS_CHECK_LOGDIR
48OVS_CHECK_CURSES
49OVS_CHECK_LINUX_VT_H
50OVS_CHECK_PCRE
51OVS_CHECK_PYTHON
52OVS_CHECK_IF_PACKET
53OVS_CHECK_STRTOK_R
54
55OVS_CHECK_PKIDIR
56OVS_CHECK_RUNDIR
57OVS_CHECK_MALLOC_HOOKS
58OVS_CHECK_VALGRIND
59OVS_CHECK_TTY_LOCK_DIR
60OVS_CHECK_SOCKET_LIBS
61
62AC_CHECK_FUNCS([strsignal])
63
64OVS_ENABLE_OPTION([-Wall])
65OVS_ENABLE_OPTION([-Wno-sign-compare])
66OVS_ENABLE_OPTION([-Wpointer-arith])
67OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
68OVS_ENABLE_OPTION([-Wformat-security])
69OVS_ENABLE_OPTION([-Wswitch-enum])
70OVS_ENABLE_OPTION([-Wunused-parameter])
71OVS_ENABLE_OPTION([-Wstrict-aliasing])
72OVS_ENABLE_OPTION([-Wbad-function-cast])
73OVS_ENABLE_OPTION([-Wcast-align])
74OVS_ENABLE_OPTION([-Wstrict-prototypes])
75OVS_ENABLE_OPTION([-Wold-style-definition])
76OVS_ENABLE_OPTION([-Wmissing-prototypes])
77OVS_ENABLE_OPTION([-Wmissing-field-initializers])
78OVS_ENABLE_OPTION([-Wno-override-init])
79
80AC_ARG_VAR(KARCH, [Kernel Architecture String])
81AC_SUBST(KARCH)
82OVS_CHECK_LINUX26
83
84AC_CONFIG_FILES([Makefile
85datapath/Makefile
86datapath/linux-2.6/Kbuild
87datapath/linux-2.6/Makefile
88datapath/linux-2.6/Makefile.main
89tests/atlocal])
90
91AC_OUTPUT