Script works fine with NetBSD's /bin/sh, do not hardcode /bin/bash.
autoconfiscate RHash

Use autoconf and automake for building the library and the executables.
Use libtool to build the library.
Add support for choosing sysconfdir ("/etc/").
Auto-detect openssl.
Add some files requested by autoconf/automake (AUTHORS, NEWS).
Replace the manual INSTALL file with the default one from auto*.
Update patterns in .gitignore.

'make distcheck' finishes without problems for me.

TODO:
Some of the custom targets were not ported (RPM, Debian package,
other binary distribution files).
Windows support needs to be re-done, I can't test that.
gettext is not properly auto-detected.
Better support for bindings/ could be added.