From: Richard W.M. Jones Date: Thu, 6 Dec 2007 16:34:48 +0000 (+0000) Subject: Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=21e0a86f254e8eefe2967d6f3621db7a9181fdc1;p=libvirt.git Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones * configure.in, qemud/Makefile.am: Added a --without-libvirtd configure option. --- diff --git a/ChangeLog b/ChangeLog index 90f28d18c8..a512758e29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 6 16:30:00 UTC 2007 Richard W.M. Jones + + * configure.in, qemud/Makefile.am: Added a --without-libvirtd + configure option. + Thu Dec 6 10:35:41 EST 2007 Daniel P. Berrange * libvirt.spec.in: Fix macros build on RHEL distros diff --git a/configure.in b/configure.in index 35db64d086..811e1d6d45 100644 --- a/configure.in +++ b/configure.in @@ -131,6 +131,8 @@ AC_ARG_WITH(test, [ --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 ... @@ -636,6 +638,9 @@ AC_MSG_RESULT([$with_xen_proxy]) 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]) @@ -697,6 +702,7 @@ AC_MSG_NOTICE([ QEMU: $with_qemu]) 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([]) diff --git a/qemud/Makefile.am b/qemud/Makefile.am index ef940014b7..db6adb18a7 100644 --- a/qemud/Makefile.am +++ b/qemud/Makefile.am @@ -1,12 +1,5 @@ ## 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 \ @@ -18,7 +11,32 @@ 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 \ @@ -43,7 +61,6 @@ libvirtd_LDFLAGS = $(WARN_CFLAGS) $(LIBXML_LIBS) $(GNUTLS_LIBS) $(SASL_LIBS) \ 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 @@ -91,22 +108,6 @@ install-data-sasl: 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 @@ -149,3 +150,5 @@ install-init: uninstall-init: endif # DBUS_INIT_SCRIPTS_RED_HAT + +endif # WITH_LIBVIRTD \ No newline at end of file