The targets need various headers, symbols and types.
Encode this in the build system.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
__fpurge
fpurge
__fpending
+ sched_getscheduler
secure_getenv
__secure_getenv
eaccess
############################################################
-opt = get_option('build-schedutils').allowed()
+opt = get_option('build-schedutils') \
+ .require(conf.get('HAVE_SCHED_GETSCHEDULER').to_string() == '1') \
+ .require(conf.get('HAVE_SYS_PRCTL_H').to_string() == '1') \
+ .require(conf.get('HAVE_CPU_SET_T').to_string() == '1') \
+ .allowed()
exe = executable(
'chrt',
'schedutils/chrt.c',