From d70a7befb6dd2168c31a657fc0c6ab3b5f69c91e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 12 Apr 2010 17:46:01 +1000 Subject: s4-waf: move the KRB5_DEPRECATED check into lib/replace this needs to be with the krb5.h check for the source3 build --- lib/replace/wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/replace') diff --git a/lib/replace/wscript b/lib/replace/wscript index bfe9142669..727682677c 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -176,6 +176,13 @@ def configure(conf): msg='Checking for working strptime'): conf.DEFINE('REPLACE_STRPTIME', 1) + if conf.CONFIG_SET('HAVE_KRB5_H'): + # Check for KRB5_DEPRECATED handling + conf.CHECK_CODE('''#define KRB5_DEPRECATED 1 +#include ''', + 'HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER', addmain=False, + link=False, + msg="Checking for KRB5_DEPRECATED define taking an identifier") conf.CHECK_CODE('gettimeofday(NULL, NULL)', 'HAVE_GETTIMEOFDAY_TZ', execute=False) -- cgit