summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-03 22:10:40 +0100
committerGünther Deschner <gd@samba.org>2011-03-04 00:28:28 +0100
commit0fb246ba7340c58fdb419ed434f8b17a21f24953 (patch)
treec33ed7d761ff56211f4747e98996ed6cbc457f5e /source3
parent9167d70e77c2f4c8e6de64fbf06bd3bee23542d2 (diff)
downloadsamba-0fb246ba7340c58fdb419ed434f8b17a21f24953.tar.gz
samba-0fb246ba7340c58fdb419ed434f8b17a21f24953.tar.bz2
samba-0fb246ba7340c58fdb419ed434f8b17a21f24953.zip
s3-waf: add check for HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 2082a8bd05..1062b3a463 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1493,6 +1493,12 @@ main() {
# For sys/quota.h and linux/quota.h
conf.CHECK_HEADERS('sys/quota.h')
+ conf.CHECK_CODE('__attribute__((destructor)) static void cleanup(void) { }',
+ 'HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR',
+ addmain=False,
+ link=False,
+ msg='Checking whether we can compile with __attribute__((destructor))')
+
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
auth_sam auth_unix auth_winbind auth_wbc auth_server
auth_domain auth_builtin vfs_default