wafsamba: use cluster_support_features in build_options.c
authorStefan Metzmacher <metze@samba.org>
Tue, 21 Jan 2014 13:32:49 +0000 (14:32 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 24 Mar 2014 16:09:10 +0000 (17:09 +0100)
This way 'smbd -b' returns the cluster features of the currently used
libsamba-cluster-support.so.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
buildtools/wafsamba/samba_patterns.py

index 55ed540670c176f0b0c0f8ea60f870eaab5f28e1..1e2df90dac4760985d6fb15a23e5ce108c00d64b 100644 (file)
@@ -59,6 +59,8 @@ def write_build_options_header(fp):
     fp.write("#include \"includes.h\"\n")
     fp.write("#include \"build_env.h\"\n")
     fp.write("#include \"dynconfig/dynconfig.h\"\n")
+    fp.write("#include \"lib/cluster_support.h\"\n")
+
     fp.write("\n")
     fp.write("static int output(bool screen, const char *format, ...) PRINTF_ATTRIBUTE(2,3);\n")
     fp.write("void build_options(bool screen);\n")
@@ -129,6 +131,9 @@ def write_build_options_header(fp):
     fp.write("\n")
 
 def write_build_options_footer(fp):
+    fp.write("       /* Output the sizes of the various cluster features */\n")
+    fp.write("       output(screen, \"\\n%s\", cluster_support_features());\n")
+    fp.write("\n")
     fp.write("       /* Output the sizes of the various types */\n")
     fp.write("       output(screen, \"\\nType sizes:\\n\");\n")
     fp.write("       output(screen, \"   sizeof(char):         %lu\\n\",(unsigned long)sizeof(char));\n")