configure.ac: check for -Wshadow-local and -Wshadow-compatible-local