build: Remove _SAMBA_WAF_BUILD_
authorAndrew Bartlett <abartlet@samba.org>
Wed, 7 Sep 2011 22:46:42 +0000 (08:46 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 7 Oct 2011 06:45:20 +0000 (17:45 +1100)
The _SAMBA_BUILD_ macro can pick the difference between autoconf and waf builds now

Andrew Bartlett

source3/passdb/machine_account_secrets.c
wscript

index e1b7855b01041ca664f1de3f368abf2376d1f73f..16b563c2bbb06f4b7c388488a333dfd9f766709b 100644 (file)
@@ -57,7 +57,7 @@ bool secrets_store_domain_sid(const char *domain, const struct dom_sid  *sid)
 {
        bool ret;
 
-#ifdef _SAMBA_WAF_BUILD_
+#if _SAMBA_BUILD_ == 4
        if (strequal(domain, get_global_sam_name()) &&
            (pdb_capabilities() & PDB_CAP_ADS)) {
                /* If we have a ADS-capable passdb backend, we
@@ -81,7 +81,7 @@ bool secrets_fetch_domain_sid(const char *domain, struct dom_sid  *sid)
        struct dom_sid  *dyn_sid;
        size_t size = 0;
 
-#ifdef _SAMBA_WAF_BUILD_
+#if _SAMBA_BUILD_ == 4
        if (strequal(domain, get_global_sam_name()) &&
            (pdb_capabilities() & PDB_CAP_ADS)) {
                struct pdb_domain_info *domain_info;
@@ -118,7 +118,7 @@ bool secrets_store_domain_guid(const char *domain, struct GUID *guid)
 {
        fstring key;
 
-#ifdef _SAMBA_WAF_BUILD_
+#if _SAMBA_BUILD_ == 4
        if (strequal(domain, get_global_sam_name()) &&
            (pdb_capabilities() & PDB_CAP_ADS)) {
                /* If we have a ADS-capable passdb backend, we
@@ -141,7 +141,7 @@ bool secrets_fetch_domain_guid(const char *domain, struct GUID *guid)
        size_t size = 0;
        struct GUID new_guid;
 
-#ifdef _SAMBA_WAF_BUILD_
+#if _SAMBA_BUILD_ == 4
        if (strequal(domain, get_global_sam_name()) &&
            (pdb_capabilities() & PDB_CAP_ADS)) {
                struct pdb_domain_info *domain_info;
diff --git a/wscript b/wscript
index 214c398e70bc6fa179756d850d1132e4cd7d0e9b..fb9cc4096d04f5e2836d5c400b956443b453cd21 100755 (executable)
--- a/wscript
+++ b/wscript
@@ -43,7 +43,6 @@ def configure(conf):
     version = samba_version.load_version(env=conf.env)
 
     conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
-    conf.DEFINE('_SAMBA_WAF_BUILD_', version.MAJOR)
     conf.DEFINE('_SAMBA_BUILD_', version.MAJOR, add_to_cflags=True)
     conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)