Make our UINT64_MAX really unsigned

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Fix oml2_scaffold symlink

 * echo -n is a GNU extension
 * move the symlink out of the way if it already exists

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Hopefully fixed the reconnection issue. This fix adds a new MBuffer to buffered _writer which holds all the header/meta data information. This information is now also offered to the streams with each write message. The streams now need to keep track if the stream was just opened in which case they should first send the header data before anything else. 

There are a few potential pitfalls. First, we will loose some data on the net writer as the OS will still accept some data into the socket even if the other side is no longer listening. When the stream reports that it has a problem and asks the buffered writer to call back in a while, the buffered writer is rewinding the associated chain's buffer to the beginning to start re-sending at message boundaries (which the stream doesn't know. I'm not a 100% confident that this is really working the way I believe it is. 

The other issue is that currently the net_stream is catching SIGPIPE signals. Copied the code from init.c but I'm not sure if that doesn't interfere with any signal handling the application is attempting to do. It seems to work, but I couldn't test it extensively.
Forgot <signal.h> in net_stream.c - Didn't complain on my machine, but it takes care of defining sigaction.
More coherent logging

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Don't close socket on EINTR in socket_sendto()

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Make our UINT64_MAX really unsigned

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Fix oml2_scaffold symlink

 * echo -n is a GNU extension
 * move the symlink out of the way if it already exists

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Handle the "start<hyphen>time" metadata...

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Move macros about in configure.ac

 * Check for basic programs earlier;
 * Initialise Automake later.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Import git-version-gen from gnulib

gnulib-tool --source-base gnulib --add-import git-version-gen

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Generate version number with git-version-gen

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Add autogen.sh script

It is in charge of import the necessary Gnulib files, setting the right
permissions, then running autoreconf.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Version libocomm.so similarly to liboml2.so

This is MINOR:PATCH:MINOR (for current[:revision[:age]]), though it
should be better done manually on a per-library basis, when their
interface actually changes. See [0].

[0] https://www.gnu.org/software/libtool/manual/libtool.html#Versioning

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Adjust version numbers

Libtool and Ruby Gem are pickier.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Don't compute unused variables in configure

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Put OSX-detecting code in separate m4 file.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Fix warnings in testsuite

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Fix documentation

* Properly include sub parts (AsciiDoc: 'include::file.ext[]');
* Typo in oml2-server(1).

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>