+Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
+
+ * configure.in, qemud/Makefile.am: Added a --without-libvirtd
+ configure option.
+
Thu Dec 6 10:35:41 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* libvirt.spec.in: Fix macros build on RHEL distros
[ --with-test add test driver support (on)],[],[with_test=yes])
AC_ARG_WITH(remote,
[ --with-remote add remote driver support (on)],[],[with_remote=yes])
+AC_ARG_WITH(libvirtd,
+[ --with-libvirtd add libvirtd support (on)],[],[with_libvirtd=yes])
dnl
dnl specific tests to setup DV devel environments with debug etc ...
AM_CONDITIONAL(WITH_PROXY,[test "$with_xen_proxy" = "yes"])
+dnl Enable building libvirtd?
+AM_CONDITIONAL(WITH_LIBVIRTD,[test "x$with_libvirtd" = "xyes"])
+
dnl Check for gettext
AM_GNU_GETTEXT_VERSION([0.14.1])
AM_GNU_GETTEXT([external])
AC_MSG_NOTICE([ OpenVZ: $with_openvz])
AC_MSG_NOTICE([ Test: $with_test])
AC_MSG_NOTICE([ Remote: $with_remote])
+AC_MSG_NOTICE([Libvirtd: $with_libvirtd])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([Libraries])
AC_MSG_NOTICE([])
## Process this file with automake to produce Makefile.in
-UUID=$(shell uuidgen)
-
-sbin_PROGRAMS = libvirtd
-
-confdir = $(sysconfdir)/libvirt/
-conf_DATA = libvirtd.conf
-
# Distribute the generated files so that rpcgen isn't required on the
# target machine (although almost any Unix machine will have it).
EXTRA_DIST = libvirtd.init.in libvirtd.sysconf default-network.xml \
remote_dispatch_proc_switch.h \
mdns.c mdns.h \
libvirtd.sasl \
- $(conf_DATA)
+ libvirtd.conf
+
+if RPCGEN
+.x.c:
+ rm -f $@
+ rpcgen -c -o $@ $<
+if GLIBC_RPCGEN
+ mv $@ $@.bak
+ perl -w rpcgen_fix.pl < $@.bak > $@
+endif
+
+.x.h:
+ rm -f $@
+ rpcgen -h -o $@ $<
+endif
+
+remote_protocol.c: remote_protocol.h
+
+if WITH_LIBVIRTD
+
+UUID=$(shell uuidgen)
+
+sbin_PROGRAMS = libvirtd
+
+confdir = $(sysconfdir)/libvirt/
+conf_DATA = libvirtd.conf
libvirtd_SOURCES = \
qemud.c internal.h \
libvirtd_DEPENDENCIES = ../src/libvirt.la
libvirtd_LDADD = ../src/libvirt.la ../gnulib/lib/libgnu.la
-
if HAVE_POLKIT
policydir = $(datadir)/PolicyKit/policy
policy_DATA = libvirtd.policy
uninstall-data-sasl:
endif
-if RPCGEN
-.x.c:
- rm -f $@
- rpcgen -c -o $@ $<
-if GLIBC_RPCGEN
- mv $@ $@.bak
- perl -w rpcgen_fix.pl < $@.bak > $@
-endif
-
-.x.h:
- rm -f $@
- rpcgen -h -o $@ $<
-endif
-
-remote_protocol.c: remote_protocol.h
-
remote.c: remote_dispatch_prototypes.h \
remote_dispatch_localvars.h \
remote_dispatch_proc_switch.h
uninstall-init:
endif # DBUS_INIT_SCRIPTS_RED_HAT
+
+endif # WITH_LIBVIRTD
\ No newline at end of file