Add -Wdocumentation if supported by the compiler.

This commit is contained in:
Jonathan Schleifer 2013-02-14 03:10:08 +01:00
parent 46f2007247
commit 37562d4129
2 changed files with 81 additions and 0 deletions

View file

@ -20,6 +20,9 @@ OBJCFLAGS="$OBJCFLAGS -Wall $($OBJFW_CONFIG --objcflags)"
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags)"
LIBS="$LIBS $($OBJFW_CONFIG --libs)"
AX_CHECK_COMPILER_FLAGS(-Wdocumentation,
[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"])
AC_ARG_ENABLE(shared,
AS_HELP_STRING([--disable-shared], [do not build shared library]))
AS_IF([test x"$enable_shared" != x"no"], [