]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix win32 platform build
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Sep 2009 12:31:23 +0000 (13:31 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 14 Sep 2009 13:53:21 +0000 (14:53 +0100)
* configure.in: Only define WITH_SECRETS if libvirtd is present
* src/Makefile.am: Only build secrets driver if WITH_SECRETS is
  defined. Always add SECRET_DRIVER_SOURCES to EXTRA_DIST

configure.in
src/Makefile.am

index 120f7e7ea2896f026c66d0546820be02727ec890..fad12978d95fb24e3f2322c4136570be44b5635b 100644 (file)
@@ -1062,6 +1062,17 @@ AM_CONDITIONAL([WITH_NETCF], [test "$with_netcf" = "yes"])
 AC_SUBST([NETCF_CFLAGS])
 AC_SUBST([NETCF_LIBS])
 
+
+with_secrets=yes
+if test "$with_libvirtd" = "no"; then
+  with_secrets=no
+fi
+if test "$with_secrets" = "yes" ; then
+  AC_DEFINE_UNQUOTED([WITH_SECRETS], 1, [whether local secrets management driver is available])
+fi
+AM_CONDITIONAL([WITH_SECRETS], [test "$with_secrets" = "yes"])
+
+
 AC_ARG_WITH([storage-fs],
 [  --with-storage-fs           with FileSystem backend for the storage driver (on)],[],[with_storage_fs=check])
 AC_ARG_WITH([storage-lvm],
index 14a3a635a2df25afcede389b47567b9bad0fd7ea..69f5ee7870ac5a2a3090023ac63063eea1e234fb 100644 (file)
@@ -461,6 +461,7 @@ endif
 libvirt_driver_interface_la_SOURCES = $(INTERFACE_DRIVER_SOURCES)
 endif
 
+if WITH_SECRETS
 if WITH_DRIVER_MODULES
 mod_LTLIBRARIES += libvirt_driver_secret.la
 else
@@ -471,6 +472,7 @@ if WITH_DRIVER_MODULES
 libvirt_driver_secret_la_LDFLAGS = -module -avoid-version
 endif
 libvirt_driver_secret_la_SOURCES = $(SECRET_DRIVER_SOURCES)
+endif
 
 # Needed to keep automake quiet about conditionals
 libvirt_driver_storage_la_SOURCES =
@@ -574,6 +576,7 @@ EXTRA_DIST +=                                                       \
                $(NODE_DEVICE_DRIVER_HAL_SOURCES)               \
                $(NODE_DEVICE_DRIVER_DEVKIT_SOURCES)            \
                $(SECURITY_DRIVER_SELINUX_SOURCES)              \
+               $(SECRET_DRIVER_SOURCES)                        \
                $(VBOX_DRIVER_EXTRA_DIST)
 
 #