From a0a21af91834d8f75bd32218e30e419e70b0a002 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 15 Sep 2014 11:01:21 +1000 Subject: ctdb-build: Add some missing configure checks Fail configure if thread_setsched() is unavailable on AIX or if sched_setscheduler() is unavailable on other platforms. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/wscript | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ctdb/wscript') diff --git a/ctdb/wscript b/ctdb/wscript index 8cb70a3f0e..8951f79df8 100755 --- a/ctdb/wscript +++ b/ctdb/wscript @@ -80,6 +80,16 @@ def configure(conf): conf.RECURSE('lib/tdb') conf.RECURSE('lib/socket_wrapper') + conf.CHECK_HEADERS('sched.h') + conf.CHECK_HEADERS('procinfo.h') + if sys.platform.startswith('aix') and not conf.CHECK_FUNCS('thread_setsched'): + Logs.error('Need thread_setsched() on AIX') + sys.exit(1) + elif not conf.CHECK_FUNCS('sched_setscheduler'): + Logs.error('Need sched_setscheduler()') + sys.exit(1) + conf.CHECK_FUNCS('mlockall') + have_pmda = False if Options.options.ctdb_pmda: pmda_support = True -- cgit