s3-waf: add --with-profiling-data configure option.
authorGünther Deschner <gd@samba.org>
Wed, 13 Apr 2011 22:17:29 +0000 (00:17 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 13 Apr 2011 22:47:57 +0000 (00:47 +0200)
Guenther

source3/wscript
source3/wscript_build

index ebcb1b688858636a32c5653558c90d90b8674e4d..cf96b39107e96cff7fec5617093753a30b061cc6 100644 (file)
@@ -59,6 +59,7 @@ def set_options(opt):
     opt.SAMBA3_ADD_OPTION('syslog')
     opt.SAMBA3_ADD_OPTION('automount')
     opt.SAMBA3_ADD_OPTION('aio-support')
+    opt.SAMBA3_ADD_OPTION('profiling-data')
 
     opt.SAMBA3_ADD_OPTION('cluster-support')
 
@@ -1703,6 +1704,10 @@ main() {
                    headers='sys/types.h dirent.h',
                    msg='Checking whether seekdir returns void')
 
+    if Options.options.with_profiling_data:
+        conf.DEFINE('WITH_PROFILE', 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
index 1462375daa56e5bec5a0c0123ba9b0e7fa2d5c23..24939c400409e33487db93d5eb236a4ac84b7075 100755 (executable)
@@ -1021,7 +1021,7 @@ bld.SAMBA3_BINARY('nmbd/nmbd',
                  source=NMBD_SRC,
                  deps='''talloc tdb tevent z cap resolv wbclient dl
                  passdb param ldap LIB_NONSMBD LIBSMB
-                 POPT_SAMBA3 KRBCLIENT NDR_SAMR NDR_LSA''',
+                 POPT_SAMBA3 KRBCLIENT NDR_SAMR NDR_LSA PROFILE''',
                  install_path='${SBINDIR}',
                  vars=locals())