From 561fccc5e3918e0a4e7d17dc480b65c53998f525 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 19 Mar 2017 19:47:15 +0100 Subject: darwin: brew users must install pkg-config, so that make kerneloconfig works --- scripts/prereq.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/prereq.sh b/scripts/prereq.sh index 195acd2be..e5e314b6a 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -415,6 +415,17 @@ fi rm test.c test 2>/dev/null rm Makefile.tmp 2>/dev/null +# for make kernelconfig pkg-config is required to find ncurses +if [ $os = "Darwin" ]; then + printf " ---> checking if pkg-config is installed.. " + if ! which pkg-config >/dev/null 2>&1; then + printf "not found\n" + out=1 + else + printf "found\n" + fi +fi + # error out on any required prerequisite if [ $out -ne 0 ]; then exit -- cgit v1.2.3