fix COUCHDB-1653

AM_... is obsolote. use AC_CONFIG_HEADERS instead.