docs: Update documentation for spapr-vio addresses
[libvirt/ericb.git] / m4 / virt-login-shell.m4
blob3baec5432fbecbdbc145e93769f8dce0e65c53cd
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_LOGIN_SHELL], [
19   LIBVIRT_ARG_WITH([LOGIN_SHELL], [build virt-login-shell], [check])
22 AC_DEFUN([LIBVIRT_CHECK_LOGIN_SHELL], [
23   if test "x$with_login_shell" != "xno"; then
24     if test "x$with_linux" != "xyes"; then
25       if test "x$with_login_shell" = "xyes"; then
26         AC_MSG_ERROR([virt-login-shell is supported on Linux only])
27       else
28         with_login_shell=no;
29       fi
30     else
31       with_login_shell=yes;
32     fi
33   fi
35   if test "x$with_login_shell" = "xyes" ; then
36       AC_DEFINE_UNQUOTED([WITH_LOGIN_SHELL], 1, [whether virt-login-shell is built])
37   fi
38   AM_CONDITIONAL([WITH_LOGIN_SHELL], [test "$with_login_shell" = "yes"])
41 AC_DEFUN([LIBVIRT_RESULT_LOGIN_SHELL], [
42   AC_MSG_NOTICE([  virt-login-shell: $with_login_shell])