remove the use of autotools, doesn't work so well when embedding snappy
with other projects.
This is mostly to avoid autotools configuration errors in Apache CouchDB.
This avoids 'undefined symbol' errors when loading the NIF in R13B04.
Some files were from svn trunk and caused build problems on some platforms/environments. Now everything should be ok everywhere.
When I grabbed it, I had no idea it was licensed by Basho Technologies, Inc.
Removed unnecessary linking with all the shared objects from google-snappy (it even linked with the unit tests object). The final snappy.so NIF object is now about 135Kb instead of 400Kb.
After the fix in 8629cad, this code has now the expected behaviour.
The uncompressed length was being used where the compressed length was expected. The particular compression input data that triggered the bug was added to the eunit test.