s3-waf: move the KRB5_DEPRECATED configure check out of lib/replace
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Feb 2011 05:31:35 +0000 (16:31 +1100)
committerGünther Deschner <gd@samba.org>
Wed, 16 Feb 2011 23:55:56 +0000 (00:55 +0100)
this needs to be in souce3/, as otherwise it can't handle an in-tree
kerberos library

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

lib/replace/wscript
source3/wscript

index b9921c9b9ccab4deae5eef343fc208d94fc9f426..b1aad69fb76288bc7970b8015974072c4a415846 100644 (file)
@@ -280,14 +280,6 @@ def configure(conf):
                         define = 'REPLACE_STRPTIME',
                         )
 
-    if conf.CONFIG_SET('HAVE_KRB5_H'):
-        # Check for KRB5_DEPRECATED handling
-        conf.CHECK_CODE('''#define KRB5_DEPRECATED 1
-#include <krb5.h>''',
-                        '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)
 
     conf.CHECK_CODE('#include "test/snprintf.c"',
index c87fb456ae16e67557ccf40e8dbb8dec1e66597d..4938f165f257d36a9277c4c89165512bda010832 100644 (file)
@@ -759,6 +759,12 @@ return krb5_kt_resolve(context, "WRFILE:api", &keytab);
             headers='krb5.h', lib='krb5', execute=True,
             msg="Checking whether the WRFILE:-keytab is supported");
 
+        # Check for KRB5_DEPRECATED handling
+        conf.CHECK_CODE('''#define KRB5_DEPRECATED 1
+#include <krb5.h>''',
+        'HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER', addmain=False,
+        link=False,
+        msg="Checking for KRB5_DEPRECATED define taking an identifier")
     else:
         conf.SET_TARGET_TYPE('krb5', 'EMPTY')
         conf.SET_TARGET_TYPE('gssapi', 'EMPTY')