Moved from autodir to m4 dir. Added OpenSSL search macros. Fixed a shadowing variable