m4/virt-arg: Rename LIBVIRT_ARG_WITH* macros

LIBVIRT_ARG_WITH_ALT is more generic than LIBVIRT_ARG_WITH, which
is tailored at switching features on and off.

Rename the macros according to their intended purpose, and add
some documentation to help developers pick between the two.
This commit is contained in:
Andrea Bolognani 2016-12-22 12:49:51 +01:00
parent bd4255680d
commit e64f2fab92
79 changed files with 174 additions and 164 deletions

View File

@ -96,8 +96,8 @@ AC_SUBST([LIBVIRT_VERSION])
AC_SUBST([LIBVIRT_VERSION_INFO])
AC_SUBST([LIBVIRT_VERSION_NUMBER])
LIBVIRT_ARG_WITH_ALT([PACKAGER], [Extra packager name], [no])
LIBVIRT_ARG_WITH_ALT([PACKAGER_VERSION], [Extra packager version], [no])
LIBVIRT_ARG_WITH([PACKAGER], [Extra packager name], [no])
LIBVIRT_ARG_WITH([PACKAGER_VERSION], [Extra packager version], [no])
if test "x$with_packager" != "xno"
then
AC_DEFINE_UNQUOTED([PACKAGER], ["$with_packager"],
@ -373,10 +373,10 @@ LIBVIRT_CHECK_EXTERNAL_PROGRAMS
dnl Specific dir for HTML output ?
LIBVIRT_ARG_WITH_ALT([HTML_DIR], [path to base html directory],
['$(datadir)/doc'])
LIBVIRT_ARG_WITH_ALT([HTML_SUBDIR], [directory used under html-dir],
['$(PACKAGE)-$(VERSION)/html'])
LIBVIRT_ARG_WITH([HTML_DIR], [path to base html directory],
['$(datadir)/doc'])
LIBVIRT_ARG_WITH([HTML_SUBDIR], [directory used under html-dir],
['$(PACKAGE)-$(VERSION)/html'])
if test "x$with_html_subdir" != "x" ; then
HTML_DIR="$with_html_dir/$with_html_subdir"
else
@ -544,7 +544,7 @@ LIBVIRT_SECDRIVER_CHECK_SELINUX
LIBVIRT_SECDRIVER_CHECK_APPARMOR
LIBVIRT_ARG_WITH([SECRETS], [local secrets management driver], [yes])
LIBVIRT_ARG_WITH_FEATURE([SECRETS], [local secrets management driver], [yes])
if test "$with_libvirtd" = "no"; then
with_secrets=no
@ -639,7 +639,7 @@ if test -z "$PERL"; then
AC_MSG_ERROR([Failed to find perl.])
fi
LIBVIRT_ARG_WITH_ALT([TEST_SUITE], [build test suite by default], [check])
LIBVIRT_ARG_WITH([TEST_SUITE], [build test suite by default], [check])
case "$with_test_suite" in
yes|no|check) ;;
*) AC_MSG_ERROR([bad value ${withval} for tests option]) ;;

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_APPARMOR],[
LIBVIRT_ARG_WITH([APPARMOR], [AppArmor], [check])
LIBVIRT_ARG_WITH_ALT([APPARMOR_MOUNT], [set AppArmor mount point], [check])
LIBVIRT_ARG_WITH_FEATURE([APPARMOR], [AppArmor], [check])
LIBVIRT_ARG_WITH([APPARMOR_MOUNT], [set AppArmor mount point], [check])
])
AC_DEFUN([LIBVIRT_CHECK_APPARMOR],[

View File

@ -22,7 +22,56 @@ dnl
dnl
dnl To be used instead of AC_ARG_WITH
dnl
dnl LIBVIRT_ARG_WITH([CHECK_NAME], [HELP_NAME], [DEFAULT_ACTION], [MIN_VERSION])
dnl See LIBVIRT_ARG_WITH_FEATURE if the argument you're adding is going to
dnl be used for switching a feature on and off.
dnl
dnl LIBVIRT_ARG_WITH([CHECK_NAME], [HELP_DESC], [DEFAULT_ACTION])
dnl
dnl CHECK_NAME: Suffix/prefix used for variables/flags, in uppercase.
dnl HELP_DESC: Description that will appear in configure --help
dnl DEFAULT_ACTION: Default configure action
dnl
dnl LIBVIRT_ARG_WITH([PACKAGER], [Extra packager name], [no])
dnl LIBVIRT_ARG_WITH([HTML_DIR], [path to base html directory], [$(datadir)/doc])
dnl
AC_DEFUN([LIBVIRT_ARG_WITH], [
m4_pushdef([check_name], [$1])
m4_pushdef([help_desc], [[$2]])
m4_pushdef([default_action], [$3])
m4_pushdef([check_name_lc], m4_tolower(check_name))
m4_pushdef([check_name_dash], m4_translit(check_name_lc, [_], [-]))
m4_pushdef([arg_var], [with-]check_name_dash)
m4_pushdef([with_var], [with_]check_name_lc)
m4_divert_text([DEFAULTS], [with_var][[=]][default_action])
AC_ARG_WITH([check_name_lc],
[AS_HELP_STRING([[--]arg_var],
]m4_dquote(help_desc)[[ @<:@default=]]m4_dquote(default_action)[[@:>@])])
m4_popdef([with_var])
m4_popdef([arg_var])
m4_popdef([check_name_dash])
m4_popdef([check_name_lc])
m4_popdef([default_action])
m4_popdef([help_desc])
m4_popdef([check_name])
])
dnl
dnl To be used instead of AC_ARG_WITH
dnl
dnl The difference between LIBVIRT_ARG_WITH and this macro is that the former
dnl is mostly an enhanced drop-in replacement for AC_ARG_WITH, whereas the
dnl latter is tailored for adding an argument that is going to be used to
dnl switch a feature on and off: as a consequence, it optionally supports
dnl specifying the minimum version for libraries the feature depends on and
dnl automatically builds a suitable description from the feature name.
dnl
dnl LIBVIRT_ARG_WITH_FEATURE([CHECK_NAME], [HELP_NAME], [DEFAULT_ACTION], [MIN_VERSION])
dnl
dnl CHECK_NAME: Suffix/prefix used for variables/flags, in uppercase.
dnl HELP_NAME: Name that will appear in configure --help
@ -30,10 +79,10 @@ dnl DEFAULT_ACTION: Default configure action
dnl MIN_VERSION: Specify minimal version that will be added to
dnl configure --help (optional)
dnl
dnl LIBVIRT_ARG_WITH([SELINUX], [SeLinux], [check])
dnl LIBVIRT_ARG_WITH([GLUSTERFS], [glusterfs], [check], [3.4.1])
dnl LIBVIRT_ARG_WITH_FEATURE([SELINUX], [SeLinux], [check])
dnl LIBVIRT_ARG_WITH_FEATURE([GLUSTERFS], [glusterfs], [check], [3.4.1])
dnl
AC_DEFUN([LIBVIRT_ARG_WITH], [
AC_DEFUN([LIBVIRT_ARG_WITH_FEATURE], [
m4_pushdef([check_name], [$1])
m4_pushdef([help_name], [[$2]])
m4_pushdef([default_action], [$3])
@ -66,45 +115,6 @@ AC_DEFUN([LIBVIRT_ARG_WITH], [
m4_popdef([check_name])
])
dnl
dnl To be used instead of AC_ARG_WITH
dnl
dnl LIBVIRT_ARG_WITH_ALT([CHECK_NAME], [HELP_DESC], [DEFAULT_ACTION])
dnl
dnl CHECK_NAME: Suffix/prefix used for variables/flags, in uppercase.
dnl HELP_DESC: Description that will appear in configure --help
dnl DEFAULT_ACTION: Default configure action
dnl
dnl LIBVIRT_ARG_WITH_ALT([PACKAGER], [Extra packager name], [no])
dnl LIBVIRT_ARG_WITH_ALT([HTML_DIR], [path to base html directory], [$(datadir)/doc])
dnl
AC_DEFUN([LIBVIRT_ARG_WITH_ALT], [
m4_pushdef([check_name], [$1])
m4_pushdef([help_desc], [[$2]])
m4_pushdef([default_action], [$3])
m4_pushdef([check_name_lc], m4_tolower(check_name))
m4_pushdef([check_name_dash], m4_translit(check_name_lc, [_], [-]))
m4_pushdef([arg_var], [with-]check_name_dash)
m4_pushdef([with_var], [with_]check_name_lc)
m4_divert_text([DEFAULTS], [with_var][[=]][default_action])
AC_ARG_WITH([check_name_lc],
[AS_HELP_STRING([[--]arg_var],
]m4_dquote(help_desc)[[ @<:@default=]]m4_dquote(default_action)[[@:>@])])
m4_popdef([with_var])
m4_popdef([arg_var])
m4_popdef([check_name_dash])
m4_popdef([check_name_lc])
m4_popdef([default_action])
m4_popdef([help_desc])
m4_popdef([check_name])
])
dnl
dnl To be used instead of AC_ARG_ENABLE
dnl

View File

@ -1,7 +1,7 @@
dnl The libattr.so library
AC_DEFUN([LIBVIRT_ARG_ATTR],[
LIBVIRT_ARG_WITH([ATTR], [attr], [check])
LIBVIRT_ARG_WITH_FEATURE([ATTR], [attr], [check])
])
AC_DEFUN([LIBVIRT_CHECK_ATTR],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_AUDIT],[
LIBVIRT_ARG_WITH([AUDIT], [audit], [check])
LIBVIRT_ARG_WITH_FEATURE([AUDIT], [audit], [check])
])
AC_DEFUN([LIBVIRT_CHECK_AUDIT],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_AVAHI],[
LIBVIRT_ARG_WITH([AVAHI], [avahi-client], [check], [0.6.0])
LIBVIRT_ARG_WITH_FEATURE([AVAHI], [avahi-client], [check], [0.6.0])
])
AC_DEFUN([LIBVIRT_CHECK_AVAHI],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_BLKID],[
LIBVIRT_ARG_WITH([BLKID], [blkid], [check], [2.17])
LIBVIRT_ARG_WITH_FEATURE([BLKID], [blkid], [check], [2.17])
])
AC_DEFUN([LIBVIRT_CHECK_BLKID],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_CAPNG],[
LIBVIRT_ARG_WITH([CAPNG], [cap-ng], [check])
LIBVIRT_ARG_WITH_FEATURE([CAPNG], [cap-ng], [check])
])
AC_DEFUN([LIBVIRT_CHECK_CAPNG],[

View File

@ -18,10 +18,10 @@ 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])
LIBVIRT_ARG_WITH([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], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_CURL],[
LIBVIRT_ARG_WITH([CURL], [libcurl], [check], [7.18.0])
LIBVIRT_ARG_WITH_FEATURE([CURL], [libcurl], [check], [7.18.0])
])
AC_DEFUN([LIBVIRT_CHECK_CURL],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_DBUS],[
LIBVIRT_ARG_WITH([DBUS], [dbus-1], [check], [1.0.0])
LIBVIRT_ARG_WITH_FEATURE([DBUS], [dbus-1], [check], [1.0.0])
])
AC_DEFUN([LIBVIRT_CHECK_DBUS],[

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_DEFAULT_EDITOR], [
LIBVIRT_ARG_WITH_ALT([DEFAULT_EDITOR],
[Editor to use for interactive commands], [vi])
LIBVIRT_ARG_WITH([DEFAULT_EDITOR],
[Editor to use for interactive commands], [vi])
])
AC_DEFUN([LIBVIRT_CHECK_DEFAULT_EDITOR], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_BHYVE],[
LIBVIRT_ARG_WITH([BHYVE], [BHyVe], [check])
LIBVIRT_ARG_WITH_FEATURE([BHYVE], [BHyVe], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_BHYVE],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_ESX], [
LIBVIRT_ARG_WITH([ESX], [ESX], [check])
LIBVIRT_ARG_WITH_FEATURE([ESX], [ESX], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_ESX], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_HYPERV], [
LIBVIRT_ARG_WITH([HYPERV], [Hyper-V], [check])
LIBVIRT_ARG_WITH_FEATURE([HYPERV], [Hyper-V], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_HYPERV], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_INTERFACE], [
LIBVIRT_ARG_WITH([INTERFACE], [host interface driver], [check])
LIBVIRT_ARG_WITH_FEATURE([INTERFACE], [host interface driver], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_INTERFACE], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_LIBVIRTD], [
LIBVIRT_ARG_WITH([LIBVIRTD], [libvirtd], [yes])
LIBVIRT_ARG_WITH_FEATURE([LIBVIRTD], [libvirtd], [yes])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_LIBVIRTD], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_LIBXL], [
LIBVIRT_ARG_WITH([LIBXL], [libxenlight], [check])
LIBVIRT_ARG_WITH_FEATURE([LIBXL], [libxenlight], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_LIBXL], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_LXC], [
LIBVIRT_ARG_WITH([LXC], [Linux Container], [check])
LIBVIRT_ARG_WITH_FEATURE([LXC], [Linux Container], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_LXC], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_DRIVER_MODULES], [
LIBVIRT_ARG_WITH_ALT([DRIVER_MODULES], [build drivers as loadable modules],
[check])
LIBVIRT_ARG_WITH([DRIVER_MODULES], [build drivers as loadable modules],
[check])
])
AC_DEFUN([LIBVIRT_CHECK_DRIVER_MODULES], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_NETWORK], [
LIBVIRT_ARG_WITH_ALT([NETWORK], [with virtual network driver], [yes])
LIBVIRT_ARG_WITH([NETWORK], [with virtual network driver], [yes])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_NETWORK], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_OPENVZ], [
LIBVIRT_ARG_WITH([OPENVZ], [OpenVZ], [check])
LIBVIRT_ARG_WITH_FEATURE([OPENVZ], [OpenVZ], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_OPENVZ], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_PHYP], [
LIBVIRT_ARG_WITH([PHYP], [PHYP], [check])
LIBVIRT_ARG_WITH_FEATURE([PHYP], [PHYP], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_PHYP], [

View File

@ -18,11 +18,11 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_QEMU], [
LIBVIRT_ARG_WITH([QEMU], [QEMU/KVM], [yes])
LIBVIRT_ARG_WITH_ALT([QEMU_USER], [username to run QEMU system instance as],
['platform dependent'])
LIBVIRT_ARG_WITH_ALT([QEMU_GROUP], [groupname to run QEMU system instance as],
['platform dependent'])
LIBVIRT_ARG_WITH_FEATURE([QEMU], [QEMU/KVM], [yes])
LIBVIRT_ARG_WITH([QEMU_USER], [username to run QEMU system instance as],
['platform dependent'])
LIBVIRT_ARG_WITH([QEMU_GROUP], [groupname to run QEMU system instance as],
['platform dependent'])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_QEMU], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_REMOTE], [
LIBVIRT_ARG_WITH([REMOTE], [remote driver], [yes])
LIBVIRT_ARG_WITH_FEATURE([REMOTE], [remote driver], [yes])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_REMOTE], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_TEST], [
LIBVIRT_ARG_WITH([TEST], [test driver], [yes])
LIBVIRT_ARG_WITH_FEATURE([TEST], [test driver], [yes])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_TEST], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_UML],[
LIBVIRT_ARG_WITH([UML], [UML], [check])
LIBVIRT_ARG_WITH_FEATURE([UML], [UML], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_UML],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_VBOX], [
LIBVIRT_ARG_WITH([VBOX], [VirtualBox XPCOMC], [yes])
LIBVIRT_ARG_WITH_FEATURE([VBOX], [VirtualBox XPCOMC], [yes])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_VBOX], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_VMWARE], [
LIBVIRT_ARG_WITH([VMWARE], [VMware], [yes])
LIBVIRT_ARG_WITH_FEATURE([VMWARE], [VMware], [yes])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_VMWARE], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_VZ],[
LIBVIRT_ARG_WITH([VZ], [Virtuozzo], [check])
LIBVIRT_ARG_WITH_FEATURE([VZ], [Virtuozzo], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_VZ],[

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_XEN], [
LIBVIRT_ARG_WITH([XEN], [XEN], [check])
LIBVIRT_ARG_WITH([XEN_INOTIFY], [XEN inotify], [check])
LIBVIRT_ARG_WITH_FEATURE([XEN], [XEN], [check])
LIBVIRT_ARG_WITH_FEATURE([XEN_INOTIFY], [XEN inotify], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_XEN], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_DRIVER_ARG_XENAPI], [
LIBVIRT_ARG_WITH([XENAPI], [XenAPI], [check])
LIBVIRT_ARG_WITH_FEATURE([XENAPI], [XenAPI], [check])
])
AC_DEFUN([LIBVIRT_DRIVER_CHECK_XENAPI], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_DTRACE], [
LIBVIRT_ARG_WITH_ALT([DTRACE], [use dtrace for static probing], [check])
LIBVIRT_ARG_WITH([DTRACE], [use dtrace for static probing], [check])
])
AC_DEFUN([LIBVIRT_CHECK_DTRACE], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_FIREWALLD], [
LIBVIRT_ARG_WITH([FIREWALLD], [firewalld], [check])
LIBVIRT_ARG_WITH_FEATURE([FIREWALLD], [firewalld], [check])
])
AC_DEFUN([LIBVIRT_CHECK_FIREWALLD], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_FUSE],[
LIBVIRT_ARG_WITH([FUSE], [fuse], [check], [2.8.6])
LIBVIRT_ARG_WITH_FEATURE([FUSE], [fuse], [check], [2.8.6])
])
AC_DEFUN([LIBVIRT_CHECK_FUSE],[

View File

@ -20,7 +20,7 @@ dnl
dnl Currently tested against Fedora 19 with glusterfs 3.4.1; earlier
dnl versions may be possible but only with further testing
AC_DEFUN([LIBVIRT_ARG_GLUSTER],[
LIBVIRT_ARG_WITH([GLUSTERFS], [glusterfs], [check], [3.4.1])
LIBVIRT_ARG_WITH_FEATURE([GLUSTERFS], [glusterfs], [check], [3.4.1])
])
AC_DEFUN([LIBVIRT_CHECK_GLUSTER],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_GNUTLS],[
LIBVIRT_ARG_WITH([GNUTLS], [gnutls], [check], [2.2.0])
LIBVIRT_ARG_WITH_FEATURE([GNUTLS], [gnutls], [check], [2.2.0])
])
AC_DEFUN([LIBVIRT_CHECK_GNUTLS],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_HAL],[
LIBVIRT_ARG_WITH([HAL], [hal], [check], [0.5.0])
LIBVIRT_ARG_WITH_FEATURE([HAL], [hal], [check], [0.5.0])
])
AC_DEFUN([LIBVIRT_CHECK_HAL],[

View File

@ -16,7 +16,7 @@ dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.
AC_DEFUN([LIBVIRT_ARG_HOST_VALIDATE], [
LIBVIRT_ARG_WITH_ALT([HOST_VALIDATE], [build virt-host-validate], [check])
LIBVIRT_ARG_WITH([HOST_VALIDATE], [build virt-host-validate], [check])
])
AC_DEFUN([LIBVIRT_CHECK_HOST_VALIDATE], [

View File

@ -18,9 +18,9 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_INIT_SCRIPT],[
LIBVIRT_ARG_WITH_ALT([INIT_SCRIPT],
[Style of init script to install: redhat, systemd,
systemd+redhat, upstart, check, none], [check])
LIBVIRT_ARG_WITH([INIT_SCRIPT],
[Style of init script to install: redhat, systemd,
systemd+redhat, upstart, check, none], [check])
])
AC_DEFUN([LIBVIRT_CHECK_INIT_SCRIPT],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_LIBPCAP], [
LIBVIRT_ARG_WITH_ALT([LIBPCAP], [libpcap location], [check])
LIBVIRT_ARG_WITH([LIBPCAP], [libpcap location], [check])
])
AC_DEFUN([LIBVIRT_CHECK_LIBPCAP], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_LIBSSH],[
LIBVIRT_ARG_WITH([LIBSSH], [libssh], [check], [0.7])
LIBVIRT_ARG_WITH_FEATURE([LIBSSH], [libssh], [check], [0.7])
])
AC_DEFUN([LIBVIRT_CHECK_LIBSSH],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_LIBXML], [
LIBVIRT_ARG_WITH_ALT([LIBXML], [libxml-2.0 (>= 2.6.0) location], [check])
LIBVIRT_ARG_WITH([LIBXML], [libxml-2.0 (>= 2.6.0) location], [check])
])
AC_DEFUN([LIBVIRT_CHECK_LIBXML], [

View File

@ -18,10 +18,10 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_LOADER_NVRAM], [
LIBVIRT_ARG_WITH_ALT([LOADER_NVRAM],
[Pass list of pairs of <loader>:<nvram> paths.
Both pairs and list items are separated by a colon.],
[''])
LIBVIRT_ARG_WITH([LOADER_NVRAM],
[Pass list of pairs of <loader>:<nvram> paths.
Both pairs and list items are separated by a colon.],
[''])
])
AC_DEFUN([LIBVIRT_CHECK_LOADER_NVRAM], [

View File

@ -16,7 +16,7 @@ dnl License along with this library. If not, see
dnl <http://www.gnu.org/licenses/>.
AC_DEFUN([LIBVIRT_ARG_LOGIN_SHELL], [
LIBVIRT_ARG_WITH_ALT([LOGIN_SHELL], [build virt-login-shell], [check])
LIBVIRT_ARG_WITH([LOGIN_SHELL], [build virt-login-shell], [check])
])
AC_DEFUN([LIBVIRT_CHECK_LOGIN_SHELL], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_MACVTAP], [
LIBVIRT_ARG_WITH_ALT([MACVTAP], [enable macvtap device], [check])
LIBVIRT_ARG_WITH([MACVTAP], [enable macvtap device], [check])
])
AC_DEFUN([LIBVIRT_CHECK_MACVTAP], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_NETCF],[
LIBVIRT_ARG_WITH([NETCF], [netcf], [check], [0.1.4])
LIBVIRT_ARG_WITH_FEATURE([NETCF], [netcf], [check], [0.1.4])
])
AC_DEFUN([LIBVIRT_CHECK_NETCF],[

View File

@ -18,9 +18,9 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_NSS],[
LIBVIRT_ARG_WITH_ALT([NSS_PLUGIN],
[enable Name Service Switch plugin for resolving guest
IP addresses], [check])
LIBVIRT_ARG_WITH([NSS_PLUGIN],
[enable Name Service Switch plugin for resolving guest
IP addresses], [check])
])
AC_DEFUN([LIBVIRT_CHECK_NSS],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_NUMACTL],[
LIBVIRT_ARG_WITH([NUMACTL], [numa], [check])
LIBVIRT_ARG_WITH_FEATURE([NUMACTL], [numa], [check])
])
AC_DEFUN([LIBVIRT_CHECK_NUMACTL],[

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_NUMAD], [
LIBVIRT_ARG_WITH_ALT([NUMAD], [use numad to manage CPU placement dynamically],
[check])
LIBVIRT_ARG_WITH([NUMAD], [use numad to manage CPU placement dynamically],
[check])
])
AC_DEFUN([LIBVIRT_CHECK_NUMAD], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_OPENWSMAN],[
LIBVIRT_ARG_WITH([OPENWSMAN], [openwsman], [check], [2.2.3])
LIBVIRT_ARG_WITH_FEATURE([OPENWSMAN], [openwsman], [check], [2.2.3])
])
AC_DEFUN([LIBVIRT_CHECK_OPENWSMAN],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_PCIACCESS],[
LIBVIRT_ARG_WITH([PCIACCESS], [pciaccess], [check], [0.10.0])
LIBVIRT_ARG_WITH_FEATURE([PCIACCESS], [pciaccess], [check], [0.10.0])
])
AC_DEFUN([LIBVIRT_CHECK_PCIACCESS],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_PM_UTILS], [
LIBVIRT_ARG_WITH_ALT([PM_UTILS], [use pm-utils for power management], [check])
LIBVIRT_ARG_WITH([PM_UTILS], [use pm-utils for power management], [check])
])
AC_DEFUN([LIBVIRT_CHECK_PM_UTILS], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_POLKIT], [
LIBVIRT_ARG_WITH_ALT([POLKIT], [use PolicyKit for UNIX socket access checks],
[check])
LIBVIRT_ARG_WITH([POLKIT], [use PolicyKit for UNIX socket access checks],
[check])
])
AC_DEFUN([LIBVIRT_CHECK_POLKIT], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_READLINE],[
LIBVIRT_ARG_WITH([READLINE], [readline], [check])
LIBVIRT_ARG_WITH_FEATURE([READLINE], [readline], [check])
])
AC_DEFUN([LIBVIRT_CHECK_READLINE],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_SANLOCK],[
LIBVIRT_ARG_WITH([SANLOCK], [sanlock-client], [check])
LIBVIRT_ARG_WITH_FEATURE([SANLOCK], [sanlock-client], [check])
])
AC_DEFUN([LIBVIRT_CHECK_SANLOCK],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_SASL],[
LIBVIRT_ARG_WITH([SASL], [sasl], [check])
LIBVIRT_ARG_WITH_FEATURE([SASL], [sasl], [check])
])
AC_DEFUN([LIBVIRT_CHECK_SASL],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_SECDRIVER_ARG_APPARMOR], [
LIBVIRT_ARG_WITH_ALT([SECDRIVER_APPARMOR], [use AppArmor security driver], [check])
LIBVIRT_ARG_WITH([SECDRIVER_APPARMOR], [use AppArmor security driver], [check])
])
AC_DEFUN([LIBVIRT_SECDRIVER_CHECK_APPARMOR], [
@ -37,7 +37,7 @@ AC_DEFUN([LIBVIRT_SECDRIVER_CHECK_APPARMOR], [
fi
AM_CONDITIONAL([WITH_SECDRIVER_APPARMOR], [test "$with_secdriver_apparmor" != "no"])
LIBVIRT_ARG_WITH_ALT([APPARMOR_PROFILES], [install apparmor profiles], [no])
LIBVIRT_ARG_WITH([APPARMOR_PROFILES], [install apparmor profiles], [no])
if test "$with_apparmor" = "no"; then
with_apparmor_profiles="no"
fi

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_SECDRIVER_ARG_SELINUX], [
LIBVIRT_ARG_WITH_ALT([SECDRIVER_SELINUX], [use SELinux security driver], [check])
LIBVIRT_ARG_WITH([SECDRIVER_SELINUX], [use SELinux security driver], [check])
])
AC_DEFUN([LIBVIRT_SECDRIVER_CHECK_SELINUX], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_SELINUX],[
LIBVIRT_ARG_WITH([SELINUX], [SELinux], [check])
LIBVIRT_ARG_WITH_ALT([SELINUX_MOUNT], [set SELinux mount point], [check])
LIBVIRT_ARG_WITH_FEATURE([SELINUX], [SELinux], [check])
LIBVIRT_ARG_WITH([SELINUX_MOUNT], [set SELinux mount point], [check])
])
AC_DEFUN([LIBVIRT_CHECK_SELINUX],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_SSH2],[
LIBVIRT_ARG_WITH([SSH2], [libssh2], [check], [1.3])
LIBVIRT_ARG_WITH_FEATURE([SSH2], [libssh2], [check], [1.3])
])
AC_DEFUN([LIBVIRT_CHECK_SSH2],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_DIR], [
LIBVIRT_ARG_WITH([STORAGE_DIR], [directory backend for the storage driver], [yes])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_DIR], [directory backend for the storage driver], [yes])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_DIR], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_DISK], [
LIBVIRT_ARG_WITH([STORAGE_DISK], [GPartd Disk backend for the storage driver],
[check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_DISK], [GPartd Disk backend for the storage driver],
[check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_DISK], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_FS], [
LIBVIRT_ARG_WITH([STORAGE_FS], [FileSystem backend for the storage driver],
[check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_FS], [FileSystem backend for the storage driver],
[check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_FS], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_GLUSTER], [
LIBVIRT_ARG_WITH([STORAGE_GLUSTER], [Gluster backend for the storage driver],
[check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_GLUSTER], [Gluster backend for the storage driver],
[check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_GLUSTER], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_ISCSI], [
LIBVIRT_ARG_WITH([STORAGE_ISCSI], [iSCSI backend for the storage driver],
[check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_ISCSI], [iSCSI backend for the storage driver],
[check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_ISCSI], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_LVM], [
LIBVIRT_ARG_WITH([STORAGE_LVM], [LVM backend for storage driver], [check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_LVM], [LVM backend for storage driver], [check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_LVM], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_MPATH], [
LIBVIRT_ARG_WITH([STORAGE_MPATH], [mpath backend for the storage driver],
[check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_MPATH], [mpath backend for the storage driver],
[check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_MPATH], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_RBD], [
LIBVIRT_ARG_WITH([STORAGE_RBD],
[RADOS Block Device backend for the storage driver], [check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_RBD],
[RADOS Block Device backend for the storage driver], [check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_RBD], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_SCSI], [
LIBVIRT_ARG_WITH([STORAGE_SCSI], [SCSI backend for the storage driver], [check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_SCSI], [SCSI backend for the storage driver], [check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_SCSI], [

View File

@ -18,8 +18,8 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_SHEEPDOG], [
LIBVIRT_ARG_WITH([STORAGE_SHEEPDOG],
[with Sheepdog backend for the storage driver], [check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_SHEEPDOG],
[with Sheepdog backend for the storage driver], [check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_SHEEPDOG], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_STORAGE_ARG_ZFS], [
LIBVIRT_ARG_WITH([STORAGE_ZFS], [ZFS backend for the storage driver], [check])
LIBVIRT_ARG_WITH_FEATURE([STORAGE_ZFS], [ZFS backend for the storage driver], [check])
])
AC_DEFUN([LIBVIRT_STORAGE_CHECK_ZFS], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_SYSCTL_CONFIG], [
LIBVIRT_ARG_WITH_ALT([SYSCTL], [Whether to install sysctl configs], [check])
LIBVIRT_ARG_WITH([SYSCTL], [Whether to install sysctl configs], [check])
])
AC_DEFUN([LIBVIRT_CHECK_SYSCTL_CONFIG], [

View File

@ -18,9 +18,9 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_TLS_PRIORITY], [
LIBVIRT_ARG_WITH_ALT([TLS_PRIORITY],
[set the default TLS session priority string],
[NORMAL])
LIBVIRT_ARG_WITH([TLS_PRIORITY],
[set the default TLS session priority string],
[NORMAL])
])
AC_DEFUN([LIBVIRT_CHECK_TLS_PRIORITY], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_UDEV],[
LIBVIRT_ARG_WITH([UDEV], [libudev], [check], [145])
LIBVIRT_ARG_WITH_FEATURE([UDEV], [libudev], [check], [145])
])
AC_DEFUN([LIBVIRT_CHECK_UDEV],[

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_VIRTUALPORT], [
LIBVIRT_ARG_WITH_ALT([VIRTUALPORT], [enable virtual port support], [check])
LIBVIRT_ARG_WITH([VIRTUALPORT], [enable virtual port support], [check])
])
AC_DEFUN([LIBVIRT_CHECK_VIRTUALPORT],[

View File

@ -18,10 +18,10 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_WIRESHARK],[
LIBVIRT_ARG_WITH([WIRESHARK_DISSECTOR], [wireshark], [check], [1.11.3])
LIBVIRT_ARG_WITH_ALT([WS_PLUGINDIR],
[wireshark plugins directory for use when installing
wireshark plugin], [check])
LIBVIRT_ARG_WITH_FEATURE([WIRESHARK_DISSECTOR], [wireshark], [check], [1.11.3])
LIBVIRT_ARG_WITH([WS_PLUGINDIR],
[wireshark plugins directory for use when installing
wireshark plugin], [check])
])
AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[

View File

@ -18,9 +18,9 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_XML_CATALOG], [
LIBVIRT_ARG_WITH_ALT([XML_CATALOG_FILE],
[path to XML catalog file for validating generated html],
['/etc/xml/catalog'])
LIBVIRT_ARG_WITH([XML_CATALOG_FILE],
[path to XML catalog file for validating generated html],
['/etc/xml/catalog'])
])
AC_DEFUN([LIBVIRT_CHECK_XML_CATALOG], [

View File

@ -18,7 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
dnl
AC_DEFUN([LIBVIRT_ARG_YAJL],[
LIBVIRT_ARG_WITH([YAJL], [yajl], [check])
LIBVIRT_ARG_WITH_FEATURE([YAJL], [yajl], [check])
])
AC_DEFUN([LIBVIRT_CHECK_YAJL],[