summaryrefslogtreecommitdiff
path: root/util/kconfig/mconf-cfg.sh
diff options
context:
space:
mode:
authorIdwer Vollering <vidwer@gmail.com>2021-07-28 20:15:29 +0200
committerMartin Roth <martinroth@google.com>2021-08-06 15:35:39 +0000
commitd78af11f72d263d0c8bab8d3aafb34fc0984564a (patch)
tree2f35716a4ebde2072f3cf9b64b0a68251f1a5e02 /util/kconfig/mconf-cfg.sh
parenteef442d0c1d4bab616aaa077d80a56c64cac6f1e (diff)
util/kconfig: detect ncurses on FreeBSD
Even though pkg-config might be installed, it might or will not return true in the checks whether 'PKG' or 'PKG2' is installed. Extend the script to look in another location for ncurses.h Signed-off-by: Idwer Vollering <vidwer@gmail.com> Change-Id: I4344ba2116c0b8618357db4248d993509cbb666e Reviewed-on: https://review.coreboot.org/c/coreboot/+/56677 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/kconfig/mconf-cfg.sh')
-rwxr-xr-xutil/kconfig/mconf-cfg.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/kconfig/mconf-cfg.sh b/util/kconfig/mconf-cfg.sh
index b520e407a8..2047e626b4 100755
--- a/util/kconfig/mconf-cfg.sh
+++ b/util/kconfig/mconf-cfg.sh
@@ -33,6 +33,12 @@ if [ -f /usr/include/ncurses/ncurses.h ]; then
exit 0
fi
+# We'll want to be able to build on (Free)BSD:
+if [ -f /usr/include/ncurses.h ]; then
+ echo libs=\"-lncurses\"
+ exit 0
+fi
+
# As a final fallback before giving up, check if $HOSTCC knows of a default
# ncurses installation (e.g. from a vendor-specific sysroot).
if echo '#include <ncurses.h>' | ${HOSTCC} -E - >/dev/null 2>&1; then