configure: fix detection for xattr.h on modern distributions
authorAvi Kivity <avi@redhat.com>
Wed, 9 Nov 2011 12:44:52 +0000 (14:44 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 9 Nov 2011 18:06:20 +0000 (12:06 -0600)
commit4f26f2b6f2fba52b13f4c2ad1790f46c96a0923e
tree60dd9786e1b5504d84a44a3c50f54ae31815cd1a
parent1bf6ccd372aeb8e1a36da35fa15cf24e42f7e0b7
configure: fix detection for xattr.h on modern distributions

Modern distributions place xattr.h in /usr/include/sys, and fold
libattr.so into libc.  They also don't have an ENOATTR.

Make configure detect this, and add a qemu-xattr.h file that
directs the #include to the right place.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure
hw/9pfs/virtio-9p-handle.c
hw/9pfs/virtio-9p-local.c
hw/9pfs/virtio-9p-posix-acl.c
hw/9pfs/virtio-9p-xattr.h
linux-user/syscall.c
qemu-xattr.h [new file with mode: 0644]