]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:waf: Move HAVE_NETGROUP to wscript
authorAndreas Schneider <asn@samba.org>
Fri, 19 Jan 2018 08:32:49 +0000 (09:32 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 22 Jan 2018 11:26:20 +0000 (12:26 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238

Pair-Programmed-With: Guenther Deschner <gd@samba.org>

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/include/includes.h
source3/wscript

index e82bfad4147bea6fe456e55b132b25b243c010a5..e2fb8e62e417e158d3ada2c3e3f84262fb9c1871 100644 (file)
 #include <rpc/rpc.h>
 #endif
 
-#if defined(HAVE_YP_GET_DEFAULT_DOMAIN) && defined(HAVE_SETNETGRENT) && defined(HAVE_ENDNETGRENT) && defined(HAVE_GETNETGRENT)
-#define HAVE_NETGROUP 1
-#endif
-
 #if defined (HAVE_NETGROUP)
 #if defined(HAVE_RPCSVC_YP_PROT_H)
 /*
index e81a212b44837f03a796f76f8face1b205160d75..3722b5a56ecb8c2a75d60fce5e86305f2280230b 100644 (file)
@@ -611,6 +611,11 @@ msg.msg_accrightslen = sizeof(fd);
                     headers='netdb.h netgroup.h',
                     cflags=netgrent_cflags)
 
+    if (conf.CONFIG_SET('HAVE_YP_GET_DEFAULT_DOMAIN') and
+        conf.CONFIG_SET('HAVE_SETNETGRENT') and
+        conf.CONFIG_SET('HAVE_ENDNETGRENT') and
+        conf.CONFIG_SET('HAVE_GETNETGRENT')):
+           conf.DEFINE('HAVE_NETGROUP', '1')
 
     # Look for CUPS
     if Options.options.with_cups: