• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision1decb32380b8eacf945595321f515d9035a01d6c (tree)
Time2000-04-07 17:57:39
AuthorAndrew Cagney <cagney@redh...>
CommiterAndrew Cagney

Log Message

When GCC always enable certain warnings.
Allow configure to set CFLAGS (-g -O2) when GCC.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
1+Fri Apr 7 17:18:42 2000 Andrew Cagney <cagney@b1.cygnus.com>
2+
3+ * Makefile.in (CFLAGS): Set using configure.
4+
5+ * configure.in (WARN_CFLAGS): Enable by default when GCC.
6+ * configure: Re-generate.
7+
18 Fri Apr 7 13:33:43 2000 Andrew Cagney <cagney@b1.cygnus.com>
29
310 From 2000-03-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -264,7 +264,7 @@ GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS)
264264
265265 # CFLAGS is specifically reserved for setting from the command line
266266 # when running make. I.E. "make CFLAGS=-Wmissing-prototypes".
267-CFLAGS = -g
267+CFLAGS = @CFLAGS@
268268
269269 # Need to pass this to testsuite for "make check". Probably should be
270270 # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in
--- a/gdb/configure
+++ b/gdb/configure
@@ -5421,13 +5421,15 @@ if test "${enable_netrom}" = "yes"; then
54215421 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
54225422 fi
54235423
5424+
5425+build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
5426+-Wformat -Wparentheses -Wpointer-arith"
5427+# Not yet: -Wall -Wpointer-arith -Wstrict-prototypes
5428+# -Wmissing-prototypes -Wmissing-declarations
54245429 # Check whether --enable-build-warnings or --disable-build-warnings was given.
54255430 if test "${enable_build_warnings+set}" = set; then
54265431 enableval="$enable_build_warnings"
5427-
5428-# not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
5429-build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
5430-case "${enableval}" in
5432+ case "${enableval}" in
54315433 yes) ;;
54325434 no) build_warnings="-w";;
54335435 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
@@ -5439,6 +5441,7 @@ esac
54395441 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
54405442 echo "Setting warning flags = $build_warnings" 6>&1
54415443 fi
5444+fi
54425445 WARN_CFLAGS=""
54435446 WERROR_CFLAGS=""
54445447 if test "x${build_warnings}" != x -a "x$GCC" = xyes
@@ -5452,10 +5455,6 @@ then
54525455 esac
54535456 done
54545457 fi
5455-else
5456- build_warnings=""
5457-fi
5458-
54595458
54605459
54615460
@@ -5505,12 +5504,12 @@ REGEX="gnu-regex.o"
55055504 REGEX_CFLAGS="-DUSE_INCLUDED_REGEX"
55065505 if test $want_included_regex = false; then
55075506 echo $ac_n "checking for GNU regex""... $ac_c" 1>&6
5508-echo "configure:5509: checking for GNU regex" >&5
5507+echo "configure:5508: checking for GNU regex" >&5
55095508 if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then
55105509 echo $ac_n "(cached) $ac_c" 1>&6
55115510 else
55125511 cat > conftest.$ac_ext <<EOF
5513-#line 5514 "configure"
5512+#line 5513 "configure"
55145513 #include "confdefs.h"
55155514 #include <gnu-versions.h>
55165515 #include <sys/types.h>
@@ -5522,7 +5521,7 @@ int main() {
55225521
55235522 ; return 0; }
55245523 EOF
5525-if { (eval echo configure:5526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524+if { (eval echo configure:5525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55265525 rm -rf conftest*
55275526 gdb_cv_have_gnu_regex=yes
55285527 else
@@ -5545,12 +5544,12 @@ fi
55455544
55465545 # In the Cygwin environment, we need some additional flags.
55475546 echo $ac_n "checking for cygwin""... $ac_c" 1>&6
5548-echo "configure:5549: checking for cygwin" >&5
5547+echo "configure:5548: checking for cygwin" >&5
55495548 if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then
55505549 echo $ac_n "(cached) $ac_c" 1>&6
55515550 else
55525551 cat > conftest.$ac_ext <<EOF
5553-#line 5554 "configure"
5552+#line 5553 "configure"
55545553 #include "confdefs.h"
55555554
55565555 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
@@ -5584,7 +5583,7 @@ if test x$gdb_cv_os_cygwin = xyes; then
55845583 else
55855584 TERM_LIB=
55865585 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
5587-echo "configure:5588: checking for tgetent in -lncurses" >&5
5586+echo "configure:5587: checking for tgetent in -lncurses" >&5
55885587 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
55895588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
55905589 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5592,7 +5591,7 @@ else
55925591 ac_save_LIBS="$LIBS"
55935592 LIBS="-lncurses $LIBS"
55945593 cat > conftest.$ac_ext <<EOF
5595-#line 5596 "configure"
5594+#line 5595 "configure"
55965595 #include "confdefs.h"
55975596 /* Override any gcc2 internal prototype to avoid an error. */
55985597 /* We use char because int might match the return type of a gcc2
@@ -5603,7 +5602,7 @@ int main() {
56035602 tgetent()
56045603 ; return 0; }
56055604 EOF
5606-if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5605+if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
56075606 rm -rf conftest*
56085607 eval "ac_cv_lib_$ac_lib_var=yes"
56095608 else
@@ -5622,7 +5621,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
56225621 else
56235622 echo "$ac_t""no" 1>&6
56245623 echo $ac_n "checking for tgetent in -lHcurses""... $ac_c" 1>&6
5625-echo "configure:5626: checking for tgetent in -lHcurses" >&5
5624+echo "configure:5625: checking for tgetent in -lHcurses" >&5
56265625 ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'`
56275626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
56285627 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5630,7 +5629,7 @@ else
56305629 ac_save_LIBS="$LIBS"
56315630 LIBS="-lHcurses $LIBS"
56325631 cat > conftest.$ac_ext <<EOF
5633-#line 5634 "configure"
5632+#line 5633 "configure"
56345633 #include "confdefs.h"
56355634 /* Override any gcc2 internal prototype to avoid an error. */
56365635 /* We use char because int might match the return type of a gcc2
@@ -5641,7 +5640,7 @@ int main() {
56415640 tgetent()
56425641 ; return 0; }
56435642 EOF
5644-if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5643+if { (eval echo configure:5644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
56455644 rm -rf conftest*
56465645 eval "ac_cv_lib_$ac_lib_var=yes"
56475646 else
@@ -5660,7 +5659,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
56605659 else
56615660 echo "$ac_t""no" 1>&6
56625661 echo $ac_n "checking for tgetent in -ltermlib""... $ac_c" 1>&6
5663-echo "configure:5664: checking for tgetent in -ltermlib" >&5
5662+echo "configure:5663: checking for tgetent in -ltermlib" >&5
56645663 ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'`
56655664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
56665665 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5668,7 +5667,7 @@ else
56685667 ac_save_LIBS="$LIBS"
56695668 LIBS="-ltermlib $LIBS"
56705669 cat > conftest.$ac_ext <<EOF
5671-#line 5672 "configure"
5670+#line 5671 "configure"
56725671 #include "confdefs.h"
56735672 /* Override any gcc2 internal prototype to avoid an error. */
56745673 /* We use char because int might match the return type of a gcc2
@@ -5679,7 +5678,7 @@ int main() {
56795678 tgetent()
56805679 ; return 0; }
56815680 EOF
5682-if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681+if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
56835682 rm -rf conftest*
56845683 eval "ac_cv_lib_$ac_lib_var=yes"
56855684 else
@@ -5698,7 +5697,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
56985697 else
56995698 echo "$ac_t""no" 1>&6
57005699 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
5701-echo "configure:5702: checking for tgetent in -ltermcap" >&5
5700+echo "configure:5701: checking for tgetent in -ltermcap" >&5
57025701 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
57035702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
57045703 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5706,7 +5705,7 @@ else
57065705 ac_save_LIBS="$LIBS"
57075706 LIBS="-ltermcap $LIBS"
57085707 cat > conftest.$ac_ext <<EOF
5709-#line 5710 "configure"
5708+#line 5709 "configure"
57105709 #include "confdefs.h"
57115710 /* Override any gcc2 internal prototype to avoid an error. */
57125711 /* We use char because int might match the return type of a gcc2
@@ -5717,7 +5716,7 @@ int main() {
57175716 tgetent()
57185717 ; return 0; }
57195718 EOF
5720-if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5719+if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
57215720 rm -rf conftest*
57225721 eval "ac_cv_lib_$ac_lib_var=yes"
57235722 else
@@ -5736,7 +5735,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
57365735 else
57375736 echo "$ac_t""no" 1>&6
57385737 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
5739-echo "configure:5740: checking for tgetent in -lcurses" >&5
5738+echo "configure:5739: checking for tgetent in -lcurses" >&5
57405739 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
57415740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
57425741 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5744,7 +5743,7 @@ else
57445743 ac_save_LIBS="$LIBS"
57455744 LIBS="-lcurses $LIBS"
57465745 cat > conftest.$ac_ext <<EOF
5747-#line 5748 "configure"
5746+#line 5747 "configure"
57485747 #include "confdefs.h"
57495748 /* Override any gcc2 internal prototype to avoid an error. */
57505749 /* We use char because int might match the return type of a gcc2
@@ -5755,7 +5754,7 @@ int main() {
57555754 tgetent()
57565755 ; return 0; }
57575756 EOF
5758-if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5757+if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
57595758 rm -rf conftest*
57605759 eval "ac_cv_lib_$ac_lib_var=yes"
57615760 else
@@ -5774,7 +5773,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
57745773 else
57755774 echo "$ac_t""no" 1>&6
57765775 echo $ac_n "checking for tgetent in -lterminfo""... $ac_c" 1>&6
5777-echo "configure:5778: checking for tgetent in -lterminfo" >&5
5776+echo "configure:5777: checking for tgetent in -lterminfo" >&5
57785777 ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'`
57795778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
57805779 echo $ac_n "(cached) $ac_c" 1>&6
@@ -5782,7 +5781,7 @@ else
57825781 ac_save_LIBS="$LIBS"
57835782 LIBS="-lterminfo $LIBS"
57845783 cat > conftest.$ac_ext <<EOF
5785-#line 5786 "configure"
5784+#line 5785 "configure"
57865785 #include "confdefs.h"
57875786 /* Override any gcc2 internal prototype to avoid an error. */
57885787 /* We use char because int might match the return type of a gcc2
@@ -5793,7 +5792,7 @@ int main() {
57935792 tgetent()
57945793 ; return 0; }
57955794 EOF
5796-if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5795+if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
57975796 rm -rf conftest*
57985797 eval "ac_cv_lib_$ac_lib_var=yes"
57995798 else
@@ -5951,7 +5950,7 @@ if test "${with_tclconfig+set}" = set; then
59515950 fi
59525951
59535952 echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6
5954-echo "configure:5955: checking for Tcl configuration" >&5
5953+echo "configure:5954: checking for Tcl configuration" >&5
59555954 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then
59565955 echo $ac_n "(cached) $ac_c" 1>&6
59575956 else
@@ -6059,7 +6058,7 @@ if test "${with_tkconfig+set}" = set; then
60596058 fi
60606059
60616060 echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6
6062-echo "configure:6063: checking for Tk configuration" >&5
6061+echo "configure:6062: checking for Tk configuration" >&5
60636062 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then
60646063 echo $ac_n "(cached) $ac_c" 1>&6
60656064 else
@@ -6155,7 +6154,7 @@ fi
61556154
61566155 no_tcl=true
61576156 echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6
6158-echo "configure:6159: checking for Tcl private headers. dir=${configdir}" >&5
6157+echo "configure:6158: checking for Tcl private headers. dir=${configdir}" >&5
61596158 # Check whether --with-tclinclude or --without-tclinclude was given.
61606159 if test "${with_tclinclude+set}" = set; then
61616160 withval="$with_tclinclude"
@@ -6221,17 +6220,17 @@ fi
62216220 if test x"${ac_cv_c_tclh}" = x ; then
62226221 ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`
62236222 echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6
6224-echo "configure:6225: checking for tclInt.h" >&5
6223+echo "configure:6224: checking for tclInt.h" >&5
62256224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
62266225 echo $ac_n "(cached) $ac_c" 1>&6
62276226 else
62286227 cat > conftest.$ac_ext <<EOF
6229-#line 6230 "configure"
6228+#line 6229 "configure"
62306229 #include "confdefs.h"
62316230 #include <tclInt.h>
62326231 EOF
62336232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6234-{ (eval echo configure:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6233+{ (eval echo configure:6234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
62356234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
62366235 if test -z "$ac_err"; then
62376236 rm -rf conftest*
@@ -6291,7 +6290,7 @@ fi
62916290 #
62926291 no_tk=true
62936292 echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6
6294-echo "configure:6295: checking for Tk private headers" >&5
6293+echo "configure:6294: checking for Tk private headers" >&5
62956294 # Check whether --with-tkinclude or --without-tkinclude was given.
62966295 if test "${with_tkinclude+set}" = set; then
62976296 withval="$with_tkinclude"
@@ -6357,17 +6356,17 @@ fi
63576356 if test x"${ac_cv_c_tkh}" = x ; then
63586357 ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'`
63596358 echo $ac_n "checking for tk.h""... $ac_c" 1>&6
6360-echo "configure:6361: checking for tk.h" >&5
6359+echo "configure:6360: checking for tk.h" >&5
63616360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
63626361 echo $ac_n "(cached) $ac_c" 1>&6
63636362 else
63646363 cat > conftest.$ac_ext <<EOF
6365-#line 6366 "configure"
6364+#line 6365 "configure"
63666365 #include "confdefs.h"
63676366 #include <tk.h>
63686367 EOF
63696368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6370-{ (eval echo configure:6371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6369+{ (eval echo configure:6370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
63716370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
63726371 if test -z "$ac_err"; then
63736372 rm -rf conftest*
@@ -6413,7 +6412,7 @@ fi
64136412
64146413
64156414 echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6416-echo "configure:6417: checking for Itcl private headers. srcdir=${srcdir}" >&5
6415+echo "configure:6416: checking for Itcl private headers. srcdir=${srcdir}" >&5
64176416 if test x"${ac_cv_c_itclh}" = x ; then
64186417 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
64196418 if test -f $i/generic/itcl.h ; then
@@ -6436,7 +6435,7 @@ fi
64366435
64376436
64386437 echo $ac_n "checking for Itk private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6439-echo "configure:6440: checking for Itk private headers. srcdir=${srcdir}" >&5
6438+echo "configure:6439: checking for Itk private headers. srcdir=${srcdir}" >&5
64406439 if test x"${ac_cv_c_itkh}" = x ; then
64416440 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
64426441 if test -f $i/generic/itk.h ; then
@@ -6459,7 +6458,7 @@ fi
64596458
64606459
64616460 echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6
6462-echo "configure:6463: checking for Tix private headers. srcdir=${srcdir}" >&5
6461+echo "configure:6462: checking for Tix private headers. srcdir=${srcdir}" >&5
64636462 if test x"${ac_cv_c_tixh}" = x ; then
64646463 for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do
64656464 if test -f $i/generic/tix.h ; then
@@ -6497,7 +6496,7 @@ if test "${with_itclconfig+set}" = set; then
64976496 fi
64986497
64996498 echo $ac_n "checking for Itcl configuration""... $ac_c" 1>&6
6500-echo "configure:6501: checking for Itcl configuration" >&5
6499+echo "configure:6500: checking for Itcl configuration" >&5
65016500 if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then
65026501 echo $ac_n "(cached) $ac_c" 1>&6
65036502 else
@@ -6609,7 +6608,7 @@ if test "${with_itkconfig+set}" = set; then
66096608 fi
66106609
66116610 echo $ac_n "checking for Itk configuration""... $ac_c" 1>&6
6612-echo "configure:6613: checking for Itk configuration" >&5
6611+echo "configure:6612: checking for Itk configuration" >&5
66136612 if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then
66146613 echo $ac_n "(cached) $ac_c" 1>&6
66156614 else
@@ -6721,7 +6720,7 @@ if test "${with_tixconfig+set}" = set; then
67216720 fi
67226721
67236722 echo $ac_n "checking for Tix configuration""... $ac_c" 1>&6
6724-echo "configure:6725: checking for Tix configuration" >&5
6723+echo "configure:6724: checking for Tix configuration" >&5
67256724 if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then
67266725 echo $ac_n "(cached) $ac_c" 1>&6
67276726 else
@@ -6860,7 +6859,7 @@ fi
68606859 # Uses ac_ vars as temps to allow command line to override cache and checks.
68616860 # --without-x overrides everything else, but does not touch the cache.
68626861 echo $ac_n "checking for X""... $ac_c" 1>&6
6863-echo "configure:6864: checking for X" >&5
6862+echo "configure:6863: checking for X" >&5
68646863
68656864 # Check whether --with-x or --without-x was given.
68666865 if test "${with_x+set}" = set; then
@@ -6922,12 +6921,12 @@ if test "$ac_x_includes" = NO; then
69226921
69236922 # First, try using that file with no special directory specified.
69246923 cat > conftest.$ac_ext <<EOF
6925-#line 6926 "configure"
6924+#line 6925 "configure"
69266925 #include "confdefs.h"
69276926 #include <$x_direct_test_include>
69286927 EOF
69296928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6930-{ (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6929+{ (eval echo configure:6930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
69316930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
69326931 if test -z "$ac_err"; then
69336932 rm -rf conftest*
@@ -6996,14 +6995,14 @@ if test "$ac_x_libraries" = NO; then
69966995 ac_save_LIBS="$LIBS"
69976996 LIBS="-l$x_direct_test_library $LIBS"
69986997 cat > conftest.$ac_ext <<EOF
6999-#line 7000 "configure"
6998+#line 6999 "configure"
70006999 #include "confdefs.h"
70017000
70027001 int main() {
70037002 ${x_direct_test_function}()
70047003 ; return 0; }
70057004 EOF
7006-if { (eval echo configure:7007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7005+if { (eval echo configure:7006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
70077006 rm -rf conftest*
70087007 LIBS="$ac_save_LIBS"
70097008 # We can link X programs with no special library path.
@@ -7285,7 +7284,7 @@ files="${files} config/nm-empty.h"
72857284 links="${links} nm.h"
72867285 fi
72877286 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7288-echo "configure:7289: checking whether ln -s works" >&5
7287+echo "configure:7288: checking whether ln -s works" >&5
72897288 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
72907289 echo $ac_n "(cached) $ac_c" 1>&6
72917290 else
@@ -7309,12 +7308,12 @@ fi
73097308
73107309
73117310 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7312-echo "configure:7313: checking for Cygwin environment" >&5
7311+echo "configure:7312: checking for Cygwin environment" >&5
73137312 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
73147313 echo $ac_n "(cached) $ac_c" 1>&6
73157314 else
73167315 cat > conftest.$ac_ext <<EOF
7317-#line 7318 "configure"
7316+#line 7317 "configure"
73187317 #include "confdefs.h"
73197318
73207319 int main() {
@@ -7325,7 +7324,7 @@ int main() {
73257324 return __CYGWIN__;
73267325 ; return 0; }
73277326 EOF
7328-if { (eval echo configure:7329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7327+if { (eval echo configure:7328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
73297328 rm -rf conftest*
73307329 ac_cv_cygwin=yes
73317330 else
@@ -7342,19 +7341,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6
73427341 CYGWIN=
73437342 test "$ac_cv_cygwin" = yes && CYGWIN=yes
73447343 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7345-echo "configure:7346: checking for mingw32 environment" >&5
7344+echo "configure:7345: checking for mingw32 environment" >&5
73467345 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
73477346 echo $ac_n "(cached) $ac_c" 1>&6
73487347 else
73497348 cat > conftest.$ac_ext <<EOF
7350-#line 7351 "configure"
7349+#line 7350 "configure"
73517350 #include "confdefs.h"
73527351
73537352 int main() {
73547353 return __MINGW32__;
73557354 ; return 0; }
73567355 EOF
7357-if { (eval echo configure:7358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7356+if { (eval echo configure:7357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
73587357 rm -rf conftest*
73597358 ac_cv_mingw32=yes
73607359 else
@@ -7373,7 +7372,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes
73737372
73747373
73757374 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7376-echo "configure:7377: checking for executable suffix" >&5
7375+echo "configure:7376: checking for executable suffix" >&5
73777376 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
73787377 echo $ac_n "(cached) $ac_c" 1>&6
73797378 else
@@ -7383,7 +7382,7 @@ else
73837382 rm -f conftest*
73847383 echo 'int main () { return 0; }' > conftest.$ac_ext
73857384 ac_cv_exeext=
7386- if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7385+ if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
73877386 for file in conftest.*; do
73887387 case $file in
73897388 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -454,12 +454,14 @@ if test "${enable_netrom}" = "yes"; then
454454 CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
455455 fi
456456
457+
458+build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
459+-Wformat -Wparentheses -Wpointer-arith"
460+# Not yet: -Wall -Wpointer-arith -Wstrict-prototypes
461+# -Wmissing-prototypes -Wmissing-declarations
457462 AC_ARG_ENABLE(build-warnings,
458463 [ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
459-[
460-# not yet: -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
461-build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith"
462-case "${enableval}" in
464+[case "${enableval}" in
463465 yes) ;;
464466 no) build_warnings="-w";;
465467 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
@@ -470,7 +472,7 @@ case "${enableval}" in
470472 esac
471473 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
472474 echo "Setting warning flags = $build_warnings" 6>&1
473-fi
475+fi])dnl
474476 WARN_CFLAGS=""
475477 WERROR_CFLAGS=""
476478 if test "x${build_warnings}" != x -a "x$GCC" = xyes
@@ -483,8 +485,7 @@ then
483485 *) WARN_CFLAGS="${WARN_CFLAGS} $w"
484486 esac
485487 done
486-fi],[build_warnings=""])dnl
487-
488+fi
488489 AC_SUBST(WARN_CFLAGS)
489490 AC_SUBST(WERROR_CFLAGS)
490491