Add two AC_CACHE_SAVE macros to speed up re-configuring.

This is useful after installing missing -dev[el] packages.

svn path=/branches/BRANCH_6-3/; revision=5342