Replace `echo -n` with `printf` and fix a message typo in autogen.sh

`echo -n` is not standardized and does not work as expected on
POSIX-compliant operating systems such as Mac OS X 10.5 and later.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>