Add stub config.h for compare and float scripts, since it is not
available yet when running 'make dist'.

Cherry-picked from cdee7c9c, 9a643c8b.

Conflicts resolved:
	sql/Makefile
Add log message when compilation fails and reduce messages when
fetching new executable scripts.

Cherry-picked from a99a719e, 5f15dbde.
Add static C++ libraries to yum install list.
Add notes to admin manual about phpmyadmin in EPEL and configure
options to set sysconfdir=/etc and localstatedir=/var.
Prepare for 4.0.2 release.
Continue bugfixing.