docs: Update documentation for spapr-vio addresses
[libvirt/ericb.git] / m4 / virt-driver-openvz.m4
blob3ad682b3437fcb3146a247064f92ced795ce1ebc
1 dnl The OpenVZ driver
2 dnl
3 dnl Copyright (C) 2016 Red Hat, Inc.
4 dnl
5 dnl This library is free software; you can redistribute it and/or
6 dnl modify it under the terms of the GNU Lesser General Public
7 dnl License as published by the Free Software Foundation; either
8 dnl version 2.1 of the License, or (at your option) any later version.
9 dnl
10 dnl This library is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 dnl Lesser General Public License for more details.
14 dnl
15 dnl You should have received a copy of the GNU Lesser General Public
16 dnl License along with this library.  If not, see
17 dnl <http://www.gnu.org/licenses/>.
18 dnl
20 AC_DEFUN([LIBVIRT_DRIVER_ARG_OPENVZ], [
21   LIBVIRT_ARG_WITH_FEATURE([OPENVZ], [OpenVZ], [check])
24 AC_DEFUN([LIBVIRT_DRIVER_CHECK_OPENVZ], [
25   if test "$with_openvz" = "check"; then
26     with_openvz=$with_linux
27   fi
29   if test "$with_openvz" = "yes" && test "$with_linux" = "no"; then
30     AC_MSG_ERROR([The OpenVZ driver can be enabled on Linux only.])
31   fi
33   if test "$with_openvz" = "yes"; then
34     AC_DEFINE_UNQUOTED([WITH_OPENVZ], 1, [whether OpenVZ driver is enabled])
35   fi
37   AM_CONDITIONAL([WITH_OPENVZ], [test "$with_openvz" = "yes"])
40 AC_DEFUN([LIBVIRT_DRIVER_RESULT_OPENVZ], [
41   LIBVIRT_RESULT([OpenVZ], [$with_openvz])