mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
meson: add firewalld_zone build option
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
3f6b78746c
commit
e268ccead8
@ -110,7 +110,6 @@ fi
|
|||||||
|
|
||||||
# Check for compiler and library settings.
|
# Check for compiler and library settings.
|
||||||
|
|
||||||
LIBVIRT_ARG_FIREWALLD_ZONE
|
|
||||||
LIBVIRT_ARG_FUSE
|
LIBVIRT_ARG_FUSE
|
||||||
LIBVIRT_ARG_GLUSTER
|
LIBVIRT_ARG_GLUSTER
|
||||||
LIBVIRT_ARG_HAL
|
LIBVIRT_ARG_HAL
|
||||||
@ -136,7 +135,6 @@ LIBVIRT_ARG_VIRTUALPORT
|
|||||||
LIBVIRT_ARG_WIRESHARK
|
LIBVIRT_ARG_WIRESHARK
|
||||||
LIBVIRT_ARG_YAJL
|
LIBVIRT_ARG_YAJL
|
||||||
|
|
||||||
LIBVIRT_CHECK_FIREWALLD_ZONE
|
|
||||||
LIBVIRT_CHECK_FUSE
|
LIBVIRT_CHECK_FUSE
|
||||||
LIBVIRT_CHECK_GLIB
|
LIBVIRT_CHECK_GLIB
|
||||||
LIBVIRT_CHECK_GLUSTER
|
LIBVIRT_CHECK_GLUSTER
|
||||||
@ -451,7 +449,6 @@ LIBVIRT_RESULT_DRIVER_MODULES
|
|||||||
AC_MSG_NOTICE([])
|
AC_MSG_NOTICE([])
|
||||||
AC_MSG_NOTICE([Libraries])
|
AC_MSG_NOTICE([Libraries])
|
||||||
AC_MSG_NOTICE([])
|
AC_MSG_NOTICE([])
|
||||||
LIBVIRT_RESULT_FIREWALLD_ZONE
|
|
||||||
LIBVIRT_RESULT_FUSE
|
LIBVIRT_RESULT_FUSE
|
||||||
LIBVIRT_RESULT_GLIB
|
LIBVIRT_RESULT_GLIB
|
||||||
LIBVIRT_RESULT_GLUSTER
|
LIBVIRT_RESULT_GLUSTER
|
||||||
|
@ -1,45 +0,0 @@
|
|||||||
dnl firewalld_zone check - whether or not to install the firewall "libvirt" zone
|
|
||||||
dnl
|
|
||||||
dnl Copyright (C) 2019 Red Hat, Inc.
|
|
||||||
dnl
|
|
||||||
dnl This library is free software; you can redistribute it and/or
|
|
||||||
dnl modify it under the terms of the GNU Lesser General Public
|
|
||||||
dnl License as published by the Free Software Foundation; either
|
|
||||||
dnl version 2.1 of the License, or (at your option) any later version.
|
|
||||||
dnl
|
|
||||||
dnl This library is distributed in the hope that it will be useful,
|
|
||||||
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
dnl Lesser General Public License for more details.
|
|
||||||
dnl
|
|
||||||
dnl You should have received a copy of the GNU Lesser General Public
|
|
||||||
dnl License along with this library. If not, see
|
|
||||||
dnl <http://www.gnu.org/licenses/>.
|
|
||||||
dnl
|
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_ARG_FIREWALLD_ZONE], [
|
|
||||||
LIBVIRT_ARG_WITH([FIREWALLD_ZONE], [Whether to install firewalld libvirt zone], [check])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_CHECK_FIREWALLD_ZONE], [
|
|
||||||
AC_REQUIRE([LIBVIRT_CHECK_FIREWALLD])
|
|
||||||
AC_MSG_CHECKING([for whether to install firewalld libvirt zone])
|
|
||||||
|
|
||||||
if test "x$with_firewalld_zone" = "xcheck" ; then
|
|
||||||
with_firewalld_zone=$with_firewalld
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "x$with_firewalld_zone" = "xyes" ; then
|
|
||||||
if test "x$with_firewalld" != "xyes" ; then
|
|
||||||
AC_MSG_ERROR([You must have firewalld support enabled to enable firewalld-zone])
|
|
||||||
fi
|
|
||||||
AC_DEFINE_UNQUOTED([WITH_FIREWALLD_ZONE], [1], [whether firewalld libvirt zone is installed])
|
|
||||||
fi
|
|
||||||
|
|
||||||
AM_CONDITIONAL([WITH_FIREWALLD_ZONE], [test "x$with_firewalld_zone" != "xno"])
|
|
||||||
AC_MSG_RESULT($with_firewalld_zone)
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_RESULT_FIREWALLD_ZONE], [
|
|
||||||
LIBVIRT_RESULT([firewalld-zone], [$with_firewalld_zone])
|
|
||||||
])
|
|
@ -1146,6 +1146,12 @@ if host_machine.system() != 'freebsd'
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if not get_option('firewalld_zone').disabled() and conf.has('WITH_FIREWALLD')
|
||||||
|
conf.set('WITH_FIREWALLD_ZONE', 1)
|
||||||
|
elif get_option('firewalld_zone').enabled()
|
||||||
|
error('You must have firewalld support enabled to enable firewalld_zone')
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# define top include directory
|
# define top include directory
|
||||||
|
|
||||||
@ -1177,6 +1183,7 @@ libs_summary = {
|
|||||||
'dbus': dbus_dep.found(),
|
'dbus': dbus_dep.found(),
|
||||||
'dlopen': dlopen_dep.found(),
|
'dlopen': dlopen_dep.found(),
|
||||||
'firewalld': conf.has('WITH_FIREWALLD'),
|
'firewalld': conf.has('WITH_FIREWALLD'),
|
||||||
|
'firewalld-zone': conf.has('WITH_FIREWALLD_ZONE'),
|
||||||
'readline': readline_dep.found(),
|
'readline': readline_dep.found(),
|
||||||
}
|
}
|
||||||
summary(libs_summary, section: 'Libraries', bool_yn: true)
|
summary(libs_summary, section: 'Libraries', bool_yn: true)
|
||||||
|
@ -20,6 +20,7 @@ option('capng', type: 'feature', value: 'auto', description: 'cap-ng support')
|
|||||||
option('curl', type: 'feature', value: 'auto', description: 'curl support')
|
option('curl', type: 'feature', value: 'auto', description: 'curl support')
|
||||||
option('dbus', type: 'feature', value: 'auto', description: 'dbus-1 support')
|
option('dbus', type: 'feature', value: 'auto', description: 'dbus-1 support')
|
||||||
option('firewalld', type: 'feature', value: 'auto', description: 'firewalld support')
|
option('firewalld', type: 'feature', value: 'auto', description: 'firewalld support')
|
||||||
|
option('firewalld_zone', type: 'feature', value: 'auto', description: 'whether to install firewalld libvirt zone')
|
||||||
option('readline', type: 'feature', value: 'auto', description: 'readline support')
|
option('readline', type: 'feature', value: 'auto', description: 'readline support')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user