Rename cache variable to AC_CACHE_CHECK to make the cached.