Build ltt without GTK if GTK is not available

This commit is contained in:
Eric Andersen 2006-04-06 22:13:51 +00:00
parent fbe47cd333
commit 39027ff8d2
1 changed files with 4 additions and 0 deletions

View File

@ -28,10 +28,14 @@ $(LTT_DIR1)/.unpacked: $(DL_DIR)/$(LTT_SOURCE)
toolchain/patch-kernel.sh $(LTT_DIR1) package/ltt ltt\*.patch
touch $(LTT_DIR1)/.unpacked
# Build without GTK if not available
LTT_WITHOUT_GTK:=$(shell which gtk-config >& /dev/null || echo "--without-gtk")
$(LTT_DIR1)/.configured: $(LTT_DIR1)/.unpacked
(cd $(LTT_DIR1); rm -rf config.cache; \
./configure \
--prefix=$(TOOL_BUILD_DIR) \
$(LTT_WITHOUT_GTK) \
);
touch $(LTT_DIR1)/.configured