mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-14 03:35:05 +00:00
configure: move chrdev lock files check to its own file
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
24ef6bccfb
commit
b1b9d15a05
29
configure.ac
29
configure.ac
@ -420,10 +420,7 @@ LIBVIRT_ARG_WITH([TEST], [test driver], [yes])
|
|||||||
LIBVIRT_ARG_WITH([REMOTE], [remote driver], [yes])
|
LIBVIRT_ARG_WITH([REMOTE], [remote driver], [yes])
|
||||||
LIBVIRT_ARG_WITH([LIBVIRTD], [libvirtd], [yes])
|
LIBVIRT_ARG_WITH([LIBVIRTD], [libvirtd], [yes])
|
||||||
|
|
||||||
LIBVIRT_ARG_WITH_ALT([CHRDEV_LOCK_FILES],
|
LIBVIRT_ARG_CHRDEV_LOCK_FILES
|
||||||
[location for UUCP style lock files for character devices ]
|
|
||||||
[(use auto for default paths on some platforms)],
|
|
||||||
[auto])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl in case someone want to build static binaries
|
dnl in case someone want to build static binaries
|
||||||
@ -861,27 +858,7 @@ AC_DEFINE_UNQUOTED([TLS_PRIORITY], ["$with_tls_priority"],
|
|||||||
[TLS default priority string])
|
[TLS default priority string])
|
||||||
|
|
||||||
|
|
||||||
dnl UUCP style file locks for character devices
|
LIBVIRT_CHECK_CHRDEV_LOCK_FILES
|
||||||
if test "$with_chrdev_lock_files" != "no"; then
|
|
||||||
case $with_chrdev_lock_files in
|
|
||||||
yes | auto)
|
|
||||||
dnl Default locations for platforms, or disable if unknown
|
|
||||||
if test "$with_linux" = "yes"; then
|
|
||||||
with_chrdev_lock_files=/var/lock
|
|
||||||
elif test "$with_chrdev_lock_files" = "auto"; then
|
|
||||||
with_chrdev_lock_files=no
|
|
||||||
fi ;;
|
|
||||||
esac
|
|
||||||
if test "$with_chrdev_lock_files" = "yes"; then
|
|
||||||
AC_MSG_ERROR([You must specify path for the lock files on this
|
|
||||||
platform])
|
|
||||||
fi
|
|
||||||
if test "$with_chrdev_lock_files" != "no"; then
|
|
||||||
AC_DEFINE_UNQUOTED([VIR_CHRDEV_LOCK_FILE_PATH], "$with_chrdev_lock_files",
|
|
||||||
[path to directory containing UUCP device lock files])
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
AM_CONDITIONAL([VIR_CHRDEV_LOCK_FILE_PATH], [test "$with_chrdev_lock_files" != "no"])
|
|
||||||
|
|
||||||
|
|
||||||
LIBVIRT_ARG_WITH_ALT([SECDRIVER_SELINUX], [use SELinux security driver], [check])
|
LIBVIRT_ARG_WITH_ALT([SECDRIVER_SELINUX], [use SELinux security driver], [check])
|
||||||
@ -1875,7 +1852,7 @@ LIBVIRT_RESULT_DTRACE
|
|||||||
LIBVIRT_RESULT_NUMAD
|
LIBVIRT_RESULT_NUMAD
|
||||||
AC_MSG_NOTICE([ XML Catalog: $with_xml_catalog_file])
|
AC_MSG_NOTICE([ XML Catalog: $with_xml_catalog_file])
|
||||||
LIBVIRT_RESULT_INIT_SCRIPT
|
LIBVIRT_RESULT_INIT_SCRIPT
|
||||||
AC_MSG_NOTICE([ Char device locks: $with_chrdev_lock_files])
|
LIBVIRT_RESULT_CHRDEV_LOCK_FILES
|
||||||
AC_MSG_NOTICE([ Default Editor: $with_default_editor])
|
AC_MSG_NOTICE([ Default Editor: $with_default_editor])
|
||||||
AC_MSG_NOTICE([ Loader/NVRAM: $with_loader_nvram])
|
AC_MSG_NOTICE([ Loader/NVRAM: $with_loader_nvram])
|
||||||
LIBVIRT_RESULT_LOGIN_SHELL
|
LIBVIRT_RESULT_LOGIN_SHELL
|
||||||
|
52
m4/virt-chrdev-lock-files.m4
Normal file
52
m4/virt-chrdev-lock-files.m4
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
dnl The locaton of UUCP style lock files
|
||||||
|
dnl
|
||||||
|
dnl Copyright (C) 2016 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_CHRDEV_LOCK_FILES], [
|
||||||
|
LIBVIRT_ARG_WITH_ALT([CHRDEV_LOCK_FILES],
|
||||||
|
[location for UUCP style lock files for character devices ]
|
||||||
|
[(use auto for default paths on some platforms)],
|
||||||
|
[auto])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([LIBVIRT_CHECK_CHRDEV_LOCK_FILES], [
|
||||||
|
if test "$with_chrdev_lock_files" != "no"; then
|
||||||
|
case $with_chrdev_lock_files in
|
||||||
|
yes | auto)
|
||||||
|
dnl Default locations for platforms, or disable if unknown
|
||||||
|
if test "$with_linux" = "yes"; then
|
||||||
|
with_chrdev_lock_files=/var/lock
|
||||||
|
elif test "$with_chrdev_lock_files" = "auto"; then
|
||||||
|
with_chrdev_lock_files=no
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
if test "$with_chrdev_lock_files" = "yes"; then
|
||||||
|
AC_MSG_ERROR([You must specify path for the lock files on this platform])
|
||||||
|
fi
|
||||||
|
if test "$with_chrdev_lock_files" != "no"; then
|
||||||
|
AC_DEFINE_UNQUOTED([VIR_CHRDEV_LOCK_FILE_PATH], "$with_chrdev_lock_files",
|
||||||
|
[path to directory containing UUCP device lock files])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL([VIR_CHRDEV_LOCK_FILE_PATH], [test "$with_chrdev_lock_files" != "no"])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([LIBVIRT_RESULT_CHRDEV_LOCK_FILES], [
|
||||||
|
AC_MSG_NOTICE([ Char device locks: $with_chrdev_lock_files])
|
||||||
|
])
|
Loading…
Reference in New Issue
Block a user