maint: Post-release version bump to 5.5.0
[libvirt/ericb.git] / m4 / virt-host-validate.m4
blob643cd8f06e7e5bd47aaa1039428dc282cd0a553e
1 dnl Copyright (C) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
2 dnl Copyright (C) 2016 Red Hat, Inc.
3 dnl
4 dnl This library is free software; you can redistribute it and/or
5 dnl modify it under the terms of the GNU Lesser General Public
6 dnl License as published by the Free Software Foundation; either
7 dnl version 2.1 of the License, or (at your option) any later version.
8 dnl
9 dnl This library is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 dnl Lesser General Public License for more details.
13 dnl
14 dnl You should have received a copy of the GNU Lesser General Public
15 dnl License along with this library.  If not, see
16 dnl <http://www.gnu.org/licenses/>.
18 AC_DEFUN([LIBVIRT_ARG_HOST_VALIDATE], [
19   LIBVIRT_ARG_WITH([HOST_VALIDATE], [build virt-host-validate], [check])
22 AC_DEFUN([LIBVIRT_CHECK_HOST_VALIDATE], [
23   if test "x$with_host_validate" != "xno"; then
24     if test "x$with_win" = "xyes"; then
25       if test "x$with_host_validate" = "xyes"; then
26         AC_MSG_ERROR([virt-host-validate is not supported on Windows])
27       else
28         with_host_validate=no;
29       fi
30     else
31       with_host_validate=yes;
32     fi
33   fi
35   if test "x$with_host_validate" = "xyes" ; then
36       AC_DEFINE_UNQUOTED([WITH_HOST_VALIDATE], 1, [whether virt-host-validate is built])
37   fi
38   AM_CONDITIONAL([WITH_HOST_VALIDATE], [test "x$with_host_validate" = "xyes"])
41 AC_DEFUN([LIBVIRT_RESULT_HOST_VALIDATE], [
42   AC_MSG_NOTICE([virt-host-validate: $with_host_validate])