summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
...
* Prepare for 2.10.0.Justin Pettit2018-07-241-1/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* Permit to build OVS with only Python3 installedTimothy Redaelli2018-07-241-1/+2
| | | | | | | | | | | | | | | | | | This commit renames HAVE_PYTHON to HAVE_PYTHON2 and PYTHON to PYTHON2 and adds HAVE_PYTHON and PYTHON with a different semantics: - If PYTHON environment variable is set, use it as PYTHON - If a python2 interpreter is available, PYTHON became the python2 interpreter - If a python3 interpreter is available, PYTHON became the python3 interpreter PYTHON is only used to run the python scripts needed by the build system NOTE: Since currently most of the utilities and bugtool doesn't support Python3, they're installed only if python2 is available. This will be fixed in later commits. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* configure: Disable -Wnull-pointer-arithmetic Clang warning.Ben Pfaff2018-07-121-0/+1
| | | | | | | | OVS trips over this warning all over the place, so it's not worth leaving on. Signed-off-by: Ben Pfaff <blp@ovn.org> Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
* DNS: Add basic support for asynchronous DNS resolvingYifeng Sun2018-07-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | This patch is a simple implementation for the proposal discussed in https://mail.openvswitch.org/pipermail/ovs-dev/2017-August/337038.html and https://mail.openvswitch.org/pipermail/ovs-dev/2017-October/340013.html. It enables ovs-vswitchd and other utilities to use DNS names when specifying OpenFlow and OVSDB remotes. Below are some of the features and limitations of this patch: - Resolving is asynchornous in daemon context, avoiding blocking main loop; - Resolving is synchronous in general utility context; - Both IPv4 and IPv6 are supported; - The resolving API is thread-safe; - Depends on the unbound library; - When multiple ip addresses are returned, only the first one is used; - /etc/nsswitch.conf isn't respected as unbound library doesn't look at it; - For async-resolving, caller need to retry later; there is no callback. Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* netlink: provide network namespace id from a msg.Flavio Leitner2018-03-311-1/+2
| | | | | | | | The netlink notification's ancillary data contains the network namespace id (netnsid) needed to identify the device correctly. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* Add -Wshadow for compilers that support it.Justin Pettit2018-02-281-0/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* Prepare for post-2.9.0 (2.9.90).Justin Pettit2018-01-171-1/+1
| | | | Signed-off-by: Justin Pettit <jpettit@ovn.org>
* Prepare for 2.9.0.Justin Pettit2018-01-171-1/+1
| | | | Signed-off-by: Justin Pettit <jpettit@ovn.org>
* sparse: Add guards to prevent FreeBSD-incompatible #include order.Ben Pfaff2017-12-221-0/+1
| | | | | | | | | | FreeBSD insists that <sys/types.h> be included before <netinet/in.h> and that <netinet/in.h> be included before <arpa/inet.h>. This adds guards to the "sparse" headers to yield a warning if this order is violated. This commit also adjusts the order of many #includes to suit this requirement. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
* Remove Perl dependency.Ben Pfaff2017-11-261-6/+0
| | | | | | | Nothing in the OVS tree uses Perl any longer, so remove the dependency. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Aaron Conole <aconole@redhat.com>
* timeval: Check for OS-provided clock_gettime on macOSRichard Oliver2017-10-301-1/+1
| | | | | | | | | | | | | | | | [Problem] Compilation error on newer versions of macOS (Sierra onwards) due to multiple declarations of clock_gettime. [Solution] Have configure check for clock_gettime and check this result in timeval to avoid incorrectly declaring/defining clock_gettime again. [Testing] Source code now successfully builds on macOS. Signed-off-by: Richard Oliver <richard@richard-oliver.co.uk> Signed-off-by: Ben Pfaff <blp@ovn.org>
* acinclude: Also support pkg-config for configuring dpdk.Christian Ehrhardt2017-08-071-0/+1
| | | | | | | | | | | | If available use dpdk pkg-config info of libdpdk to set the right include paths. That for example, allows packagers to provide non default include paths in a common way (pkg-config). Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> Suggested-by: Luca Boccassi <luca.boccassi@gmail.com> Acked-by: Luca Boccassi <luca.boccassi@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* Prepare for post-2.8.0 (2.8.90).Ben Pfaff2017-08-041-1/+1
| | | | Signed-off-by: Ben Pfaff <blp@ovn.org>
* Prepare for 2.8.0.Ben Pfaff2017-08-041-1/+1
| | | | Signed-off-by: Ben Pfaff <blp@ovn.org>
* Automatically verify that OVS header files work OK in C++ also.Ben Pfaff2017-07-311-0/+2
| | | | | | | | | | This should help address a recurring problem. This change makes the OVS header files, when parsed by a C++ compiler, require C++11 or later. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
* Support IPv6 link-local address scopes on Linux.Ben Pfaff2017-07-171-0/+3
| | | | | | | | | | | | | | | | I hadn't even heard of this feature before, but it seems to be at least semi-standard to support Linux link-local address scopes via a % suffix, e.g. fe80::1234%eth0 for a link-local address scoped to eth0. This commit adds support. I'd appreciate feedback from folks who understand this feature better than me. Reported-by: Ali Volkan Atli <Volkan.Atli@argela.com.tr> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Darrell Ball <dlu998@gmail.com> Tested-by: Numan Siddique <nusiddiq@redhat.com> Acked-by: Numan Siddique <nusiddiq@redhat.com>
* test-util: Avoid format truncation warning for snprintf() tests.Ben Pfaff2017-07-141-1/+0
| | | | | | Reported-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Signed-off-by: Russell Bryant <russell@ovn.org>
* tests: Disable no-format-truncation warningsTimothy Redaelli2017-07-141-0/+1
| | | | | | | | | | | test_snprintf function (tests/test-util.c) tests snprintf with shorter length, but this emit a warning on GCC 7.0 or later. This commit disables that warning on tests only. Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Russell Bryant <russell@ovn.org>
* ctags: include symbols with locking annotations.Flavio Leitner2017-07-131-0/+1
| | | | | | | | | | | | | | OVS uses extensively clang annotations for thread safety checks. The ctags tool can't parse them, so they are not included in the tag file. This patch improves the configure script to generate a list of identifiers from the header compiler.h to be ignored by ctags. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Reviewed-by: Aaron Conole <aconole@redhat.com>
* socket-util: Support sendmmsg() regardless of platform.Ben Pfaff2017-07-121-1/+2
| | | | | | This will have its first user in an upcoming commit. Signed-off-by: Ben Pfaff <blp@ovn.org>
* compat: Add tc compatibility headers for old kernelsPaul Blakey2017-05-301-0/+1
| | | | | | | | | | | | | | Added compatibility headers for actions vlan and tunnel key. Do not use compat code when compiling kernel datapath there is no need for it as TC compatibility is not provided there. In other words, the compat code is only used when compiling user-space code against old kernel headers. Signed-off-by: Paul Blakey <paulb@mellanox.com> Reviewed-by: Roi Dayan <roid@mellanox.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Simon Horman <simon.horman@netronome.com>
* configure: Reset libtool CURRENT version.Joe Stringer2017-05-171-1/+1
| | | | | | | | | | | | | | | | | Since commit f12e09b7b2e5 ("libopenvswitch: Rename to libfoo-X.Y."), the CURRENT libtool number is no longer derived from the OVS MINOR (from vMAJOR.MINOR.MICRO) version, so it can be reset to 0. Developers should attempt to avoid introducing ABI-breaking changes within a particular OVS-X.Y release series. Occasionally due to the nature of a particular bug, this is not possible. In such a case, developers must update the libtool CURRENT version to indicate this breakage to library users. In most OVS library releases, this is expected to remain 0. Signed-off-by: Joe Stringer <joe@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* Makefile: Drop vestiges of support for non-GNU Make.Ben Pfaff2017-03-081-2/+1
| | | | | | | | | Open vSwitch has documented a requirement for GNU Make for a long time, yet it had vestiges catering to other make implementations. This removes those. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
* Prepare for post-2.7.0 (2.7.90).Justin Pettit2017-01-311-1/+1
| | | | Signed-off-by: Justin Pettit <jpettit@ovn.org>
* libX: add new release / version info tagsAaron Conole2017-01-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit uses the $PACKAGE_VERSION automake variable to construct a release and version info combination which sets the library name to be: libfoo-$(OVS_MAJOR_VERSION).so.$(OVS_MINOR_VERSION).0.$(OVS_MICRO_VERSION) where formerly, it was always: libfoo.so.1.0.0 This allows releases of Open vSwitch libraries to reflect which specific versions they came with, and sets up a psuedo ABI-versioning scheme. In this fashion, future releases of Open vSwitch could be installed alongside older releases, allowing 3rd party utilities linked against previous versions to continue to function. ex: $ ldd /path/to/utility linux-vdso.so.1 (0x00007ffe92cf6000) libopenvswitch-2.so.6 => /lib64/libopenvswitch-2.so.6 (0x00007f733b7a3000) libssl.so.10 => /lib64/libssl.so.10 (0x00007f733b530000) ... Note the library name and version information. Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* make: Check for Sphinx before checking docsStephen Finucane2017-01-041-0/+1
| | | | | Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* configure: Enable new warning options added in GCC 6.Ben Pfaff2016-12-121-0/+2
| | | | | | | | -Wnull-dereference is also new in GCC 6 but upon testing it produces far too many false positives to be usable for OVS. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
* configure: Enable new warning options added in GCC 5.Ben Pfaff2016-12-121-0/+4
| | | | | Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
* configure: Use -Wformat-security with -Wformat.Ben Pfaff2016-12-121-2/+2
| | | | | | | | | | | GCC 6.1 warns that -Wformat-security has no effect without -Wformat, so this commit fixes the problem. The change to _OVS_CHECK_CC_OPTION is needed so that the cache variable name doesn't end up with a space in it, which obviously doesn't work. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
* Prepare for post-2.6.0 (2.6.90).Justin Pettit2016-08-061-1/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* Prepare for 2.6.0.Justin Pettit2016-08-061-1/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* configure: Check for presence of Python 3.Russell Bryant2016-02-221-0/+1
| | | | | | | | | The configure script already checked for Python 2 (>=2.7). Add another check for Python 3 (>=3.4). This will be used later for automatically running tests with Python 3 as well if available. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* python: Run flake8 at build time.Russell Bryant2016-01-051-0/+1
| | | | | | | | | | | | If flake8 is installed, run it at build time. Similar to most Makefile targets, run it once and then only run again if the files change. flake8 is set to ignore all error and warning types that currently occur. Future patches will remove items from the ignore list as they are resolved. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* Prepare for post-2.5.0 (2.5.90).Justin Pettit2015-12-031-1/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Joe Stringer <joe@ovn.org>
* Prepare for 2.5.0.Justin Pettit2015-12-031-1/+1
| | | | | Signed-off-by: Justin Pettit <jpettit@ovn.org> Acked-by: Joe Stringer <joe@ovn.org>
* configure: add configuration options for libcap-ngAndy Zhou2015-09-301-0/+1
| | | | | | | | | | | | | | | | | | | Add configuration option for enabling or disabling linking with libcap-ng. Since capabilities are a security feature, the libcapng option is handled as follows: - no option: use libcapng if it's present --disable-libcapng: do not use libcapng --enable-libcapng: do use libcapng and fail configuration if it's missing On Linux, not linking with libcapng makes all OVS daemons fail when --user option is specified. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Add build system for compiling under MSVC x64Alin Serdean2015-09-291-0/+1
| | | | | | | | | | | | | | | This patch adds the modifications needed to compile under x64 under Windows: - created a new macro for testing if we are compiling under x64. this will define the linker flag: "/MACHINE:X64" as per documentation (https://msdn.microsoft.com/en-us/library/9yb4317s.aspx). - added x64 pthread libraries under the pthread defines - add documentation on how to build under x64 Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
* Increase prerequisite from Python 2.4 to Python 2.7.Ben Pfaff2015-06-231-1/+0
| | | | | | | This means that users of XenServer 6.5 and earlier will need to install Python 2.7. Signed-off-by: Ben Pfaff <blp@nicira.com>
* Merge remote-tracking branch 'origin/master' into ovn4Justin Pettit2015-06-181-1/+1
|\
| * Prepare for post-2.4.0 (2.4.90).Justin Pettit2015-06-181-1/+1
| | | | | | | | | | Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
| * Prepare for 2.4.0.Justin Pettit2015-06-181-1/+1
| | | | | | | | | | Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
* | ovn: Add ovn-ctl to assist with OVN daemon lifecycle.Russell Bryant2015-06-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces ovn-ctl, which is similar to ovs-ctl. I opted for a new script as everything in OVN so far is nicely isolated, so a new script seemed to make the most sense. If you'd like to run ovn-controller on a host already running ovs: # ovn-ctl start_controller If you'd like to run ovn-northd: # ovn-ctl start_northd Note that ovn-ctl assumes that ovn-northd is running on the same server as ovsdb-server hosting the OVN databases. Based on the current architecture this seems like a completely reasonable assumption. This can be improved later when needed. There's some additional stuff happening in start_northd to make the experience nicer and not require additional steps by the administrator. It creates the OVN dbs if they don't exist. If ovsdb-server hasn't loaded them, it tells it to load them, as well. ovn-ctl also supports running everything on the same host. This would be common in a test environment with a single host or small set of hosts. That would simply be: # ovs-ctl start --system-id=random # ovn-ctl start_northd # ovn-ctl start_controller Signed-off-by: Russell Bryant <rbryant@redhat.com> CC: Flavio Leitner <fbl@redhat.com> CC: Ben Pfaff <blp@nicira.com> [blp@nicira.com added configure.ac code to create ovn/utilities builddir] Signed-off-by: Ben Pfaff <blp@nicira.com>
* | Merge "master" into "ovn".Ben Pfaff2015-06-131-1/+0
|\ \ | |/ | | | | | | | | | | | | | | This allows OVN to take advantage of the client scalability changes that have been committed to ovsdb-server on master recently. Conflicts: Makefile.am lib/learn.c
| * configure: Stop avoiding -Wformat-zero-length.Ben Pfaff2015-06-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Debian likes to enable -Wformat-zero-length, even over our code trying to disable it. It isn't too hard to make our code warning-free against this option, so this commit both stops disabling it and fixes the warnings. The first fix is to change set_subprogram_name() to take a plain string instead of a format string, and to adjust its few callers. This fixes one warning since one of those callers passed in an empty string. The second fix is to remove a test for ovs_scan() against an empty string. I couldn't find a way to avoid a warning for this test, and it isn't too valuable in any case. This allows us to drop filtering for -Wformat from the Debian rules file, so this commit removes it. Signed-off-by: Ben Pfaff <blp@nicira.com>
* | Merge "master" into "ovn".Justin Pettit2015-05-071-2/+4
|\ \ | |/ | | | | | | | | | | This brings in STT. Conflicts: tutorial/ovs-sandbox
| * configure.ac: Fix pthread linking on FreeBSD.Kevin Lo2015-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The configure script checks for the existence of pthread_sigmask. However, on FreeBSD, libc contains no-op stubs for many of the pthread_* functions. As a result, the AC_SEARCH_LIBS macro returns "none required". As an alternative to checking pthread_sigmask, a solution is to check pthread_create. Signed-off-by: Kevin Lo <kevlo@FreeBSD.org> Acked-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
| * configure: Fix -Werror build for NetBSD + clangYAMAMOTO Takashi2015-04-201-0/+1
| | | | | | | | | | | | | | | | | | On NetBSD, clang (clang-3.5.0 from pkgsrc) complains when "clang -g" is used for linking. Specify -Qunused-arguments to suppress the warning. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Acked-by: Ben Pfaff <blp@nicira.com>
| * configure.ac: Avoid using non-ascii characters in a commentYAMAMOTO Takashi2015-04-201-1/+1
| | | | | | | | | | Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Acked-by: Ben Pfaff <blp@nicira.com>
| * autoconf: check for linux/perf_event.hAndy Zhou2015-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | Older Linux prior to version 2.6.32 do not support user mode performance events, They also don't have 'linux/perf_event.h' header file. Add check for those older Linux to conditionally compile perf-counter.c Reported-by: Alex Wang <alexw@nicira.com> Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Alex Wang <alexw@nicira.com>
* | ovn/lib: Add symbol file for libovn.la.Ben Pfaff2015-04-211-0/+1
| | | | | | | | | | | | | | | | This follows the pattern used for the other .la files so I assume that it is equally useful. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Justin Pettit <jpettit@nicira.com>