diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-04-09 12:17:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-04-09 12:17:43 +0000 |
commit | a2d91340f322fed39bdaf02391b8be01dffb7869 (patch) | |
tree | 34d42b74b6691f2cbaaf2381ea147aef4fbb36e1 /binutils/configure.in | |
parent | d8e7020fd6fadafc86faf10ebe241fcf38927815 (diff) | |
download | gdb-a2d91340f322fed39bdaf02391b8be01dffb7869.zip gdb-a2d91340f322fed39bdaf02391b8be01dffb7869.tar.gz gdb-a2d91340f322fed39bdaf02391b8be01dffb7869.tar.bz2 |
Remove ``-W -Wall'' from top-level Makefile/configure.
Add ``-W -Wall'' to sub-directories bfd, binutils, gas gprof, ld and
opcodes by the addition of WARN_CFLAGS to Makefile.am and configury to
set it. Add configure option --enable-build-warnings.
Re-generate all and sundry using auto*-000227.
Diffstat (limited to 'binutils/configure.in')
-rw-r--r-- | binutils/configure.in | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/binutils/configure.in b/binutils/configure.in index aa10ce9..27a1486 100644 --- a/binutils/configure.in +++ b/binutils/configure.in @@ -25,6 +25,27 @@ AC_ARG_ENABLE(commonbfdlib, *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;; esac])dnl +build_warnings="-W -Wall" +AC_ARG_ENABLE(build-warnings, +[ --enable-build-warnings Enable build-time compiler warnings if gcc is used], +[case "${enableval}" in + yes) ;; + no) build_warnings="-w";; + ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` + build_warnings="${build_warnings} ${t}";; + *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` + build_warnings="${t} ${build_warnings}";; + *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; +esac +if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then + echo "Setting warning flags = $build_warnings" 6>&1 +fi])dnl +WARN_CFLAGS="" +if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then + WARN_CFLAGS="${build_warnings}" +fi +AC_SUBST(WARN_CFLAGS) + AM_CONFIG_HEADER(config.h:config.in) if test -z "$target" ; then |