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>
This commit is contained in:
Avi Kivity 2011-11-09 14:44:52 +02:00 committed by Anthony Liguori
parent 1bf6ccd372
commit 4f26f2b6f2
7 changed files with 45 additions and 7 deletions

View file

@ -71,7 +71,7 @@ int __clone2(int (*fn)(void *), void *child_stack_base,
#include <sys/epoll.h>
#endif
#ifdef CONFIG_ATTR
#include <attr/xattr.h>
#include "qemu-xattr.h"
#endif
#define termios host_termios