Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS

Fixes #1258