s3-waf: move the KRB5_DEPRECATED check into lib/replace
authorAndrew Tridgell <tridge@samba.org>
Mon, 12 Apr 2010 06:40:54 +0000 (00:40 -0600)
committerKai Blin <kai@samba.org>
Thu, 20 May 2010 20:16:13 +0000 (22:16 +0200)
this needs to be with the krb5.h check

lib/replace/wscript
source3/wscript

index ff41ce67c43431e17992c694927a2989ab25a103..4bafcadbd40f3300083cf7062880ce9c987d0a5d 100644 (file)
@@ -35,7 +35,7 @@ def configure(conf):
 
     conf.CHECK_HEADERS('crypt.h locale.h acl/libacl.h compat.h')
     conf.CHECK_HEADERS('acl/libacl.h attr/xattr.h compat.h ctype.h dustat.h')
-    conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h langinfo.h')
+    conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')
     conf.CHECK_HEADERS('libaio.h locale.h ndir.h pwd.h')
     conf.CHECK_HEADERS('shadow.h sys/acl.h')
     conf.CHECK_HEADERS('sys/attributes.h sys/capability.h sys/dir.h sys/epoll.h')
index c3652fd48d79d33e7a6e338f393115b6019771b3..2275f88f1d100b0afdd8efae24f73d1afbcd52f7 100644 (file)
@@ -352,13 +352,6 @@ updwtmp updwtmpx utimensat vsyslog _write __write __xstat
         if conf.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
             conf.env['WINBIND_KRB5_LOCATOR'] = 'bin/winbind_krb5_locator.so'
 
-        # 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_FUNCS_IN('_et_list', 'com_err')
         conf.CHECK_FUNCS_IN('krb5_encrypt_data', 'k5crypto')
         conf.CHECK_FUNCS_IN('crypto', 'des_set_key')