From b5b593108f9d5a47729a3e5cbabb8ac3ddd5a72d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 4 Mar 2008 13:29:36 +0000 Subject: tools: Compile xentop only if curses are available. Signed-off-by: Samuel Thibault --- tools/xenstat/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/xenstat') diff --git a/tools/xenstat/Makefile b/tools/xenstat/Makefile index 1daa628bcb..5fc3b52df5 100644 --- a/tools/xenstat/Makefile +++ b/tools/xenstat/Makefile @@ -6,8 +6,10 @@ SUBDIRS += libxenstat # This doesn't cross-compile (cross-compile environments rarely have curses) ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) +ifeq ($(wildcard /usr/include/curses.h),/usr/include/curses.h) SUBDIRS += xentop endif +endif .PHONY: all install clean -- cgit v1.2.3