bump version
include a proper check for memmem when configuring unit tests

This allows the proper compatibility header definition to be exposed.
update string.h for include strings.h for HPUX environment
undef LIBRESSL_INTERNAL for the pidwrap test.
set various glibc flags that also are useful with mingw

for example, asprintf/vasprintf are unmasked with _GNU_SOURCE in mingw
remove duplicate (and overlapping) .1 manpages

openssl.1 contains all of the information from the other application
manpages, and is the only one packaged in OpenBSD. So, remove the other
obsolete .1 manpages (and avoid overlapping system pages like passwd.1)
enable -lcrypto -lssl with all test programs directly.

This removes the need to specify each one individually.

ok doug@
use the correct HOST_OS for the Windows build

ok doug@
Improve and simplify function and header detection logic.

Simplify autoconf checks by using AC_CHECK_FUNCS/HEADERS.
Clarify some ambiguous dependencies around strnlen/strndup.
Unconditionally enable pidwraptest for all arc4random implementations.
Remove HAVE_VASPRINTF conditional, since asprintf requires vasprintf.

ok @doug
wrap arc4random header

ok @doug
Add an OpenSSL compatible ./config wrapper

This allows sofware expecting OpenSSL's config script, to a limited
extent, to continue building without changes.

Thanks to technion for pointing this out and providing the initial
patch.
update README to reflect current porting approach

ok beck@ deraadt@
override native arc4random_buf on OS X

While the native OS X implementation is fork-safe, it does not seed
safely, as of the latest released OS X libc sources, version 997.90.3.
It only uses weak sources of entropy if accessing /dev/urandom fails.

ok beck@ deraadt@
override native arc4random_buf on FreeBSD

The FreeBSD-native arc4random_buf implementation falls back to weak
sources of entropy if the sysctl fails. Remove these dangerous fallbacks
by overriding locally.

Unfortunately, pthread_atfork() is broken on FreeBSD (at least 9 and 10)
if a program does not link to -lthr. Callbacks registered with
pthread_atfork() simply fail silently. So, it is not always possible to
detect a PID wraparound. I wish we could do better.

This improves arc4random_buf's safety compared to the native FreeBSD
implementation. Tested on FreeBSD 9 and 10.

ok beck@ deraadt@
make 'autoreconf' work from dist tarball

We need to include VERSION for it to run.
Quiet clang warnings about unused arguments in general.

Check if we are using clang, rather than simply if we are on OS X.
Note: recent LLVM releases do not seem to need this anyway.
Add the Cammelia cipher to libcrypto.

from miod@:

There used to be a strong reluctance to provide this cipher in LibreSSL in the
past, because the licence terms under which Cammelia was released by NTT were
free-but-not-in-the-corners, by restricting the right to modify the source
code, as well retaining the right to enforce their patents against anyone
in the future.

However, as stated in http://www.ntt.co.jp/news/news06e/0604/060413a.html ,
NTT changed its mind and made this code truly free. We only wish there had
been more visibility of this, for we could have had enabled Cammelia
earlier (-:

Licence change noticed by deraadt@. General agreement from the usual LibreSSL
suspects.

Crank libcrypto.so minor version due to the added symbols.
Use _WIN32 instead of __WIN32.

ok bcook@
Enable GOST in libcrypto and libssl, contributed by Dmitry Eremin-Solenikov

Ensure the public camellia.h header is installed along with gost.h
ignore gost and camellia dirs