implement "make check"
Currently the unittests are built at build time, this change makes them only build at "make check" time. This is more standard autotools behaviour than the current way. This is a minor change, all it does is build and run the tests via "make check", instead of building the unittests by default.
Trac:
Username: rsavoye