Include <unistd.h> in "librados.h" so that ssize_t is for sure defined.
Another fix would be fix the include order in including
files (some seem to include ceph files first, then system files,
which is dubious).  But since this file already includes
other stuff and is probably intended to be used externally, this fix
is a good idea anyways.

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Update cmake logic to match that of "giant-cmake".
The existing logic didn't build librados.so, but the python
logic in bin/ceph expects to find and load this file.
Fixes from giant-cmake: add back in file that probably
aren't in giant, make sure necessary xio files are built,
including xio_server|xio_client, and add in boost_regex library
lots of places.

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Fix most linkage problems (on ubuntu trusty tahr).

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Fix problems with "install" when building "out of tree".

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Fix more linkage problems better.  Use "PRIVATE" when linking libraries
to avoid "transitive" dependencies which are hard (if not impossible)
to order correctly.

Also some further fixes so that librados is actually useable from python,
ie, the "ceph" command.

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
We're installing ceph into /opt, which is not on the standard
python search list.  Augment cmake to modify 'ceph' script to
add the right place into the python search path, if it's not there
already.

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Apparently I didn't commit all the pieces to fixing the ceph python
script.  Here are the other bits.

Signed-off-by: Marcus Watts <mdw@cohortfs.com>
Merge branch 'xio-firefly-cmake-multi-ref' of github.com:linuxbox2/linuxbox-ceph into HEAD

Signed-off-by: Marcus Watts <mdw@cohortfs.com>