autogen: find libtoolize

Uses libtoolize or glibtoolize, giving preference to the former. Used to
support OSX platform.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
configure: test for static_assert

Uses a compile-time test for static_assert availability, rather than
examining GNUC versions, which don't work on OSX that is LLVM based.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
osx: bump leveldb version with OSX detection

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
inttypes: use configure-time checks for int types

Changes configure.ac to check for types we need, and then creates
typedefs for any that we lack.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
libcommon: rename pipe.[ch]

On case-insensitive file systems intermediate object file names will
conflict between src/common/pipe.c and src/msg/Pipe.cc.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
configure: search for uuid library in default libs

Uses AC_SEARCH_LIBS to automatically consider the default system
libraries for uuid_parse function, in addition to the libuuid. On OSX
uuid_parse is found -lSystem which is added by the linker by default.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
configure: use pkg-config to search for libfuse

Using pkg-config to find libfuse works for both Linux (-lfuse), and on
OSX using homebrew, which uses a different library (-lfuse4x).

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
configure: pretty functions with llvm/gcc
libcommon: support xattr on OSX

getxattr and setxattr on OSX include an additional parameter for
specifying a positional (within the xattr) parameter. The Ceph
abstraction assumes a position of 0, so we hard code this in the OSX
version.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
fuse: support position param on OSX platform

libfuse on OSX uses a position argument in getxattr and setxattr to
specify a position within the attribute.

The current implementation asserts that position is zero. According to
the Apple developer documentation, position should always be zero except
for the com.apple.ResourceFork extended attribute, which some Mac
application might use, although it appears it is deprecated. Adding a
positional argument to the Ceph xattr interface would be needed to
support this, if needed.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
osx: the rest
osx: fix ss_family bits