s3-waf: Check for broken nisplus include files
authorKai Blin <kai@samba.org>
Mon, 31 May 2010 06:35:58 +0000 (08:35 +0200)
committerKai Blin <kai@samba.org>
Mon, 31 May 2010 20:26:30 +0000 (22:26 +0200)
source3/wscript

index a011a524332f8e48a9de741a84f16086f2c7a33d..ee073118f9c96ecb1d5055f3d02842a3aa69a57a 100644 (file)
@@ -202,6 +202,9 @@ main() {
         conf.CHECK_CODE('uint32 testvar;', 'HAVE_INT16_FROM_RPC_RPC_H',
                         headers='sys/types.h rpc/rpc.h',
                         msg="Checking for uint32 typedef included by rpc/rpc.h")
+    conf.CHECK_CODE('int i;', 'BROKEN_NISPLUS_INCLUDE_FILES',
+                    headers='sys/types.h sys/acl.h rpcsvc/nis.h',
+                    msg="Checking for broken nisplus include files")
 
     # Check if the compiler will optimize out functions
     conf.CHECK_CODE('''