include/xapian/weight.h,weight/bb2weight.cc: Optimise BB2Weight and
fix incorrect upper bound in some cases.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18178 6b2f1b92-a4f3-0310-943f-de3cbe41748b
weight/bb2weight.cc: Whitespace cleanup.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18179 6b2f1b92-a4f3-0310-943f-de3cbe41748b
weight/bb2weight.cc: Fix comment typo, and capitalise "Stirling" in
comments.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18180 6b2f1b92-a4f3-0310-943f-de3cbe41748b
tests/api_weight.cc,weight/bb2weight.cc: Fix upper bound for
BB2Weight to not be scaled twice by wqf and factor.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18181 6b2f1b92-a4f3-0310-943f-de3cbe41748b
tests/api_weight.cc,weight/bb2weight.cc: Avoid calculating logs of 0
or negative values by clamping the normalise wdf to at most one less
than the collection frequency, and the collection size to at least
2.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18182 6b2f1b92-a4f3-0310-943f-de3cbe41748b
include/xapian/visibility.h: Add link to GCC Visibility wiki page.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18183 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/brass/brass_compact.cc: Lock the target database while
we're compacting to it, which has the side effect of creating the
'flintlock' file there.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18184 6b2f1b92-a4f3-0310-943f-de3cbe41748b
configure.ac: Enable automake option 'subdir-objects' as (a) this
avoids a warning with newer automake and (b) it better to put the
objects alongside the source in this case anyway (less cluttered,
and the objects and generated sources will both get cleaned up
if the directory is removed).

git-svn-id: file:///home/xapian-svn/xapian/trunk@18185 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/brass/: In DB_DANGEROUS mode, update the version file
in-place.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18188 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/brass/brass_compact.cc,backends/brass/brass_version.cc:
Clean up temporary file in BrassVersion::sync() in all failure
cases.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18189 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/brass/brass_compact.cc: When compacting, sync all the
tables together at the end.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18190 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/brass/brass_compact.cc: Whitespace tweak.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18191 6b2f1b92-a4f3-0310-943f-de3cbe41748b
Merge changes from upstream xapian-core packaging repo
NEWS: Update.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18192 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/brass/brass_version.cc,common/io_utils.h,
include/xapian/constants.h: Add DB_FULL_SYNC flag - if this is set
for a database, we use the Mac OS X F_FULL_SYNC instead of
fdatasync()/fsync()/etc on the version file when committing.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18193 6b2f1b92-a4f3-0310-943f-de3cbe41748b
include/xapian/constants.h: Whitespace tweak.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18194 6b2f1b92-a4f3-0310-943f-de3cbe41748b
include/xapian/compactor.h: Fix formatting of doxygen comment.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18195 6b2f1b92-a4f3-0310-943f-de3cbe41748b
configure.ac: Rename XAPIAN_TEST_CXXFLAGS_ to XAPIAN_TEST_CXXFLAGS
(since the latter is never used) and make it take a variable to
add the flags to.  Also, fix it to restore CXXFLAGS correctly if
the success case contains "break".

git-svn-id: file:///home/xapian-svn/xapian/trunk@18196 6b2f1b92-a4f3-0310-943f-de3cbe41748b
configure.ac: For Sun's C++ compiler, pass -library=Crun separately
since libtool looks for " -library=stlport4 " (with the spaces).
(fixes#650)

git-svn-id: file:///home/xapian-svn/xapian/trunk@18197 6b2f1b92-a4f3-0310-943f-de3cbe41748b
backends/chert/chert_btreebase.cc,backends/chert/chert_table.cc:
Only full sync the final base file written.

git-svn-id: file:///home/xapian-svn/xapian/trunk@18204 6b2f1b92-a4f3-0310-943f-de3cbe41748b