diff options
-rw-r--r-- | source3/include/includes.h | 4 | ||||
-rw-r--r-- | source3/wscript | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 58bfaa719a1..0a850ff3c57 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -91,10 +91,6 @@ #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) /* diff --git a/source3/wscript b/source3/wscript index 6ddb49ae650..02a33c61bb2 100644 --- a/source3/wscript +++ b/source3/wscript @@ -634,6 +634,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: |