diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-10 14:13:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:56:55 -0500 |
commit | 1a49b255af46794903e240f17a483e91f343ae39 (patch) | |
tree | f8e43282abe0d7824db9bafdbb9d5c7073343941 /source4/build/smb_build/summary.pm | |
parent | 701343865c2f8191fc8bfc8747c52cc5fe627e94 (diff) | |
download | samba-1a49b255af46794903e240f17a483e91f343ae39.tar.gz samba-1a49b255af46794903e240f17a483e91f343ae39.tar.bz2 samba-1a49b255af46794903e240f17a483e91f343ae39.zip |
r14151: Add simple script that writes a summary to show what libraries the user
(might) be missing.
(This used to be commit ee90b8067915915af8ffbc0e04d1f4f5aae567cb)
Diffstat (limited to 'source4/build/smb_build/summary.pm')
-rw-r--r-- | source4/build/smb_build/summary.pm | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/source4/build/smb_build/summary.pm b/source4/build/smb_build/summary.pm new file mode 100644 index 0000000000..c3edb094f3 --- /dev/null +++ b/source4/build/smb_build/summary.pm @@ -0,0 +1,51 @@ +# Samba Build System +# - write out summary +# +# Copyright (C) Jelmer Vernooij 2006 +# Released under the GNU GPL + +package summary; +use strict; + +sub showitem($$$) +{ + my ($output,$desc,$items) = @_; + + my @need = (); + + foreach (@$items) { + if ($output->{"EXT_LIB_$_"}->{ENABLE} ne "YES") { + push (@need, $_); + } + } + + print "Support for $desc: "; + if ($#need > 0) { + print "no (install " . join(',',@need) . ")\n"; + } else { + print "yes\n"; + } +} + +sub show($$) +{ + my ($output,$config) = @_; + print "Summary:\n\n"; + showitem($output, "GTK+ frontends", ["gtk","gconf"]); + showitem($output, "SSL in SWAT", ["GNUTLS"]); + showitem($output, "threads in smbd", ["PTHREAD"]); + showitem($output, "intelligent command line editing", ["READLINE"]); + showitem($output, "changing process titles", ["SETPROCTITLE"]); + print "Using external popt: $output->{EXT_LIB_POPT}->{ENABLE}\n"; + print "Using shared libraries internally (experimental): "; + + if ($config->{BLDSHARED} eq "true") { + print "yes\n"; + } else { + print "no (try --enable-dso)\n"; + + } + print "\n"; +} + +1; |