Modernize and simplify autotools setup.
Use asprintf to construct error message.
Use pure and const function attributes where possible.
Fix a compiler warning.
Quote some unquoted m4 function args
Use gnulib progname module
Remove pre-ANSI C support.
Fix empty lines at EOF.
Fix space at EOL.