view tools/check/check_x11_devel @ 19834:edd603e77be4

tools: fix x11 check

X.org is installed in /usr/X11R7.
Attached patch covers this in the x11 check.
Xen has no direct X11 dependency
(it's inherited from SDL and SDL is optional for qemu-dm)
so warn but don't fail if no X11 is installed.
Fixes build problem on distributions which build their packages (*BSD
and Gentoo).

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 12:59:46 2009 +0100 (2009-06-25)
parents bcae9d2cc2f8
line source
1 #!/bin/sh
4 . ./funcs.sh
6 has_header X11/keysymdef.h || \
7 has_header /usr/X11R6/include/X11/keysymdef.h || \
8 has_header /usr/X11R7/include/X11/keysymdef.h || \
9 warning "can't find X11 headers"