Rearrange initial config checks: AC, AM, compiler, libtool.
Removed some repeated and unused prog checks.
Merge pull request #5214

eefb766 Rearrange initial config checks: AC, AM, compiler, libtool. Removed some repeated and unused prog checks. (kiwigb)