mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 12:35:20 +00:00
configure: use LIBVIRT_ARG_WITH(_ALT) macros
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
7f1e6e9d5a
commit
08c2d1480b
371
configure.ac
371
configure.ac
@ -96,14 +96,8 @@ AC_SUBST([LIBVIRT_VERSION])
|
|||||||
AC_SUBST([LIBVIRT_VERSION_INFO])
|
AC_SUBST([LIBVIRT_VERSION_INFO])
|
||||||
AC_SUBST([LIBVIRT_VERSION_NUMBER])
|
AC_SUBST([LIBVIRT_VERSION_NUMBER])
|
||||||
|
|
||||||
AC_ARG_WITH([packager],
|
LIBVIRT_ARG_WITH_ALT([PACKAGER], [Extra packager name], [no])
|
||||||
[AS_HELP_STRING([--with-packager],
|
LIBVIRT_ARG_WITH_ALT([PACKAGER_VERSION], [Extra packager version], [no])
|
||||||
[Extra packager name])],
|
|
||||||
[],[with_packager=no])
|
|
||||||
AC_ARG_WITH([packager-version],
|
|
||||||
[AS_HELP_STRING([--with-packager-version],
|
|
||||||
[Extra packager version])],
|
|
||||||
[],[with_packager_version=no])
|
|
||||||
if test "x$with_packager" != "xno"
|
if test "x$with_packager" != "xno"
|
||||||
then
|
then
|
||||||
AC_DEFINE_UNQUOTED([PACKAGER], ["$with_packager"],
|
AC_DEFINE_UNQUOTED([PACKAGER], ["$with_packager"],
|
||||||
@ -416,24 +410,22 @@ LIBVIRT_CHECK_EXTERNAL_PROGRAMS
|
|||||||
|
|
||||||
|
|
||||||
dnl Specific dir for HTML output ?
|
dnl Specific dir for HTML output ?
|
||||||
AC_ARG_WITH([html-dir], [AS_HELP_STRING([--with-html-dir=path],
|
LIBVIRT_ARG_WITH_ALT([HTML_DIR], [path to base html directory],
|
||||||
[path to base html directory, default $datadir/doc/html])],
|
['$(datadir)/doc'])
|
||||||
[HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc'])
|
LIBVIRT_ARG_WITH_ALT([HTML_SUBDIR], [directory used under html-dir],
|
||||||
|
['$(PACKAGE)-$(VERSION)/html'])
|
||||||
AC_ARG_WITH([html-subdir], [AS_HELP_STRING([--with-html-subdir=path],
|
if test "x$with_html_subdir" != "x" ; then
|
||||||
[directory used under html-dir, default $PACKAGE-$VERSION/html])],
|
HTML_DIR="$with_html_dir/$with_html_subdir"
|
||||||
[test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"],
|
else
|
||||||
[HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"])
|
HTML_DIR="$with_html_dir"
|
||||||
|
fi
|
||||||
AC_SUBST([HTML_DIR])
|
AC_SUBST([HTML_DIR])
|
||||||
|
|
||||||
dnl Specific XML catalog file for validation of generated html
|
dnl Specific XML catalog file for validation of generated html
|
||||||
AC_ARG_WITH([xml-catalog-file],
|
LIBVIRT_ARG_WITH_ALT([XML_CATALOG_FILE],
|
||||||
[AS_HELP_STRING([--with-xml-catalog-file=path],
|
[path to XML catalog file for validating generated html],
|
||||||
[path to XML catalog file for validating
|
['/etc/xml/catalog'])
|
||||||
generated html, default /etc/xml/catalog])],
|
AC_SUBST([XML_CATALOG_FILE], [$with_xml_catalog_file])
|
||||||
[XML_CATALOG_FILE=$withval],
|
|
||||||
[XML_CATALOG_FILE='/etc/xml/catalog'])
|
|
||||||
AC_SUBST([XML_CATALOG_FILE])
|
|
||||||
|
|
||||||
dnl if --prefix is /usr, don't use /usr/var for localstatedir
|
dnl if --prefix is /usr, don't use /usr/var for localstatedir
|
||||||
dnl or /usr/etc for sysconfdir
|
dnl or /usr/etc for sysconfdir
|
||||||
@ -447,75 +439,27 @@ if test "$prefix" = "/usr" && test "$sysconfdir" = '${prefix}/etc' ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Allow to build without Xen, QEMU/KVM, test or remote driver
|
dnl Allow to build without Xen, QEMU/KVM, test or remote driver
|
||||||
AC_ARG_WITH([xen],
|
LIBVIRT_ARG_WITH([XEN], [XEN], [check])
|
||||||
[AS_HELP_STRING([--with-xen],
|
LIBVIRT_ARG_WITH([XEN_INOTIFY], [XEN inotify], [check])
|
||||||
[add XEN support @<:@default=check@:>@])])
|
LIBVIRT_ARG_WITH([QEMU], [QEMU/KVM], [yes])
|
||||||
m4_divert_text([DEFAULTS], [with_xen=check])
|
LIBVIRT_ARG_WITH([OPENVZ], [OpenVZ], [check])
|
||||||
AC_ARG_WITH([xen-inotify],
|
LIBVIRT_ARG_WITH([VMWARE], [VMware], [yes])
|
||||||
[AS_HELP_STRING([--with-xen-inotify],
|
LIBVIRT_ARG_WITH([PHYP], [PHYP], [check])
|
||||||
[add XEN inotify support @<:@default=check@:>@])])
|
LIBVIRT_ARG_WITH([XENAPI], [XenAPI], [check])
|
||||||
m4_divert_text([DEFAULTS], [with_xen_inotify=check])
|
LIBVIRT_ARG_WITH([LIBXL], [libxenlight], [check])
|
||||||
AC_ARG_WITH([qemu],
|
LIBVIRT_ARG_WITH([VBOX], [VirtualBox XPCOMC], [yes])
|
||||||
[AS_HELP_STRING([--with-qemu],
|
LIBVIRT_ARG_WITH([LXC], [Linux Container], [check])
|
||||||
[add QEMU/KVM support @<:@default=yes@:>@])])
|
LIBVIRT_ARG_WITH([ESX], [ESX], [check])
|
||||||
m4_divert_text([DEFAULTS], [with_qemu=yes])
|
LIBVIRT_ARG_WITH([HYPERV], [Hyper-V], [check])
|
||||||
AC_ARG_WITH([openvz],
|
LIBVIRT_ARG_WITH([TEST], [test driver], [yes])
|
||||||
[AS_HELP_STRING([--with-openvz],
|
LIBVIRT_ARG_WITH([REMOTE], [remote driver], [yes])
|
||||||
[add OpenVZ support @<:@default=check@:>@])])
|
LIBVIRT_ARG_WITH([LIBVIRTD], [libvirtd], [yes])
|
||||||
m4_divert_text([DEFAULTS], [with_openvz=check])
|
|
||||||
AC_ARG_WITH([vmware],
|
LIBVIRT_ARG_WITH_ALT([CHRDEV_LOCK_FILES],
|
||||||
[AS_HELP_STRING([--with-vmware],
|
[location for UUCP style lock files for character devices ]
|
||||||
[add VMware support @<:@default=yes@:>@])])
|
[(use auto for default paths on some platforms)],
|
||||||
m4_divert_text([DEFAULTS], [with_vmware=yes])
|
[auto])
|
||||||
AC_ARG_WITH([phyp],
|
LIBVIRT_ARG_WITH_ALT([PM_UTILS], [use pm-utils for power management], [check])
|
||||||
[AS_HELP_STRING([--with-phyp],
|
|
||||||
[add PHYP support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_phyp=check])
|
|
||||||
AC_ARG_WITH([xenapi],
|
|
||||||
[AS_HELP_STRING([--with-xenapi],
|
|
||||||
[add XenAPI support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_xenapi=check])
|
|
||||||
AC_ARG_WITH([libxl],
|
|
||||||
[AS_HELP_STRING([--with-libxl],
|
|
||||||
[add libxenlight support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_libxl=check])
|
|
||||||
AC_ARG_WITH([vbox],
|
|
||||||
[AS_HELP_STRING([--with-vbox=@<:@PFX@:>@],
|
|
||||||
[VirtualBox XPCOMC location @<:@default=yes@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_vbox=yes])
|
|
||||||
AC_ARG_WITH([lxc],
|
|
||||||
[AS_HELP_STRING([--with-lxc],
|
|
||||||
[add Linux Container support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_lxc=check])
|
|
||||||
AC_ARG_WITH([esx],
|
|
||||||
[AS_HELP_STRING([--with-esx],
|
|
||||||
[add ESX support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_esx=check])
|
|
||||||
AC_ARG_WITH([hyperv],
|
|
||||||
[AS_HELP_STRING([--with-hyperv],
|
|
||||||
[add Hyper-V support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_hyperv=check])
|
|
||||||
AC_ARG_WITH([test],
|
|
||||||
[AS_HELP_STRING([--with-test],
|
|
||||||
[add test driver support @<:@default=yes@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_test=yes])
|
|
||||||
AC_ARG_WITH([remote],
|
|
||||||
[AS_HELP_STRING([--with-remote],
|
|
||||||
[add remote driver support @<:@default=yes@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_remote=yes])
|
|
||||||
AC_ARG_WITH([libvirtd],
|
|
||||||
[AS_HELP_STRING([--with-libvirtd],
|
|
||||||
[add libvirtd support @<:@default=yes@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_libvirtd=yes])
|
|
||||||
AC_ARG_WITH([chrdev-lock-files],
|
|
||||||
[AS_HELP_STRING([--with-chrdev-lock-files],
|
|
||||||
[location for UUCP style lock files for character devices
|
|
||||||
(use auto for default paths on some platforms) @<:@default=auto@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_chrdev_lock_files=auto])
|
|
||||||
AC_ARG_WITH([pm-utils],
|
|
||||||
[AS_HELP_STRING([--with-pm-utils],
|
|
||||||
[use pm-utils for power management @<:@default=yes@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_pm_utils=check])
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl in case someone want to build static binaries
|
dnl in case someone want to build static binaries
|
||||||
@ -537,10 +481,7 @@ fi
|
|||||||
LIBVIRT_CHECK_INIT_SCRIPT
|
LIBVIRT_CHECK_INIT_SCRIPT
|
||||||
|
|
||||||
AC_MSG_CHECKING([for whether to install sysctl config])
|
AC_MSG_CHECKING([for whether to install sysctl config])
|
||||||
AC_ARG_WITH([sysctl],
|
LIBVIRT_ARG_WITH_ALT([SYSCTL], [Whether to install sysctl configs], [check])
|
||||||
[AS_HELP_STRING([--with-sysctl@<:@=yes/no@:>@],
|
|
||||||
[Whether to install sysctl configs @<:@default=check@:>@])],
|
|
||||||
[],[with_sysctl=check])
|
|
||||||
|
|
||||||
if test "$with_sysctl" = "yes" || test "$with_sysctl" = "check"
|
if test "$with_sysctl" = "yes" || test "$with_sysctl" = "check"
|
||||||
then
|
then
|
||||||
@ -1033,16 +974,16 @@ LIBXML_CFLAGS=""
|
|||||||
LIBXML_LIBS=""
|
LIBXML_LIBS=""
|
||||||
LIBXML_FOUND="no"
|
LIBXML_FOUND="no"
|
||||||
|
|
||||||
AC_ARG_WITH([libxml], [AS_HELP_STRING([--with-libxml=@<:@PFX@:>@],
|
LIBVIRT_ARG_WITH_ALT([LIBXML], [libxml2 (>= 2.6.0) location], [check])
|
||||||
[libxml2 location])])
|
|
||||||
if test "x$with_libxml" = "xno" ; then
|
if test "x$with_libxml" = "xno" ; then
|
||||||
AC_MSG_CHECKING(for libxml2 libraries >= $LIBXML_REQUIRED)
|
AC_MSG_CHECKING(for libxml2 libraries >= $LIBXML_REQUIRED)
|
||||||
AC_MSG_ERROR([libxml2 >= $LIBXML_REQUIRED is required for libvirt])
|
AC_MSG_ERROR([libxml2 >= $LIBXML_REQUIRED is required for libvirt])
|
||||||
elif test "x$with_libxml" = "x" && test "x$PKG_CONFIG" != "x" ; then
|
elif test "x$with_libxml" = "xcheck" && test "x$PKG_CONFIG" != "x" ; then
|
||||||
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED, [LIBXML_FOUND=yes], [LIBXML_FOUND=no])
|
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $LIBXML_REQUIRED, [LIBXML_FOUND=yes], [LIBXML_FOUND=no])
|
||||||
fi
|
fi
|
||||||
if test "$LIBXML_FOUND" = "no" ; then
|
if test "$LIBXML_FOUND" = "no" ; then
|
||||||
if test "x$with_libxml" != "x" ; then
|
if test "x$with_libxml" != "xcheck" ; then
|
||||||
LIBXML_CONFIG=$with_libxml/bin/$LIBXML_CONFIG
|
LIBXML_CONFIG=$with_libxml/bin/$LIBXML_CONFIG
|
||||||
fi
|
fi
|
||||||
AC_MSG_CHECKING(libxml2 $LIBXML_CONFIG >= $LIBXML_REQUIRED )
|
AC_MSG_CHECKING(libxml2 $LIBXML_CONFIG >= $LIBXML_REQUIRED )
|
||||||
@ -1077,11 +1018,9 @@ CFLAGS="$old_CFLAGS"
|
|||||||
LIBS="$old_LIBS"
|
LIBS="$old_LIBS"
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([tls-priority],
|
LIBVIRT_ARG_WITH_ALT([TLS_PRIORITY],
|
||||||
[AS_HELP_STRING([--with-tls-priority],
|
[set the default TLS session priority string],
|
||||||
[set the default TLS session priority string @<:@default=NORMAL@:>@])],
|
[NORMAL])
|
||||||
[],
|
|
||||||
[with_tls_priority=NORMAL])
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([TLS_PRIORITY], ["$with_tls_priority"],
|
AC_DEFINE_UNQUOTED([TLS_PRIORITY], ["$with_tls_priority"],
|
||||||
[TLS default priority string])
|
[TLS default priority string])
|
||||||
@ -1091,11 +1030,8 @@ dnl PolicyKit library
|
|||||||
POLKIT_CFLAGS=
|
POLKIT_CFLAGS=
|
||||||
POLKIT_LIBS=
|
POLKIT_LIBS=
|
||||||
PKCHECK_PATH=
|
PKCHECK_PATH=
|
||||||
AC_ARG_WITH([polkit],
|
LIBVIRT_ARG_WITH_ALT([POLKIT], [use PolicyKit for UNIX socket access checks],
|
||||||
[AS_HELP_STRING([--with-polkit],
|
[check])
|
||||||
[use PolicyKit for UNIX socket access checks @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_polkit=check])
|
|
||||||
|
|
||||||
with_polkit0=no
|
with_polkit0=no
|
||||||
with_polkit1=no
|
with_polkit1=no
|
||||||
@ -1162,11 +1098,8 @@ AC_SUBST([POLKIT_CFLAGS])
|
|||||||
AC_SUBST([POLKIT_LIBS])
|
AC_SUBST([POLKIT_LIBS])
|
||||||
|
|
||||||
dnl firewalld
|
dnl firewalld
|
||||||
AC_ARG_WITH([firewalld],
|
LIBVIRT_ARG_WITH([FIREWALLD], [firewalld], [check])
|
||||||
[AS_HELP_STRING([--with-firewalld],
|
|
||||||
[enable firewalld support @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_firewalld=check])
|
|
||||||
if test "x$with_firewalld" = "xcheck" ; then
|
if test "x$with_firewalld" = "xcheck" ; then
|
||||||
with_firewalld=$with_dbus
|
with_firewalld=$with_dbus
|
||||||
fi
|
fi
|
||||||
@ -1202,11 +1135,7 @@ fi
|
|||||||
AM_CONDITIONAL([VIR_CHRDEV_LOCK_FILE_PATH], [test "$with_chrdev_lock_files" != "no"])
|
AM_CONDITIONAL([VIR_CHRDEV_LOCK_FILE_PATH], [test "$with_chrdev_lock_files" != "no"])
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([secdriver-selinux],
|
LIBVIRT_ARG_WITH_ALT([SECDRIVER_SELINUX], [use SELinux security driver], [check])
|
||||||
[AS_HELP_STRING([--with-secdriver-selinux],
|
|
||||||
[use SELinux security driver @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_secdriver_selinux=check])
|
|
||||||
|
|
||||||
if test "$with_selinux" != "yes" ; then
|
if test "$with_selinux" != "yes" ; then
|
||||||
if test "$with_secdriver_selinux" = "check" ; then
|
if test "$with_secdriver_selinux" = "check" ; then
|
||||||
@ -1242,11 +1171,7 @@ fi
|
|||||||
AM_CONDITIONAL([WITH_SECDRIVER_SELINUX], [test "$with_secdriver_selinux" != "no"])
|
AM_CONDITIONAL([WITH_SECDRIVER_SELINUX], [test "$with_secdriver_selinux" != "no"])
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([secdriver-apparmor],
|
LIBVIRT_ARG_WITH_ALT([SECDRIVER_APPARMOR], [use AppArmor security driver], [check])
|
||||||
[AS_HELP_STRING([--with-secdriver-apparmor],
|
|
||||||
[use AppArmor security driver @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_secdriver_apparmor=check])
|
|
||||||
|
|
||||||
if test "$with_apparmor" != "yes" ; then
|
if test "$with_apparmor" != "yes" ; then
|
||||||
if test "$with_secdriver_apparmor" = "check" ; then
|
if test "$with_secdriver_apparmor" = "check" ; then
|
||||||
@ -1261,22 +1186,14 @@ elif test "with_secdriver_apparmor" != "no" ; then
|
|||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([WITH_SECDRIVER_APPARMOR], [test "$with_secdriver_apparmor" != "no"])
|
AM_CONDITIONAL([WITH_SECDRIVER_APPARMOR], [test "$with_secdriver_apparmor" != "no"])
|
||||||
|
|
||||||
AC_ARG_WITH([apparmor-profiles],
|
LIBVIRT_ARG_WITH_ALT([APPARMOR_PROFILES], [install apparmor profiles], [no])
|
||||||
[AS_HELP_STRING([--with-apparmor-profiles],
|
|
||||||
[install apparmor profiles @<:@default=no@:>@])],
|
|
||||||
[with_apparmor_profiles=yes],
|
|
||||||
[with_apparmor_profiles=no])
|
|
||||||
if test "$with_apparmor" = "no"; then
|
if test "$with_apparmor" = "no"; then
|
||||||
with_apparmor_profiles="no"
|
with_apparmor_profiles="no"
|
||||||
fi
|
fi
|
||||||
AM_CONDITIONAL([WITH_APPARMOR_PROFILES], [test "$with_apparmor_profiles" != "no"])
|
AM_CONDITIONAL([WITH_APPARMOR_PROFILES], [test "$with_apparmor_profiles" != "no"])
|
||||||
|
|
||||||
dnl DTrace static probes
|
dnl DTrace static probes
|
||||||
AC_ARG_WITH([dtrace],
|
LIBVIRT_ARG_WITH_ALT([DTRACE], [use dtrace for static probing], [check])
|
||||||
[AS_HELP_STRING([--with-dtrace],
|
|
||||||
[use dtrace for static probing @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_dtrace=check])
|
|
||||||
|
|
||||||
if test "$with_dtrace" != "no" ; then
|
if test "$with_dtrace" != "no" ; then
|
||||||
AC_PATH_PROG([DTRACE], [dtrace], [], [$LIBVIRT_SBIN_PATH])
|
AC_PATH_PROG([DTRACE], [dtrace], [], [$LIBVIRT_SBIN_PATH])
|
||||||
@ -1297,11 +1214,7 @@ AM_CONDITIONAL([WITH_DTRACE_PROBES], [test "$with_dtrace" != "no"])
|
|||||||
|
|
||||||
|
|
||||||
dnl numad
|
dnl numad
|
||||||
AC_ARG_WITH([numad],
|
LIBVIRT_ARG_WITH_ALT([NUMAD], [use numad to manage CPU placement dynamically], [check])
|
||||||
[AS_HELP_STRING([--with-numad],
|
|
||||||
[use numad to manage CPU placement dynamically @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_numad=check])
|
|
||||||
|
|
||||||
if test "$with_numad" != "no" ; then
|
if test "$with_numad" != "no" ; then
|
||||||
fail=0
|
fail=0
|
||||||
@ -1336,12 +1249,11 @@ LIBPCAP_CFLAGS=""
|
|||||||
LIBPCAP_LIBS=""
|
LIBPCAP_LIBS=""
|
||||||
LIBPCAP_FOUND="no"
|
LIBPCAP_FOUND="no"
|
||||||
|
|
||||||
AC_ARG_WITH([libpcap], [AS_HELP_STRING([--with-libpcap=@<:@PFX@:>@],
|
LIBVIRT_ARG_WITH_ALT([LIBPCAP], [libpcap location], [check])
|
||||||
[libpcap location])])
|
|
||||||
if test "$with_qemu" = "yes"; then
|
if test "$with_qemu" = "yes"; then
|
||||||
case $with_libpcap in
|
case $with_libpcap in
|
||||||
no) LIBPCAP_CONFIG= ;;
|
no) LIBPCAP_CONFIG= ;;
|
||||||
''|yes) LIBPCAP_CONFIG="pcap-config" ;;
|
''|yes|check) LIBPCAP_CONFIG="pcap-config" ;;
|
||||||
*) LIBPCAP_CONFIG="$with_libpcap/bin/pcap-config" ;;
|
*) LIBPCAP_CONFIG="$with_libpcap/bin/pcap-config" ;;
|
||||||
esac
|
esac
|
||||||
AS_IF([test "x$LIBPCAP_CONFIG" != "x"], [
|
AS_IF([test "x$LIBPCAP_CONFIG" != "x"], [
|
||||||
@ -1413,10 +1325,7 @@ AM_CONDITIONAL([WITH_PM_UTILS], [test "$with_pm_utils" = "yes"])
|
|||||||
|
|
||||||
dnl check if the network driver should be compiled
|
dnl check if the network driver should be compiled
|
||||||
|
|
||||||
AC_ARG_WITH([network],
|
LIBVIRT_ARG_WITH_ALT([NETWORK], [with virtual network driver], [yes])
|
||||||
[AS_HELP_STRING([--with-network],
|
|
||||||
[with virtual network driver @<:@default=yes@:>@])],
|
|
||||||
[],[with_network=yes])
|
|
||||||
|
|
||||||
dnl there's no use compiling the network driver without the libvirt
|
dnl there's no use compiling the network driver without the libvirt
|
||||||
dnl daemon, nor compiling it for MacOS X, where it breaks the compile
|
dnl daemon, nor compiling it for MacOS X, where it breaks the compile
|
||||||
@ -1438,10 +1347,7 @@ fi
|
|||||||
AM_CONDITIONAL([WITH_BRIDGE], [test "$with_bridge" = "yes"])
|
AM_CONDITIONAL([WITH_BRIDGE], [test "$with_bridge" = "yes"])
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([secrets],
|
LIBVIRT_ARG_WITH([SECRETS], [local secrets management driver], [yes])
|
||||||
[AS_HELP_STRING([--with-secrets],
|
|
||||||
[with local secrets management driver @<:@default=yes@:>@])],
|
|
||||||
[],[with_secrets=yes])
|
|
||||||
|
|
||||||
if test "$with_libvirtd" = "no"; then
|
if test "$with_libvirtd" = "no"; then
|
||||||
with_secrets=no
|
with_secrets=no
|
||||||
@ -1452,51 +1358,17 @@ fi
|
|||||||
AM_CONDITIONAL([WITH_SECRETS], [test "$with_secrets" = "yes"])
|
AM_CONDITIONAL([WITH_SECRETS], [test "$with_secrets" = "yes"])
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([storage-dir],
|
LIBVIRT_ARG_WITH([STORAGE_DIR], [directory backend for the storage driver], [yes])
|
||||||
[AS_HELP_STRING([--with-storage-dir],
|
LIBVIRT_ARG_WITH([STORAGE_FS], [FileSystem backend for the storage driver], [check])
|
||||||
[with directory backend for the storage driver @<:@default=yes@:>@])],
|
LIBVIRT_ARG_WITH([STORAGE_LVM], [LVM backend for storage driver], [check])
|
||||||
[],[with_storage_dir=yes])
|
LIBVIRT_ARG_WITH([STORAGE_ISCSI], [iSCSI backend for the storage driver], [check])
|
||||||
AC_ARG_WITH([storage-fs],
|
LIBVIRT_ARG_WITH([STORAGE_SCSI], [SCSI backend for the storage driver], [check])
|
||||||
[AS_HELP_STRING([--with-storage-fs],
|
LIBVIRT_ARG_WITH([STORAGE_MPATH], [mpath backend for the storage driver], [check])
|
||||||
[with FileSystem backend for the storage driver @<:@default=check@:>@])],
|
LIBVIRT_ARG_WITH([STORAGE_DISK], [GPartd Disk backend for the storage driver], [check])
|
||||||
[],[with_storage_fs=check])
|
LIBVIRT_ARG_WITH([STORAGE_RBD], [RADOS Block Device backend for the storage driver], [check])
|
||||||
AC_ARG_WITH([storage-lvm],
|
LIBVIRT_ARG_WITH([STORAGE_SHEEPDOG], [with Sheepdog backend for the storage driver], [check])
|
||||||
[AS_HELP_STRING([--with-storage-lvm],
|
LIBVIRT_ARG_WITH([STORAGE_GLUSTER], [Gluster backend for the storage driver], [check])
|
||||||
[with LVM backend for the storage driver @<:@default=check@:>@])],
|
LIBVIRT_ARG_WITH([STORAGE_ZFS], [ZFS backend for the storage driver], [check])
|
||||||
[],[with_storage_lvm=check])
|
|
||||||
AC_ARG_WITH([storage-iscsi],
|
|
||||||
[AS_HELP_STRING([--with-storage-iscsi],
|
|
||||||
[with iSCSI backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_iscsi=check])
|
|
||||||
AC_ARG_WITH([storage-scsi],
|
|
||||||
[AS_HELP_STRING([--with-storage-scsi],
|
|
||||||
[with SCSI backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_scsi=check])
|
|
||||||
AC_ARG_WITH([storage-mpath],
|
|
||||||
[AS_HELP_STRING([--with-storage-mpath],
|
|
||||||
[with mpath backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_mpath=check])
|
|
||||||
AC_ARG_WITH([storage-disk],
|
|
||||||
[AS_HELP_STRING([--with-storage-disk],
|
|
||||||
[with GPartd Disk backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_disk=check])
|
|
||||||
AC_ARG_WITH([storage-rbd],
|
|
||||||
[AS_HELP_STRING([--with-storage-rbd],
|
|
||||||
[with RADOS Block Device backend for the storage driver
|
|
||||||
@<:@default=check@:>@])],
|
|
||||||
[],[with_storage_rbd=check])
|
|
||||||
AC_ARG_WITH([storage-sheepdog],
|
|
||||||
[AS_HELP_STRING([--with-storage-sheepdog],
|
|
||||||
[with Sheepdog backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_sheepdog=check])
|
|
||||||
AC_ARG_WITH([storage-gluster],
|
|
||||||
[AS_HELP_STRING([--with-storage-gluster],
|
|
||||||
[with Gluster backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_gluster=check])
|
|
||||||
AC_ARG_WITH([storage-zfs],
|
|
||||||
[AS_HELP_STRING([--with-storage-zfs],
|
|
||||||
[with ZFS backend for the storage driver @<:@default=check@:>@])],
|
|
||||||
[],[with_storage_zfs=check])
|
|
||||||
|
|
||||||
if test "$with_libvirtd" = "no"; then
|
if test "$with_libvirtd" = "no"; then
|
||||||
with_storage_dir=no
|
with_storage_dir=no
|
||||||
@ -1917,25 +1789,22 @@ if test -z "$PERL"; then
|
|||||||
AC_MSG_ERROR([Failed to find perl.])
|
AC_MSG_ERROR([Failed to find perl.])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH([test-suite],
|
LIBVIRT_ARG_WITH_ALT([TEST_SUITE], [build test suite by default], [check])
|
||||||
[AS_HELP_STRING([--with-test-suite],
|
case "$with_test_suite" in
|
||||||
[build test suite by default @<:@default=check@:>@])],
|
|
||||||
[case "${withval}" in
|
|
||||||
yes|no|check) ;;
|
yes|no|check) ;;
|
||||||
*) AC_MSG_ERROR([bad value ${withval} for tests option]) ;;
|
*) AC_MSG_ERROR([bad value ${withval} for tests option]) ;;
|
||||||
esac],
|
esac
|
||||||
[withval=check])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([Whether to build test suite by default])
|
AC_MSG_CHECKING([Whether to build test suite by default])
|
||||||
if test "$withval" = "check" ; then
|
if test "$with_test_suite" = "check" ; then
|
||||||
if test -d $srcdir/.git ; then
|
if test -d $srcdir/.git ; then
|
||||||
withval=yes
|
with_test_suite=yes
|
||||||
else
|
else
|
||||||
withval=no
|
with_test_suite=no
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT([$withval])
|
AC_MSG_RESULT([$with_test_suite])
|
||||||
AM_CONDITIONAL([WITH_TESTS], [test "$withval" = "yes"])
|
AM_CONDITIONAL([WITH_TESTS], [test "$with_test_suite" = "yes"])
|
||||||
|
|
||||||
AC_ARG_ENABLE([expensive-tests],
|
AC_ARG_ENABLE([expensive-tests],
|
||||||
[AS_HELP_STRING([--enable-expensive-tests],
|
[AS_HELP_STRING([--enable-expensive-tests],
|
||||||
@ -2121,11 +1990,8 @@ AM_CONDITIONAL([WITH_WIN_ICON], [test "$WINDRES" != ""])
|
|||||||
|
|
||||||
|
|
||||||
dnl Driver-Modules library
|
dnl Driver-Modules library
|
||||||
AC_ARG_WITH([driver-modules],
|
LIBVIRT_ARG_WITH_ALT([DRIVER_MODULES], [build drivers as loadable modules],
|
||||||
[AS_HELP_STRING([--with-driver-modules],
|
[check])
|
||||||
[build drivers as loadable modules @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_driver_modules=check])
|
|
||||||
|
|
||||||
if test "$with_libvirtd" = "no" ; then
|
if test "$with_libvirtd" = "no" ; then
|
||||||
with_driver_modules=no
|
with_driver_modules=no
|
||||||
@ -2187,10 +2053,7 @@ fi
|
|||||||
AM_CONDITIONAL([WITH_NWFILTER], [test "$with_nwfilter" = "yes"])
|
AM_CONDITIONAL([WITH_NWFILTER], [test "$with_nwfilter" = "yes"])
|
||||||
|
|
||||||
dnl check if the interface driver should be compiled
|
dnl check if the interface driver should be compiled
|
||||||
AC_ARG_WITH([interface],
|
LIBVIRT_ARG_WITH([INTERFACE], [host interface driver], [check])
|
||||||
[AS_HELP_STRING([--with-interface],
|
|
||||||
[with host interface driver @<:@default=check@:>@])],
|
|
||||||
[],[with_interface=check])
|
|
||||||
|
|
||||||
dnl Don't compile the interface driver without libvirtd
|
dnl Don't compile the interface driver without libvirtd
|
||||||
if test "$with_libvirtd" = "no" ; then
|
if test "$with_libvirtd" = "no" ; then
|
||||||
@ -2219,18 +2082,20 @@ else
|
|||||||
default_qemu_group=root
|
default_qemu_group=root
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH([qemu-user],
|
LIBVIRT_ARG_WITH_ALT([QEMU_USER], [username to run QEMU system instance as],
|
||||||
[AS_HELP_STRING([--with-qemu-user],
|
['platform dependent'])
|
||||||
[username to run QEMU system instance as
|
LIBVIRT_ARG_WITH_ALT([QEMU_GROUP], [groupname to run QEMU system instance as],
|
||||||
@<:@default=platform dependent@:>@])],
|
['platform dependent'])
|
||||||
[QEMU_USER=${withval}],
|
if test "x$with_qemu_user" = "xplatform dependent" ; then
|
||||||
[QEMU_USER=${default_qemu_user}])
|
QEMU_USER="$default_qemu_user"
|
||||||
AC_ARG_WITH([qemu-group],
|
else
|
||||||
[AS_HELP_STRING([--with-qemu-group],
|
QEMU_USER="$with_qemu_user"
|
||||||
[groupname to run QEMU system instance as
|
fi
|
||||||
@<:@default=platform dependent@:>@])],
|
if test "x$with_qemu_group" = "xplatform dependent" ; then
|
||||||
[QEMU_GROUP=${withval}],
|
QEMU_GROUP="$default_qemu_group"
|
||||||
[QEMU_GROUP=${default_qemu_group}])
|
else
|
||||||
|
QEMU_GROUP="$with_qemu_group"
|
||||||
|
fi
|
||||||
AC_DEFINE_UNQUOTED([QEMU_USER], ["$QEMU_USER"], [QEMU user account])
|
AC_DEFINE_UNQUOTED([QEMU_USER], ["$QEMU_USER"], [QEMU user account])
|
||||||
AC_DEFINE_UNQUOTED([QEMU_GROUP], ["$QEMU_GROUP"], [QEMU group account])
|
AC_DEFINE_UNQUOTED([QEMU_GROUP], ["$QEMU_GROUP"], [QEMU group account])
|
||||||
|
|
||||||
@ -2238,11 +2103,7 @@ AC_PATH_PROG([QEMU_BRIDGE_HELPER], [qemu-bridge-helper], [/usr/libexec/qemu-brid
|
|||||||
[/usr/libexec:/usr/lib/qemu:/usr/lib])
|
[/usr/libexec:/usr/lib/qemu:/usr/lib])
|
||||||
AC_DEFINE_UNQUOTED([QEMU_BRIDGE_HELPER], ["$QEMU_BRIDGE_HELPER"], [QEMU bridge helper])
|
AC_DEFINE_UNQUOTED([QEMU_BRIDGE_HELPER], ["$QEMU_BRIDGE_HELPER"], [QEMU bridge helper])
|
||||||
|
|
||||||
AC_ARG_WITH([macvtap],
|
LIBVIRT_ARG_WITH_ALT([MACVTAP], [enable macvtap device], [check])
|
||||||
[AS_HELP_STRING([--with-macvtap],
|
|
||||||
[enable macvtap device @<:@default=check@:>@])],
|
|
||||||
[with_macvtap=${withval}],
|
|
||||||
[with_macvtap=check])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to compile with macvtap support])
|
AC_MSG_CHECKING([whether to compile with macvtap support])
|
||||||
if test "$with_macvtap" != "no" ; then
|
if test "$with_macvtap" != "no" ; then
|
||||||
@ -2272,11 +2133,7 @@ if test "$with_macvtap" = yes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH([virtualport],
|
LIBVIRT_ARG_WITH_ALT([VIRTUALPORT], [enable virtual port support], [check])
|
||||||
[AS_HELP_STRING([--with-virtualport],
|
|
||||||
[enable virtual port support @<:@default=check@:>@])],
|
|
||||||
[with_virtualport=${withval}],
|
|
||||||
[with_virtualport=check])
|
|
||||||
|
|
||||||
dnl Warn the user and error out if they requested virtualport support with configure
|
dnl Warn the user and error out if they requested virtualport support with configure
|
||||||
dnl options, but the required macvtap support isn't available
|
dnl options, but the required macvtap support isn't available
|
||||||
@ -2467,30 +2324,22 @@ test "x$lv_cv_static_analysis" = xyes && t=1
|
|||||||
AC_DEFINE_UNQUOTED([STATIC_ANALYSIS], [$t],
|
AC_DEFINE_UNQUOTED([STATIC_ANALYSIS], [$t],
|
||||||
[Define to 1 when performing static analysis.])
|
[Define to 1 when performing static analysis.])
|
||||||
|
|
||||||
AC_ARG_WITH([default-editor],
|
LIBVIRT_ARG_WITH_ALT([DEFAULT_EDITOR], [Editor to use for interactive commands], [vi])
|
||||||
[AS_HELP_STRING([--with-default-editor],
|
AC_DEFINE_UNQUOTED([DEFAULT_EDITOR], ["$with_default_editor"], [Default editor to use])
|
||||||
[Editor to use for interactive commands
|
|
||||||
@<:@default=vi@:>@])],
|
|
||||||
[DEFAULT_EDITOR=${withval}],
|
|
||||||
[DEFAULT_EDITOR=vi])
|
|
||||||
AC_DEFINE_UNQUOTED([DEFAULT_EDITOR], ["$DEFAULT_EDITOR"], [Default editor to use])
|
|
||||||
|
|
||||||
AC_ARG_WITH([loader-nvram],
|
LIBVIRT_ARG_WITH_ALT([LOADER_NVRAM],
|
||||||
[AS_HELP_STRING([--with-loader-nvram],
|
[Pass list of pairs of <loader>:<nvram> paths.
|
||||||
[Pass list of pairs of <loader>:<nvram> paths. Both
|
Both pairs and list items are separated by a colon.],
|
||||||
pairs and list items are separated by a colon.
|
[''])
|
||||||
@<:default=paths to OVMF and its clones@:>@])],
|
if test "x$with_loader_nvram" != "xno" && \
|
||||||
[if test "$withval" = "no"; then
|
test "x$with_loader_nvram" != "x" ; then
|
||||||
withval=""
|
l=$(echo $with_loader_nvram | tr ':' '\n' | wc -l)
|
||||||
else
|
if test $(expr $l % 2) -ne 0 ; then
|
||||||
l=`echo $withval | tr ':' '\n' | wc -l`
|
|
||||||
if test "`expr $l % 2`" -ne 0; then
|
|
||||||
AC_MSG_ERROR([Malformed --with-loader-nvram argument])
|
AC_MSG_ERROR([Malformed --with-loader-nvram argument])
|
||||||
fi
|
fi
|
||||||
fi
|
AC_DEFINE_UNQUOTED([DEFAULT_LOADER_NVRAM], [$with_loader_nvram],
|
||||||
AC_DEFINE_UNQUOTED([DEFAULT_LOADER_NVRAM],
|
[List of loader:nvram pairs])
|
||||||
["$withval"],
|
fi
|
||||||
[List of loader:nvram pairs])])
|
|
||||||
|
|
||||||
# Some GNULIB base64 symbols clash with a kerberos library
|
# Some GNULIB base64 symbols clash with a kerberos library
|
||||||
AC_DEFINE_UNQUOTED([isbase64],[libvirt_gl_isbase64],[Hack to avoid symbol clash])
|
AC_DEFINE_UNQUOTED([isbase64],[libvirt_gl_isbase64],[Hack to avoid symbol clash])
|
||||||
@ -2669,10 +2518,10 @@ AC_MSG_NOTICE([ Use -Werror: $set_werror])
|
|||||||
AC_MSG_NOTICE([ Warning Flags: $WARN_CFLAGS])
|
AC_MSG_NOTICE([ Warning Flags: $WARN_CFLAGS])
|
||||||
AC_MSG_NOTICE([ DTrace: $with_dtrace])
|
AC_MSG_NOTICE([ DTrace: $with_dtrace])
|
||||||
AC_MSG_NOTICE([ numad: $with_numad])
|
AC_MSG_NOTICE([ numad: $with_numad])
|
||||||
AC_MSG_NOTICE([ XML Catalog: $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])
|
AC_MSG_NOTICE([ Char device locks: $with_chrdev_lock_files])
|
||||||
AC_MSG_NOTICE([ Default Editor: $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
|
||||||
LIBVIRT_RESULT_HOST_VALIDATE
|
LIBVIRT_RESULT_HOST_VALIDATE
|
||||||
|
@ -21,11 +21,7 @@ AC_DEFUN([LIBVIRT_CHECK_APPARMOR],[
|
|||||||
LIBVIRT_CHECK_LIB([APPARMOR], [apparmor],
|
LIBVIRT_CHECK_LIB([APPARMOR], [apparmor],
|
||||||
[aa_change_profile], [sys/apparmor.h])
|
[aa_change_profile], [sys/apparmor.h])
|
||||||
|
|
||||||
AC_ARG_WITH([apparmor_mount],
|
LIBVIRT_ARG_WITH_ALT([APPARMOR_MOUNT], [set AppArmor mount point], [check])
|
||||||
[AS_HELP_STRING([--with-apparmor-mount],
|
|
||||||
[set AppArmor mount point @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_apparmor_mount=check])
|
|
||||||
|
|
||||||
if test "$with_apparmor" = "yes"; then
|
if test "$with_apparmor" = "yes"; then
|
||||||
AC_DEFINE_UNQUOTED([APPARMOR_DIR],
|
AC_DEFINE_UNQUOTED([APPARMOR_DIR],
|
||||||
|
@ -18,10 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_DRIVER_CHECK_BHYVE],[
|
AC_DEFUN([LIBVIRT_DRIVER_CHECK_BHYVE],[
|
||||||
AC_ARG_WITH([bhyve],
|
LIBVIRT_ARG_WITH([BHYVE], [BHyVe], [check])
|
||||||
[AS_HELP_STRING([--with-bhyve],
|
|
||||||
[add BHyVe support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_bhyve=check])
|
|
||||||
|
|
||||||
if test "$with_bhyve" != "no"; then
|
if test "$with_bhyve" != "no"; then
|
||||||
AC_PATH_PROG([BHYVE], [bhyve], [], [$PATH:/usr/sbin])
|
AC_PATH_PROG([BHYVE], [bhyve], [], [$PATH:/usr/sbin])
|
||||||
|
@ -18,10 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_DRIVER_CHECK_UML],[
|
AC_DEFUN([LIBVIRT_DRIVER_CHECK_UML],[
|
||||||
AC_ARG_WITH([uml],
|
LIBVIRT_ARG_WITH([UML], [UML], [check])
|
||||||
[AS_HELP_STRING([--with-uml],
|
|
||||||
[add UML support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_uml=check])
|
|
||||||
|
|
||||||
if test "$with_libvirtd" = "no" || test "$with_linux" = "no"; then
|
if test "$with_libvirtd" = "no" || test "$with_linux" = "no"; then
|
||||||
if test "$with_uml" = "yes"; then
|
if test "$with_uml" = "yes"; then
|
||||||
|
@ -18,10 +18,7 @@ dnl <http://www.gnu.org/licenses/>.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_DRIVER_CHECK_VZ],[
|
AC_DEFUN([LIBVIRT_DRIVER_CHECK_VZ],[
|
||||||
AC_ARG_WITH([vz],
|
LIBVIRT_ARG_WITH([VZ], [Virtuozzo], [check])
|
||||||
[AS_HELP_STRING([--with-vz],
|
|
||||||
[add Virtuozzo support @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_vz=check])
|
|
||||||
|
|
||||||
if test "$with_vz" = "yes" ||
|
if test "$with_vz" = "yes" ||
|
||||||
test "$with_vz" = "check"; then
|
test "$with_vz" = "check"; then
|
||||||
|
@ -16,10 +16,7 @@ dnl License along with this library. If not, see
|
|||||||
dnl <http://www.gnu.org/licenses/>.
|
dnl <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_CHECK_HOST_VALIDATE], [
|
AC_DEFUN([LIBVIRT_CHECK_HOST_VALIDATE], [
|
||||||
AC_ARG_WITH([host_validate],
|
LIBVIRT_ARG_WITH_ALT([HOST_VALIDATE], [build virt-host-validate], [check])
|
||||||
[AS_HELP_STRING([--with-host-validate],
|
|
||||||
[build virt-host-validate @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_host_validate=check])
|
|
||||||
|
|
||||||
if test "x$with_host_validate" != "xno"; then
|
if test "x$with_host_validate" != "xno"; then
|
||||||
if test "x$with_win" = "xyes"; then
|
if test "x$with_win" = "xyes"; then
|
||||||
|
@ -18,11 +18,9 @@ dnl <http://www.gnu.org/licenses/>.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_CHECK_INIT_SCRIPT],[
|
AC_DEFUN([LIBVIRT_CHECK_INIT_SCRIPT],[
|
||||||
AC_ARG_WITH([init-script],
|
LIBVIRT_ARG_WITH_ALT([INIT_SCRIPT],
|
||||||
[AS_HELP_STRING([--with-init-script@<:@=STYLE@:>@],
|
[Style of init script to install: redhat, systemd,
|
||||||
[Style of init script to install: redhat, systemd, systemd+redhat,
|
systemd+redhat, upstart, check, none], [check])
|
||||||
upstart, check, none @<:@default=check@:>@])],
|
|
||||||
[],[with_init_script=check])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([for init script type])
|
AC_MSG_CHECKING([for init script type])
|
||||||
|
|
||||||
|
@ -54,19 +54,14 @@ AC_DEFUN([LIBVIRT_CHECK_LIB],[
|
|||||||
m4_pushdef([header_name], [$4])
|
m4_pushdef([header_name], [$4])
|
||||||
|
|
||||||
m4_pushdef([check_name_lc], m4_tolower(check_name))
|
m4_pushdef([check_name_lc], m4_tolower(check_name))
|
||||||
m4_pushdef([check_name_dash], m4_translit(check_name_lc, [_], [-]))
|
|
||||||
|
|
||||||
m4_pushdef([config_var], [WITH_]check_name)
|
m4_pushdef([config_var], [WITH_]check_name)
|
||||||
m4_pushdef([make_var], [WITH_]check_name)
|
m4_pushdef([make_var], [WITH_]check_name)
|
||||||
m4_pushdef([cflags_var], check_name[_CFLAGS])
|
m4_pushdef([cflags_var], check_name[_CFLAGS])
|
||||||
m4_pushdef([libs_var], check_name[_LIBS])
|
m4_pushdef([libs_var], check_name[_LIBS])
|
||||||
m4_pushdef([arg_var], [with-]check_name_dash)
|
|
||||||
m4_pushdef([with_var], [with_]check_name_lc)
|
m4_pushdef([with_var], [with_]check_name_lc)
|
||||||
|
|
||||||
m4_divert_text([DEFAULTS], [with_var][=check])
|
LIBVIRT_ARG_WITH(check_name, library_name, [check])
|
||||||
AC_ARG_WITH(check_name_dash,
|
|
||||||
[AS_HELP_STRING([--arg_var],
|
|
||||||
[with lib]]m4_dquote(library_name)[[ support @<:@default=check@:>@])])
|
|
||||||
|
|
||||||
old_LIBS=$LIBS
|
old_LIBS=$LIBS
|
||||||
old_CFLAGS=$CFLAGS
|
old_CFLAGS=$CFLAGS
|
||||||
@ -121,13 +116,11 @@ AC_DEFUN([LIBVIRT_CHECK_LIB],[
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
m4_popdef([with_var])
|
m4_popdef([with_var])
|
||||||
m4_popdef([arg_var])
|
|
||||||
m4_popdef([libs_var])
|
m4_popdef([libs_var])
|
||||||
m4_popdef([cflags_var])
|
m4_popdef([cflags_var])
|
||||||
m4_popdef([make_var])
|
m4_popdef([make_var])
|
||||||
m4_popdef([config_var])
|
m4_popdef([config_var])
|
||||||
|
|
||||||
m4_popdef([check_name_dash])
|
|
||||||
m4_popdef([check_name_lc])
|
m4_popdef([check_name_lc])
|
||||||
|
|
||||||
m4_popdef([header_name])
|
m4_popdef([header_name])
|
||||||
@ -184,21 +177,16 @@ AC_DEFUN([LIBVIRT_CHECK_LIB_ALT],[
|
|||||||
m4_pushdef([header_name_alt], [$8])
|
m4_pushdef([header_name_alt], [$8])
|
||||||
|
|
||||||
m4_pushdef([check_name_lc], m4_tolower(check_name))
|
m4_pushdef([check_name_lc], m4_tolower(check_name))
|
||||||
m4_pushdef([check_name_dash], m4_translit(check_name_lc, [_], [-]))
|
|
||||||
|
|
||||||
m4_pushdef([config_var], [WITH_]check_name)
|
m4_pushdef([config_var], [WITH_]check_name)
|
||||||
m4_pushdef([make_var], [WITH_]check_name)
|
m4_pushdef([make_var], [WITH_]check_name)
|
||||||
m4_pushdef([cflags_var], check_name[_CFLAGS])
|
m4_pushdef([cflags_var], check_name[_CFLAGS])
|
||||||
m4_pushdef([libs_var], check_name[_LIBS])
|
m4_pushdef([libs_var], check_name[_LIBS])
|
||||||
m4_pushdef([arg_var], [with-]check_name_dash)
|
|
||||||
m4_pushdef([with_var], [with_]check_name_lc)
|
m4_pushdef([with_var], [with_]check_name_lc)
|
||||||
m4_pushdef([config_var_alt], [WITH_]check_name_alt)
|
m4_pushdef([config_var_alt], [WITH_]check_name_alt)
|
||||||
m4_pushdef([make_var_alt], [WITH_]check_name_alt)
|
m4_pushdef([make_var_alt], [WITH_]check_name_alt)
|
||||||
|
|
||||||
m4_divert_text([DEFAULTS], [with_var][=check])
|
LIBVIRT_ARG_WITH(check_name, library_name, [check])
|
||||||
AC_ARG_WITH(check_name_dash,
|
|
||||||
[AS_HELP_STRING([--arg_var],
|
|
||||||
[with lib]]m4_dquote(library_name)[[ support @<:@default=check@:>@])])
|
|
||||||
|
|
||||||
old_LIBS=$LIBS
|
old_LIBS=$LIBS
|
||||||
old_CFLAGS=$CFLAGS
|
old_CFLAGS=$CFLAGS
|
||||||
@ -269,14 +257,12 @@ AC_DEFUN([LIBVIRT_CHECK_LIB_ALT],[
|
|||||||
m4_popdef([make_var_alt])
|
m4_popdef([make_var_alt])
|
||||||
m4_popdef([config_var_alt])
|
m4_popdef([config_var_alt])
|
||||||
m4_popdef([with_var])
|
m4_popdef([with_var])
|
||||||
m4_popdef([arg_var])
|
|
||||||
m4_popdef([libs_var])
|
m4_popdef([libs_var])
|
||||||
m4_popdef([cflags_var])
|
m4_popdef([cflags_var])
|
||||||
m4_popdef([make_var])
|
m4_popdef([make_var])
|
||||||
m4_popdef([config_var])
|
m4_popdef([config_var])
|
||||||
|
|
||||||
m4_popdef([check_name_lc])
|
m4_popdef([check_name_lc])
|
||||||
m4_popdef([check_name_dash])
|
|
||||||
|
|
||||||
m4_popdef([header_name_alt])
|
m4_popdef([header_name_alt])
|
||||||
m4_popdef([function_name_alt])
|
m4_popdef([function_name_alt])
|
||||||
@ -314,19 +300,14 @@ AC_DEFUN([LIBVIRT_CHECK_PKG],[
|
|||||||
m4_pushdef([pc_version], [$3])
|
m4_pushdef([pc_version], [$3])
|
||||||
|
|
||||||
m4_pushdef([check_name_lc], m4_tolower(check_name))
|
m4_pushdef([check_name_lc], m4_tolower(check_name))
|
||||||
m4_pushdef([check_name_dash], m4_translit(check_name_lc, [_], [-]))
|
|
||||||
|
|
||||||
m4_pushdef([config_var], [WITH_]check_name)
|
m4_pushdef([config_var], [WITH_]check_name)
|
||||||
m4_pushdef([make_var], [WITH_]check_name)
|
m4_pushdef([make_var], [WITH_]check_name)
|
||||||
m4_pushdef([cflags_var], check_name[_CFLAGS])
|
m4_pushdef([cflags_var], check_name[_CFLAGS])
|
||||||
m4_pushdef([libs_var], check_name[_LIBS])
|
m4_pushdef([libs_var], check_name[_LIBS])
|
||||||
m4_pushdef([arg_var], [with-]check_name_dash)
|
|
||||||
m4_pushdef([with_var], [with_]check_name_lc)
|
m4_pushdef([with_var], [with_]check_name_lc)
|
||||||
|
|
||||||
m4_divert_text([DEFAULTS], [with_var][=check])
|
LIBVIRT_ARG_WITH(check_name, pc_name, [check], pc_version)
|
||||||
AC_ARG_WITH(check_name_dash,
|
|
||||||
[AS_HELP_STRING([--arg_var],
|
|
||||||
[with ]]m4_dquote(pc_name)[[ (>= ]]m4_dquote(pc_version)[[) support @<:@default=check@:>@])])
|
|
||||||
|
|
||||||
fail=0
|
fail=0
|
||||||
if test "x$with_var" != "xno" ; then
|
if test "x$with_var" != "xno" ; then
|
||||||
@ -351,14 +332,12 @@ AC_DEFUN([LIBVIRT_CHECK_PKG],[
|
|||||||
AM_CONDITIONAL(make_var, [test "x$with_var" = "xyes"])
|
AM_CONDITIONAL(make_var, [test "x$with_var" = "xyes"])
|
||||||
|
|
||||||
m4_popdef([with_var])
|
m4_popdef([with_var])
|
||||||
m4_popdef([arg_var])
|
|
||||||
m4_popdef([libs_var])
|
m4_popdef([libs_var])
|
||||||
m4_popdef([cflags_var])
|
m4_popdef([cflags_var])
|
||||||
m4_popdef([make_var])
|
m4_popdef([make_var])
|
||||||
m4_popdef([config_var])
|
m4_popdef([config_var])
|
||||||
|
|
||||||
m4_popdef([check_name_lc])
|
m4_popdef([check_name_lc])
|
||||||
m4_popdef([check_name_dash])
|
|
||||||
|
|
||||||
m4_popdef([pc_version])
|
m4_popdef([pc_version])
|
||||||
m4_popdef([pc_name])
|
m4_popdef([pc_name])
|
||||||
|
@ -16,10 +16,7 @@ dnl License along with this library. If not, see
|
|||||||
dnl <http://www.gnu.org/licenses/>.
|
dnl <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_CHECK_LOGIN_SHELL], [
|
AC_DEFUN([LIBVIRT_CHECK_LOGIN_SHELL], [
|
||||||
AC_ARG_WITH([login_shell],
|
LIBVIRT_ARG_WITH_ALT([LOGIN_SHELL], [build virt-login-shell], [check])
|
||||||
[AS_HELP_STRING([--with-login-shell],
|
|
||||||
[build virt-login-shell @<:@default=check@:>@])])
|
|
||||||
m4_divert_text([DEFAULTS], [with_login_shell=check])
|
|
||||||
|
|
||||||
if test "x$with_login_shell" != "xno"; then
|
if test "x$with_login_shell" != "xno"; then
|
||||||
if test "x$with_linux" != "xyes"; then
|
if test "x$with_linux" != "xyes"; then
|
||||||
|
@ -18,10 +18,9 @@ dnl <http://www.gnu.org/licenses/>.
|
|||||||
dnl
|
dnl
|
||||||
|
|
||||||
AC_DEFUN([LIBVIRT_CHECK_NSS],[
|
AC_DEFUN([LIBVIRT_CHECK_NSS],[
|
||||||
AC_ARG_WITH([nss-plugin],
|
LIBVIRT_ARG_WITH_ALT([NSS_PLUGIN],
|
||||||
[AS_HELP_STRING([--with-nss-plugin],
|
[enable Name Service Switch plugin for resolving guest
|
||||||
[enable Name Service Switch plugin for resolving guest IP addresses])],
|
IP addresses], [check])
|
||||||
[], [with_nss_plugin=check])
|
|
||||||
|
|
||||||
bsd_nss=no
|
bsd_nss=no
|
||||||
fail=0
|
fail=0
|
||||||
|
@ -21,11 +21,7 @@ AC_DEFUN([LIBVIRT_CHECK_SELINUX],[
|
|||||||
LIBVIRT_CHECK_LIB([SELINUX], [selinux],
|
LIBVIRT_CHECK_LIB([SELINUX], [selinux],
|
||||||
[fgetfilecon_raw], [selinux/selinux.h])
|
[fgetfilecon_raw], [selinux/selinux.h])
|
||||||
|
|
||||||
AC_ARG_WITH([selinux_mount],
|
LIBVIRT_ARG_WITH_ALT([SELINUX_MOUNT], [set SELinux mount point], [check])
|
||||||
[AS_HELP_STRING([--with-selinux-mount],
|
|
||||||
[set SELinux mount point @<:@default=check@:>@])],
|
|
||||||
[],
|
|
||||||
[with_selinux_mount=check])
|
|
||||||
|
|
||||||
if test "$with_selinux" = "yes"; then
|
if test "$with_selinux" = "yes"; then
|
||||||
# libselinux changed signatures between 2.2 and 2.3
|
# libselinux changed signatures between 2.2 and 2.3
|
||||||
|
@ -20,10 +20,9 @@ dnl
|
|||||||
AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[
|
AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[
|
||||||
LIBVIRT_CHECK_PKG([WIRESHARK_DISSECTOR], [wireshark], [1.11.3])
|
LIBVIRT_CHECK_PKG([WIRESHARK_DISSECTOR], [wireshark], [1.11.3])
|
||||||
|
|
||||||
AC_ARG_WITH([ws-plugindir],
|
LIBVIRT_ARG_WITH_ALT([WS_PLUGINDIR],
|
||||||
[AS_HELP_STRING([--with-ws-plugindir],
|
[wireshark plugins directory for use when installing
|
||||||
[wireshark plugins directory for use when installing wireshark plugin])],
|
wireshark plugin], [check])
|
||||||
[], [with_ws_plugindir=check])
|
|
||||||
|
|
||||||
dnl Check for system location of wireshark plugins
|
dnl Check for system location of wireshark plugins
|
||||||
if test "x$with_wireshark_dissector" != "xno" ; then
|
if test "x$with_wireshark_dissector" != "xno" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user