Created attachment 4887 fix for latest automake mousepad from git does not build with latest automake. AM_CONFIG_HEADER needs to be replaced by AC_CONFIG_HEADERS. Patch is attached.
Fixed in Bug 9939. Sorry, I didn't notice it was a duplicated of this bug :)