From: Felix Fietkau Date: Sun, 23 Jul 2006 23:02:37 +0000 (+0000) Subject: add ncurses to prereq checks X-Git-Tag: reboot~30718^2~380 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=07eaf1e1b1c03d2c9308bdba4ec0fa32bbb96a48;p=openwrt%2Fopenwrt.git add ncurses to prereq checks SVN-Revision: 4244 --- diff --git a/openwrt/include/prereq.mk b/openwrt/include/prereq.mk index 6642ce40e3..e514855a67 100644 --- a/openwrt/include/prereq.mk +++ b/openwrt/include/prereq.mk @@ -84,6 +84,16 @@ $(eval $(call Require,working-g++, \ No working GNU C++ Compiler (g++) was found on your system. \ )) +define Require/ncurses + echo 'int main(int argc, char **argv) { initscr(); return 0; }' | \ + gcc -include ncurses.h -x c -o $(TMP_DIR)/a.out -lncurses - +endef + +$(eval $(call Require,ncurses, \ + No ncurses development files were not found on your system. \ +)) + + define Require/zlib echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \ gcc -include zlib.h -x c -o $(TMP_DIR)/a.out -lz -