In the interest of getting patch into a form that will integrate more easily with diffutils, here are some changes that make most of gnulib's syntax-check rules pass (the others are skipped for now).
The changes cover a mixture of style, portability, safety, and increasing consistency with other GNU packages. Jim Meyering (15): maint: use gnulib's maintainer-makefile module maint: arrange for the sc_require_config_h_first test to pass maint: add some m4 quoting maint: remove trailing blanks maint: allow the sc_prohibit_empty_lines_at_EOF test to pass maint: avoid non-portable use of test -a build: accept new configure-time option --enable-gcc-warnings tests: temporarily disable failing syntax-check rules build: avoid three gcc warnings maint: update copyright date year ranges to include 2011 maint: update bootstrap and gnulib submodule maint: use gnulib's progname module maint: remove now-unneeded macro definitions build: don't turn off -Wmissing-prototypes build: don't turn off -Wmissing-declarations Makefile.am | 5 +- NEWS | 4 +- README | 4 +- README-hacking | 2 +- bootstrap | 225 ++++++++++++++++++++++++++----------- bootstrap.conf | 13 ++- cfg.mk | 35 ++++++ configure.ac | 93 +++++++++++++++- gnulib | 2 +- m4/.gitignore | 114 +++++++++++++++++++ m4/setmode.m4 | 6 +- m4/xattr.m4 | 2 +- pc/chdirsaf.c | 1 + src/Makefile.am | 6 +- src/bestmatch.h | 4 +- src/common.h | 10 +- src/inp.c | 4 +- src/inp.h | 4 +- src/merge.c | 2 +- src/patch.c | 8 +- src/pch.c | 2 +- src/pch.h | 5 +- src/util.c | 9 -- src/util.h | 4 +- src/version.c | 4 +- tests/asymmetric-hunks | 2 +- tests/backup-prefix-suffix | 2 +- tests/copy-rename | 2 +- tests/corrupt-reject-files | 2 +- tests/create-delete | 8 +- tests/create-directory | 2 +- tests/criss-cross | 2 +- tests/crlf-handling | 2 +- tests/dash-o-append | 2 +- tests/empty-files | 6 +- tests/fifo | 2 +- tests/file-modes | 2 +- tests/filename-choice | 2 +- tests/git-binary-diff | 2 +- tests/global-reject-files | 4 +- tests/inname | 2 +- tests/line-numbers | 2 +- tests/merge | 4 +- tests/munged-context-format | 2 +- tests/need-filename | 2 +- tests/no-newline-triggers-assert | 5 +- tests/preserve-c-function-names | 8 +- tests/preserve-mode-and-timestamp | 2 +- tests/quoted-filenames | 2 +- tests/read-only-files | 2 +- tests/reject-format | 16 ++- tests/remember-backup-files | 2 +- tests/remember-reject-files | 2 +- tests/symlinks | 4 +- tests/test-lib.sh | 5 +- tests/unmodified-files | 2 +- 56 files changed, 501 insertions(+), 171 deletions(-) create mode 100644 cfg.mk