Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -197,12 +197,14 @@ OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings" AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings") ]) AX_CHECK_COMPILER_FLAGS([-Wsign-compare -Werror], [OBJCFLAGS="$OBJCFLAGS -Wsign-compare"]) -AX_CHECK_COMPILER_FLAGS([-Wshadow -Werror], - [OBJCFLAGS="$OBJCFLAGS -Wshadow"]) +AS_IF([test x"$with_nds" != x"yes"], [ + AX_CHECK_COMPILER_FLAGS([-Wshadow -Werror], + [OBJCFLAGS="$OBJCFLAGS -Wshadow"]) +]) AX_CHECK_COMPILER_FLAGS([-Wshorten-64-to-32 -Werror], [OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"]) AX_CHECK_COMPILER_FLAGS([-Wundeclared-selector -Werror], [OBJCFLAGS="$OBJCFLAGS -Wundeclared-selector"]) AX_CHECK_COMPILER_FLAGS([-Wsemicolon-before-method-body -Werror],