diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-21 14:32:49 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-03-24 17:09:10 +0100 |
commit | 47dbd4ef60e58e3b4512a151dabd63f1d0ea840d (patch) | |
tree | 5e1c2764e701f2d03fb7e191f8afdb1d73e6b9ce /buildtools/wafsamba/samba_patterns.py | |
parent | fc04cad01a92dae25f2075b99f1cdf84fef516ea (diff) | |
download | samba-47dbd4ef60e58e3b4512a151dabd63f1d0ea840d.tar.gz samba-47dbd4ef60e58e3b4512a151dabd63f1d0ea840d.tar.xz samba-47dbd4ef60e58e3b4512a151dabd63f1d0ea840d.zip |
wafsamba: use cluster_support_features in build_options.c
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>
Diffstat (limited to 'buildtools/wafsamba/samba_patterns.py')
-rw-r--r-- | buildtools/wafsamba/samba_patterns.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_patterns.py b/buildtools/wafsamba/samba_patterns.py index 55ed540670..1e2df90dac 100644 --- a/buildtools/wafsamba/samba_patterns.py +++ b/buildtools/wafsamba/samba_patterns.py @@ -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") |