remove trailing whitespaces from automake and autoconf files