acinclude: Improve detection of not-understood compiler options with clang.
authorBen Pfaff <blp@nicira.com>
Mon, 24 Jun 2013 19:25:48 +0000 (12:25 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 24 Jun 2013 19:25:48 +0000 (12:25 -0700)
commit501948203fd12718a2372ebfb78e79f33419e10f
tree36267f9b2d79eb95bf2e739dab6c0b60c34dc5f9
parenteca39bced3aee7bd01dec43619e810ca2e40e459
acinclude: Improve detection of not-understood compiler options with clang.

By default, clang warns about but does not fail on unknown -W options.
This made configure add the option to WARNING_FLAGS, which caused the
warning about not-understood warnings to be emitted for every file
compiled.

In combination with -Werror, clang does fail on unknown -W options.  This
commit adds -Werror during configure's warning tests, which should cause
the not-understood warnings to be detected that way.

Reported-by: Ed Maste <emaste@freebsd.org>
Tested-by: Ed Maste <emaste@freebsd.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
acinclude.m4