s3-waf: add check for /proc/sys/kernel/core_pattern.
authorGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 10:41:06 +0000 (11:41 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 11:46:06 +0000 (12:46 +0100)
Guenther

source3/wscript

index d3c41b624e800c6e4ca2a696acd947f663cb8506..2f73e7d95bdd6f4e2cb083eb2d6ca97263633696 100644 (file)
@@ -1229,6 +1229,9 @@ syscall(SYS_initgroups, 16, NULL, NULL, 0);
                                    define='HAVE_STRUCT_SIGEVENT_SIGEV_VALUE_SIGVAL_PTR',
                                    headers='signal.h');
 
+    if os.path.exists('/proc/sys/kernel/core_pattern'):
+        conf.DEFINE('HAVE_SYS_KERNEL_PROC_CORE_PATTERN', '1')
+
     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