endif
# Extra flags to pass to GCC.
-ifeq ($(all-warnings),yes)
-+gccwarn := -Wall -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wmissing-noreturn -Wmissing-prototypes -Wmissing-declarations -Wcomment -Wcomments -Wtrigraphs -Wsign-compare -Wfloat-equal -Wmultichar
-else
-+gccwarn := -Wall -Wwrite-strings
-endif
-+gccwarn += -Wundef
+gccwarn := -Wall -Wwrite-strings -Wundef
ifeq ($(enable-werror),yes)
+gccwarn += -Werror
endif
c++-cstdlib-header = @CXX_CSTDLIB_HEADER@
c++-cmath-header = @CXX_CMATH_HEADER@
c++-bits-std_abs-h = @CXX_BITS_STD_ABS_H@
-all-warnings = @all_warnings@
enable-werror = @enable_werror@
have-z-execstack = @libc_cv_z_execstack@
build_crypt
memory_tagging
enable_werror
-all_warnings
force_install
bindnow
hardcoded_path_in_tests
enable_force_install
enable_maintainer_mode
enable_kernel
-enable_all_warnings
enable_werror
enable_multi_arch
enable_memory_tagging
sometimes confusing) to the casual installer
--enable-kernel=VERSION compile for compatibility with kernel not older than
VERSION
- --enable-all-warnings enable all useful warnings gcc can issue
--disable-werror do not build with -Werror
--enable-multi-arch enable single DSO with optimizations for multiple
architectures
fi
fi
-# Check whether --enable-all-warnings was given.
-if test ${enable_all_warnings+y}
-then :
- enableval=$enable_all_warnings; all_warnings=$enableval
-fi
-
-
-
# Check whether --enable-werror was given.
if test ${enable_werror+y}
then :
fi
fi
-dnl For the development we sometimes want gcc to issue even more warnings.
-dnl This is not the default since many of the extra warnings are not
-dnl appropriate.
-AC_ARG_ENABLE([all-warnings],
- AS_HELP_STRING([--enable-all-warnings],
- [enable all useful warnings gcc can issue]),
- [all_warnings=$enableval],
- [])
-AC_SUBST(all_warnings)
-
AC_ARG_ENABLE([werror],
AS_HELP_STRING([--disable-werror],
[do not build with -Werror]),