build: define WITH_OPENVSWITCH in "config.h"

It will be used next.
This commit is contained in:
Thomas Haller 2021-08-31 13:27:41 +02:00
parent 5ad119391a
commit ee91f1f9ab
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
3 changed files with 10 additions and 0 deletions

View file

@ -224,6 +224,9 @@
/* Define if you have oFono support (experimental) */
#mesondefine WITH_OFONO
/* Whether we build with OVS plugin */
#mesondefine WITH_OPENVSWITCH
/* Define if you have PPP support */
#mesondefine WITH_PPP
@ -261,3 +264,4 @@
/* Define to 1 if you have history support from -lreadline. */
#mesondefine HAVE_READLINE_HISTORY

View file

@ -851,6 +851,11 @@ if test "${enable_ovs}" != "no"; then
fi
fi
AM_CONDITIONAL(WITH_OPENVSWITCH, test "${enable_ovs}" = "yes")
if test "${enable_ovs}" = "yes" ; then
AC_DEFINE(WITH_OPENVSWITCH, 1, [Whether we build with OVS plugin])
else
AC_DEFINE(WITH_OPENVSWITCH, 0, [Whether we build with OVS plugin])
fi
# DHCP client support
AC_ARG_WITH([dhclient],

View file

@ -644,6 +644,7 @@ enable_ovs = get_option('ovs')
if enable_ovs
assert(jansson_dep.found(), 'jansson is needed for Open vSwitch integration. Use -Dovs=false to disable it')
endif
config_h.set10('WITH_OPENVSWITCH', enable_ovs)
# DNS resolv.conf managers
config_dns_rc_manager_default = get_option('config_dns_rc_manager_default')