summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-01 19:22:04 +0100
committerGünther Deschner <gd@samba.org>2011-02-01 23:21:50 +0100
commitfbbe321d19d0774bf141eddf6dea86e8ae2cf64a (patch)
tree70a8287bdbb00f9de2e24fa5fb7ad74388743728 /source3/wscript
parentba4ec70529c0fa9cf4dc797176dbae1a2c949dbc (diff)
downloadsamba-fbbe321d19d0774bf141eddf6dea86e8ae2cf64a.tar.gz
samba-fbbe321d19d0774bf141eddf6dea86e8ae2cf64a.tar.bz2
samba-fbbe321d19d0774bf141eddf6dea86e8ae2cf64a.zip
s3-waf: fix the build after linux netlink changes.
Volker, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 1 23:21:50 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 89ee79fe70..61e00aadac 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -946,6 +946,20 @@ int i; i = PAM_RADIO_TYPE;
if conf.CONFIG_SET('HAVE_VALGRIND_H') or conf.CONFIG_SET('HAVE_VALGRIND_VALGRIND_H'):
conf.DEFINE('VALGRIND', '1')
+ if conf.CHECK_CODE('''
+#include <bits/sockaddr.h>
+#include <linux/netlink.h>
+''',
+ 'HAVE_LINUX_NETLINK_H',
+ msg="Checking whether Linux netlink is available"):
+ conf.CHECK_CODE('''
+#include <bits/sockaddr.h>
+#include <linux/netlink.h>
+#include <linux/rtnetlink.h>
+''',
+ 'HAVE_LINUX_RTNETLINK_H',
+ msg='Checking whether Linux rtnetlink is available')
+
conf.SAMBA_CONFIG_H('include/config.h')
def ctags(ctx):