]> xenbits.xensource.com Git - libvirt.git/commit
build: fix VPATH builds
authorEric Blake <eblake@redhat.com>
Mon, 26 Jul 2010 16:38:30 +0000 (10:38 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 26 Jul 2010 18:06:48 +0000 (12:06 -0600)
commit4018a026b2b4b50bfc5e4c35dabb828ebf6cc3f7
treee7e993d05be28896c62a4af110fd76121dd4c353
parent46bcdb960dd5d725ec568a32d4ef5b9c175c80d3
build: fix VPATH builds

After the recent libvirt-qemu library addition, VPATH builds fail with:

  CC     libvirt_qemu_la-libvirt-qemu.lo
In file included from ../../src/libvirt-qemu.c:29:
../../include/libvirt/libvirt-qemu.h:17:22: error: libvirt.h: No such file or directory
...
  CCLD   libvirt-qmeu.la
/usr/bin/ld: cannot open linker script file libvirt_qemu.syms: No such file or directory

This fixes both issues (there are still some documentation VPATH issues,
but those don't show up with 'make check').

* configure.ac (LIBVIRT_QEMU_SYMBOL_FILE): While libvirt.syms is
generated and lives in $(builddir), libvirt_qemu.syms is static
and lives in $(srcdir).
* include/libvirt/libvirt-qemu.h (includes): Pull in libvirt.h via
the public location, since this is a public header.
configure.ac
include/libvirt/libvirt-qemu.h