+Tue May 29 15:41:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
+
+ * TODO: Added a note about requiring C++ compiler because of a
+ possible problem with libtool autoconf macros.
+ * docs/examples/Makefile.am, proxy/Makefile.am, qemud/Makefile.am,
+ src/Makefile.am, tests/Makefile.am: Pass $(WARN_CFLAGS) when
+ linking, so if -fstack-protector is there, gcc will link to
+ the stack protector library.
+ * tests/xencapstest.c: Allow this test to compile when Xen
+ libraries are not enabled.
+
Tue May 29 15:54:17 CEST 2007 Daniel Veillard <veillard@redhat.com>
* src/virsh.c src/xen_internal.c src/xend_internal.c: memory leaks
- now that libxml2 is linked in, drop hash.[ch] and get back to libxml2 ones ?
same for the buffers
+Autoconf:
+- On Debian and other platforms, C++ compiler is required because
+ autoconf macros to detect libtool depend on it. (This is probably
+ an autoconf or libtool m4 macro bug, and the fact that it happens
+ on Debian is a red herring).
SUBDIRS=python
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include
DEPS = $(top_builddir)/src/libvirt.la
-LDADDS = @STATIC_BINARIES@ $(top_builddir)/src/libvirt.la
+LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la
rebuild: examples.xml index.html
@top_srcdir@/src/xen_internal.c @top_srcdir@/src/virterror.c \
@top_srcdir@/src/sexpr.c @top_srcdir@/src/xml.c \
@top_srcdir@/src/xs_internal.c
-libvirt_proxy_LDFLAGS =
+libvirt_proxy_LDFLAGS = $(WARN_CFLAGS)
libvirt_proxy_DEPENDENCIES =
libvirt_proxy_LDADD =
$(WARN_CFLAGS) -DLOCAL_STATE_DIR="\"$(localstatedir)\"" \
-DSYSCONF_DIR="\"$(sysconfdir)\"" \
-DQEMUD_PID_FILE="\"$(QEMUD_PID_FILE)\""
-libvirt_qemud_LDFLAGS = $(LIBXML_LIBS) $(SYSFS_LIBS)
+libvirt_qemud_LDFLAGS = $(WARN_CFLAGS) $(LIBXML_LIBS) $(SYSFS_LIBS)
libvirt_qemud_DEPENDENCIES =
libvirt_qemud_LDADD =
bin_PROGRAMS = virsh
virsh_SOURCES = virsh.c console.c console.h
-virsh_LDFLAGS = $(COVERAGE_LDFLAGS)
+virsh_LDFLAGS = $(WARN_CFLAGS) $(COVERAGE_LDFLAGS)
virsh_DEPENDENCIES = $(DEPS)
virsh_LDADD = $(LDADDS) $(VIRSH_LIBS)
virsh_CFLAGS = $(COVERAGE_CFLAGS)
LDADDS = \
@STATIC_BINARIES@ \
@LIBXML_LIBS@ \
+ $(WARN_CFLAGS) \
$(LIBVIRT) \
$(COVERAGE_LDFLAGS)
#include <stdio.h>
+#include <stdlib.h>
+
+#include "config.h"
+
+#ifdef WITH_XEN
+
#include <string.h>
#include "xml.h"
exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
+
+#else /* !WITH_XEN */
+
+int
+main (void)
+{
+ exit (EXIT_SUCCESS);
+}
+
+#endif /* !WITH_XEN */