X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fconfigure.ac;h=9bdaa753cbdacc643808f78c8d92f3df86f8abb7;hb=b1ab97771ea3ce4842da7afd06aec65ff3fd0620;hp=e30e4af6f44c9a3e73d5994b8848e16bb7d8e0eb;hpb=5c45e068d75b49e595bc60f84d223b83ffaac4d8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/configure.ac b/gdb/configure.ac index e30e4af6f4..9bdaa753cb 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -34,14 +34,6 @@ AM_PROG_CC_STDC AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..) AC_CANONICAL_SYSTEM -# FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13 -# doesn't support cross-compilation, but the one from Autoconf 2.5x -# does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to -# deal with the lossage. Note that CY_GNU_GETTEXT currently calls -# AC_PROG_RANLIB. This can be removed when we switch to Autoconf -# 2.5x. -AC_CHECK_TOOL(RANLIB, ranlib, :) - dnl List of object files and targets accumulated by configure. CONFIG_OBS= @@ -202,7 +194,7 @@ AC_ARG_ENABLE(gdbtk, *) AC_MSG_ERROR([bad value $enableval for --enable-gdbtk]) ;; esac], - [if test -d $srcdir/gdbtk; then + [if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then enable_gdbtk=yes else enable_gdbtk=no @@ -1096,8 +1088,21 @@ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE) # NOTE: If you add to this list, remember to update # gdb/doc/gdbint.texinfo. build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ --Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \ +-Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ -Wunused-label -Wunused-function" + +# GCC supports -Wuninitialized only with -O or -On, n != 0. +if test x${CFLAGS+set} = xset; then + case "${CFLAGS}" in + *"-O0"* ) ;; + *"-O"* ) + build_warnings="${build_warnings} -Wuninitialized" + ;; + esac +else + build_warnings="${build_warnings} -Wuninitialized" +fi + # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs # -Wunused-function -Wunused-variable -Wunused-value # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual