include/prereq.mk: add RequireCHeader helper
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 9 Jan 2023 13:23:23 +0000 (14:23 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 9 Jan 2023 20:25:06 +0000 (21:25 +0100)
commit35135842ca8b633c0f8ee32b70eee92d918345d6
treeb72f90c92b7f52a876620cb2b312523e4debc47d
parentf1aa8f34ffe3af1bd922ca8e92f8726dd883b7f9
include/prereq.mk: add RequireCHeader helper

Add RequireCHeader helper that will try to compile a fake c program with
the requested header included.

This is useful to check if a specific header is present in the system
without checking for the specific path.

This is a generilized version of the current ncurses test.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
include/prereq.mk