GNU Binutils with patches for OS216
修订版 | 1decb32380b8eacf945595321f515d9035a01d6c (tree) |
---|---|
时间 | 2000-04-07 17:57:39 |
作者 | Andrew Cagney <cagney@redh...> |
Commiter | Andrew Cagney |
When GCC always enable certain warnings.
Allow configure to set CFLAGS (-g -O2) when GCC.
@@ -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 | + | |
1 | 8 | Fri Apr 7 13:33:43 2000 Andrew Cagney <cagney@b1.cygnus.com> |
2 | 9 | |
3 | 10 | From 2000-03-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>: |
@@ -264,7 +264,7 @@ GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS) | ||
264 | 264 | |
265 | 265 | # CFLAGS is specifically reserved for setting from the command line |
266 | 266 | # when running make. I.E. "make CFLAGS=-Wmissing-prototypes". |
267 | -CFLAGS = -g | |
267 | +CFLAGS = @CFLAGS@ | |
268 | 268 | |
269 | 269 | # Need to pass this to testsuite for "make check". Probably should be |
270 | 270 | # consistent with top-level Makefile.in and gdb/testsuite/Makefile.in |
@@ -5421,13 +5421,15 @@ if test "${enable_netrom}" = "yes"; then | ||
5421 | 5421 | CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c" |
5422 | 5422 | fi |
5423 | 5423 | |
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 | |
5424 | 5429 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
5425 | 5430 | if test "${enable_build_warnings+set}" = set; then |
5426 | 5431 | 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 | |
5431 | 5433 | yes) ;; |
5432 | 5434 | no) build_warnings="-w";; |
5433 | 5435 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
@@ -5439,6 +5441,7 @@ esac | ||
5439 | 5441 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
5440 | 5442 | echo "Setting warning flags = $build_warnings" 6>&1 |
5441 | 5443 | fi |
5444 | +fi | |
5442 | 5445 | WARN_CFLAGS="" |
5443 | 5446 | WERROR_CFLAGS="" |
5444 | 5447 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
@@ -5452,10 +5455,6 @@ then | ||
5452 | 5455 | esac |
5453 | 5456 | done |
5454 | 5457 | fi |
5455 | -else | |
5456 | - build_warnings="" | |
5457 | -fi | |
5458 | - | |
5459 | 5458 | |
5460 | 5459 | |
5461 | 5460 |
@@ -5505,12 +5504,12 @@ REGEX="gnu-regex.o" | ||
5505 | 5504 | REGEX_CFLAGS="-DUSE_INCLUDED_REGEX" |
5506 | 5505 | if test $want_included_regex = false; then |
5507 | 5506 | 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 | |
5509 | 5508 | if eval "test \"`echo '$''{'gdb_cv_have_gnu_regex'+set}'`\" = set"; then |
5510 | 5509 | echo $ac_n "(cached) $ac_c" 1>&6 |
5511 | 5510 | else |
5512 | 5511 | cat > conftest.$ac_ext <<EOF |
5513 | -#line 5514 "configure" | |
5512 | +#line 5513 "configure" | |
5514 | 5513 | #include "confdefs.h" |
5515 | 5514 | #include <gnu-versions.h> |
5516 | 5515 | #include <sys/types.h> |
@@ -5522,7 +5521,7 @@ int main() { | ||
5522 | 5521 | |
5523 | 5522 | ; return 0; } |
5524 | 5523 | 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 | |
5526 | 5525 | rm -rf conftest* |
5527 | 5526 | gdb_cv_have_gnu_regex=yes |
5528 | 5527 | else |
@@ -5545,12 +5544,12 @@ fi | ||
5545 | 5544 | |
5546 | 5545 | # In the Cygwin environment, we need some additional flags. |
5547 | 5546 | 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 | |
5549 | 5548 | if eval "test \"`echo '$''{'gdb_cv_os_cygwin'+set}'`\" = set"; then |
5550 | 5549 | echo $ac_n "(cached) $ac_c" 1>&6 |
5551 | 5550 | else |
5552 | 5551 | cat > conftest.$ac_ext <<EOF |
5553 | -#line 5554 "configure" | |
5552 | +#line 5553 "configure" | |
5554 | 5553 | #include "confdefs.h" |
5555 | 5554 | |
5556 | 5555 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) |
@@ -5584,7 +5583,7 @@ if test x$gdb_cv_os_cygwin = xyes; then | ||
5584 | 5583 | else |
5585 | 5584 | TERM_LIB= |
5586 | 5585 | 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 | |
5588 | 5587 | ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
5589 | 5588 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5590 | 5589 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -5592,7 +5591,7 @@ else | ||
5592 | 5591 | ac_save_LIBS="$LIBS" |
5593 | 5592 | LIBS="-lncurses $LIBS" |
5594 | 5593 | cat > conftest.$ac_ext <<EOF |
5595 | -#line 5596 "configure" | |
5594 | +#line 5595 "configure" | |
5596 | 5595 | #include "confdefs.h" |
5597 | 5596 | /* Override any gcc2 internal prototype to avoid an error. */ |
5598 | 5597 | /* We use char because int might match the return type of a gcc2 |
@@ -5603,7 +5602,7 @@ int main() { | ||
5603 | 5602 | tgetent() |
5604 | 5603 | ; return 0; } |
5605 | 5604 | 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 | |
5607 | 5606 | rm -rf conftest* |
5608 | 5607 | eval "ac_cv_lib_$ac_lib_var=yes" |
5609 | 5608 | else |
@@ -5622,7 +5621,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
5622 | 5621 | else |
5623 | 5622 | echo "$ac_t""no" 1>&6 |
5624 | 5623 | 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 | |
5626 | 5625 | ac_lib_var=`echo Hcurses'_'tgetent | sed 'y%./+-%__p_%'` |
5627 | 5626 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5628 | 5627 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -5630,7 +5629,7 @@ else | ||
5630 | 5629 | ac_save_LIBS="$LIBS" |
5631 | 5630 | LIBS="-lHcurses $LIBS" |
5632 | 5631 | cat > conftest.$ac_ext <<EOF |
5633 | -#line 5634 "configure" | |
5632 | +#line 5633 "configure" | |
5634 | 5633 | #include "confdefs.h" |
5635 | 5634 | /* Override any gcc2 internal prototype to avoid an error. */ |
5636 | 5635 | /* We use char because int might match the return type of a gcc2 |
@@ -5641,7 +5640,7 @@ int main() { | ||
5641 | 5640 | tgetent() |
5642 | 5641 | ; return 0; } |
5643 | 5642 | 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 | |
5645 | 5644 | rm -rf conftest* |
5646 | 5645 | eval "ac_cv_lib_$ac_lib_var=yes" |
5647 | 5646 | else |
@@ -5660,7 +5659,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
5660 | 5659 | else |
5661 | 5660 | echo "$ac_t""no" 1>&6 |
5662 | 5661 | 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 | |
5664 | 5663 | ac_lib_var=`echo termlib'_'tgetent | sed 'y%./+-%__p_%'` |
5665 | 5664 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5666 | 5665 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -5668,7 +5667,7 @@ else | ||
5668 | 5667 | ac_save_LIBS="$LIBS" |
5669 | 5668 | LIBS="-ltermlib $LIBS" |
5670 | 5669 | cat > conftest.$ac_ext <<EOF |
5671 | -#line 5672 "configure" | |
5670 | +#line 5671 "configure" | |
5672 | 5671 | #include "confdefs.h" |
5673 | 5672 | /* Override any gcc2 internal prototype to avoid an error. */ |
5674 | 5673 | /* We use char because int might match the return type of a gcc2 |
@@ -5679,7 +5678,7 @@ int main() { | ||
5679 | 5678 | tgetent() |
5680 | 5679 | ; return 0; } |
5681 | 5680 | 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 | |
5683 | 5682 | rm -rf conftest* |
5684 | 5683 | eval "ac_cv_lib_$ac_lib_var=yes" |
5685 | 5684 | else |
@@ -5698,7 +5697,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
5698 | 5697 | else |
5699 | 5698 | echo "$ac_t""no" 1>&6 |
5700 | 5699 | 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 | |
5702 | 5701 | ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
5703 | 5702 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5704 | 5703 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -5706,7 +5705,7 @@ else | ||
5706 | 5705 | ac_save_LIBS="$LIBS" |
5707 | 5706 | LIBS="-ltermcap $LIBS" |
5708 | 5707 | cat > conftest.$ac_ext <<EOF |
5709 | -#line 5710 "configure" | |
5708 | +#line 5709 "configure" | |
5710 | 5709 | #include "confdefs.h" |
5711 | 5710 | /* Override any gcc2 internal prototype to avoid an error. */ |
5712 | 5711 | /* We use char because int might match the return type of a gcc2 |
@@ -5717,7 +5716,7 @@ int main() { | ||
5717 | 5716 | tgetent() |
5718 | 5717 | ; return 0; } |
5719 | 5718 | 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 | |
5721 | 5720 | rm -rf conftest* |
5722 | 5721 | eval "ac_cv_lib_$ac_lib_var=yes" |
5723 | 5722 | else |
@@ -5736,7 +5735,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
5736 | 5735 | else |
5737 | 5736 | echo "$ac_t""no" 1>&6 |
5738 | 5737 | 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 | |
5740 | 5739 | ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
5741 | 5740 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5742 | 5741 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -5744,7 +5743,7 @@ else | ||
5744 | 5743 | ac_save_LIBS="$LIBS" |
5745 | 5744 | LIBS="-lcurses $LIBS" |
5746 | 5745 | cat > conftest.$ac_ext <<EOF |
5747 | -#line 5748 "configure" | |
5746 | +#line 5747 "configure" | |
5748 | 5747 | #include "confdefs.h" |
5749 | 5748 | /* Override any gcc2 internal prototype to avoid an error. */ |
5750 | 5749 | /* We use char because int might match the return type of a gcc2 |
@@ -5755,7 +5754,7 @@ int main() { | ||
5755 | 5754 | tgetent() |
5756 | 5755 | ; return 0; } |
5757 | 5756 | 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 | |
5759 | 5758 | rm -rf conftest* |
5760 | 5759 | eval "ac_cv_lib_$ac_lib_var=yes" |
5761 | 5760 | else |
@@ -5774,7 +5773,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
5774 | 5773 | else |
5775 | 5774 | echo "$ac_t""no" 1>&6 |
5776 | 5775 | 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 | |
5778 | 5777 | ac_lib_var=`echo terminfo'_'tgetent | sed 'y%./+-%__p_%'` |
5779 | 5778 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5780 | 5779 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -5782,7 +5781,7 @@ else | ||
5782 | 5781 | ac_save_LIBS="$LIBS" |
5783 | 5782 | LIBS="-lterminfo $LIBS" |
5784 | 5783 | cat > conftest.$ac_ext <<EOF |
5785 | -#line 5786 "configure" | |
5784 | +#line 5785 "configure" | |
5786 | 5785 | #include "confdefs.h" |
5787 | 5786 | /* Override any gcc2 internal prototype to avoid an error. */ |
5788 | 5787 | /* We use char because int might match the return type of a gcc2 |
@@ -5793,7 +5792,7 @@ int main() { | ||
5793 | 5792 | tgetent() |
5794 | 5793 | ; return 0; } |
5795 | 5794 | 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 | |
5797 | 5796 | rm -rf conftest* |
5798 | 5797 | eval "ac_cv_lib_$ac_lib_var=yes" |
5799 | 5798 | else |
@@ -5951,7 +5950,7 @@ if test "${with_tclconfig+set}" = set; then | ||
5951 | 5950 | fi |
5952 | 5951 | |
5953 | 5952 | 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 | |
5955 | 5954 | if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then |
5956 | 5955 | echo $ac_n "(cached) $ac_c" 1>&6 |
5957 | 5956 | else |
@@ -6059,7 +6058,7 @@ if test "${with_tkconfig+set}" = set; then | ||
6059 | 6058 | fi |
6060 | 6059 | |
6061 | 6060 | 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 | |
6063 | 6062 | if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then |
6064 | 6063 | echo $ac_n "(cached) $ac_c" 1>&6 |
6065 | 6064 | else |
@@ -6155,7 +6154,7 @@ fi | ||
6155 | 6154 | |
6156 | 6155 | no_tcl=true |
6157 | 6156 | 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 | |
6159 | 6158 | # Check whether --with-tclinclude or --without-tclinclude was given. |
6160 | 6159 | if test "${with_tclinclude+set}" = set; then |
6161 | 6160 | withval="$with_tclinclude" |
@@ -6221,17 +6220,17 @@ fi | ||
6221 | 6220 | if test x"${ac_cv_c_tclh}" = x ; then |
6222 | 6221 | ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'` |
6223 | 6222 | 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 | |
6225 | 6224 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6226 | 6225 | echo $ac_n "(cached) $ac_c" 1>&6 |
6227 | 6226 | else |
6228 | 6227 | cat > conftest.$ac_ext <<EOF |
6229 | -#line 6230 "configure" | |
6228 | +#line 6229 "configure" | |
6230 | 6229 | #include "confdefs.h" |
6231 | 6230 | #include <tclInt.h> |
6232 | 6231 | EOF |
6233 | 6232 | 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; } | |
6235 | 6234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6236 | 6235 | if test -z "$ac_err"; then |
6237 | 6236 | rm -rf conftest* |
@@ -6291,7 +6290,7 @@ fi | ||
6291 | 6290 | # |
6292 | 6291 | no_tk=true |
6293 | 6292 | 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 | |
6295 | 6294 | # Check whether --with-tkinclude or --without-tkinclude was given. |
6296 | 6295 | if test "${with_tkinclude+set}" = set; then |
6297 | 6296 | withval="$with_tkinclude" |
@@ -6357,17 +6356,17 @@ fi | ||
6357 | 6356 | if test x"${ac_cv_c_tkh}" = x ; then |
6358 | 6357 | ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'` |
6359 | 6358 | 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 | |
6361 | 6360 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6362 | 6361 | echo $ac_n "(cached) $ac_c" 1>&6 |
6363 | 6362 | else |
6364 | 6363 | cat > conftest.$ac_ext <<EOF |
6365 | -#line 6366 "configure" | |
6364 | +#line 6365 "configure" | |
6366 | 6365 | #include "confdefs.h" |
6367 | 6366 | #include <tk.h> |
6368 | 6367 | EOF |
6369 | 6368 | 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; } | |
6371 | 6370 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6372 | 6371 | if test -z "$ac_err"; then |
6373 | 6372 | rm -rf conftest* |
@@ -6413,7 +6412,7 @@ fi | ||
6413 | 6412 | |
6414 | 6413 | |
6415 | 6414 | 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 | |
6417 | 6416 | if test x"${ac_cv_c_itclh}" = x ; then |
6418 | 6417 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do |
6419 | 6418 | if test -f $i/generic/itcl.h ; then |
@@ -6436,7 +6435,7 @@ fi | ||
6436 | 6435 | |
6437 | 6436 | |
6438 | 6437 | 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 | |
6440 | 6439 | if test x"${ac_cv_c_itkh}" = x ; then |
6441 | 6440 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do |
6442 | 6441 | if test -f $i/generic/itk.h ; then |
@@ -6459,7 +6458,7 @@ fi | ||
6459 | 6458 | |
6460 | 6459 | |
6461 | 6460 | 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 | |
6463 | 6462 | if test x"${ac_cv_c_tixh}" = x ; then |
6464 | 6463 | for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do |
6465 | 6464 | if test -f $i/generic/tix.h ; then |
@@ -6497,7 +6496,7 @@ if test "${with_itclconfig+set}" = set; then | ||
6497 | 6496 | fi |
6498 | 6497 | |
6499 | 6498 | 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 | |
6501 | 6500 | if eval "test \"`echo '$''{'ac_cv_c_itclconfig'+set}'`\" = set"; then |
6502 | 6501 | echo $ac_n "(cached) $ac_c" 1>&6 |
6503 | 6502 | else |
@@ -6609,7 +6608,7 @@ if test "${with_itkconfig+set}" = set; then | ||
6609 | 6608 | fi |
6610 | 6609 | |
6611 | 6610 | 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 | |
6613 | 6612 | if eval "test \"`echo '$''{'ac_cv_c_itkconfig'+set}'`\" = set"; then |
6614 | 6613 | echo $ac_n "(cached) $ac_c" 1>&6 |
6615 | 6614 | else |
@@ -6721,7 +6720,7 @@ if test "${with_tixconfig+set}" = set; then | ||
6721 | 6720 | fi |
6722 | 6721 | |
6723 | 6722 | 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 | |
6725 | 6724 | if eval "test \"`echo '$''{'ac_cv_c_tixconfig'+set}'`\" = set"; then |
6726 | 6725 | echo $ac_n "(cached) $ac_c" 1>&6 |
6727 | 6726 | else |
@@ -6860,7 +6859,7 @@ fi | ||
6860 | 6859 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
6861 | 6860 | # --without-x overrides everything else, but does not touch the cache. |
6862 | 6861 | 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 | |
6864 | 6863 | |
6865 | 6864 | # Check whether --with-x or --without-x was given. |
6866 | 6865 | if test "${with_x+set}" = set; then |
@@ -6922,12 +6921,12 @@ if test "$ac_x_includes" = NO; then | ||
6922 | 6921 | |
6923 | 6922 | # First, try using that file with no special directory specified. |
6924 | 6923 | cat > conftest.$ac_ext <<EOF |
6925 | -#line 6926 "configure" | |
6924 | +#line 6925 "configure" | |
6926 | 6925 | #include "confdefs.h" |
6927 | 6926 | #include <$x_direct_test_include> |
6928 | 6927 | EOF |
6929 | 6928 | 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; } | |
6931 | 6930 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6932 | 6931 | if test -z "$ac_err"; then |
6933 | 6932 | rm -rf conftest* |
@@ -6996,14 +6995,14 @@ if test "$ac_x_libraries" = NO; then | ||
6996 | 6995 | ac_save_LIBS="$LIBS" |
6997 | 6996 | LIBS="-l$x_direct_test_library $LIBS" |
6998 | 6997 | cat > conftest.$ac_ext <<EOF |
6999 | -#line 7000 "configure" | |
6998 | +#line 6999 "configure" | |
7000 | 6999 | #include "confdefs.h" |
7001 | 7000 | |
7002 | 7001 | int main() { |
7003 | 7002 | ${x_direct_test_function}() |
7004 | 7003 | ; return 0; } |
7005 | 7004 | 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 | |
7007 | 7006 | rm -rf conftest* |
7008 | 7007 | LIBS="$ac_save_LIBS" |
7009 | 7008 | # We can link X programs with no special library path. |
@@ -7285,7 +7284,7 @@ files="${files} config/nm-empty.h" | ||
7285 | 7284 | links="${links} nm.h" |
7286 | 7285 | fi |
7287 | 7286 | 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 | |
7289 | 7288 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
7290 | 7289 | echo $ac_n "(cached) $ac_c" 1>&6 |
7291 | 7290 | else |
@@ -7309,12 +7308,12 @@ fi | ||
7309 | 7308 | |
7310 | 7309 | |
7311 | 7310 | 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 | |
7313 | 7312 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
7314 | 7313 | echo $ac_n "(cached) $ac_c" 1>&6 |
7315 | 7314 | else |
7316 | 7315 | cat > conftest.$ac_ext <<EOF |
7317 | -#line 7318 "configure" | |
7316 | +#line 7317 "configure" | |
7318 | 7317 | #include "confdefs.h" |
7319 | 7318 | |
7320 | 7319 | int main() { |
@@ -7325,7 +7324,7 @@ int main() { | ||
7325 | 7324 | return __CYGWIN__; |
7326 | 7325 | ; return 0; } |
7327 | 7326 | 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 | |
7329 | 7328 | rm -rf conftest* |
7330 | 7329 | ac_cv_cygwin=yes |
7331 | 7330 | else |
@@ -7342,19 +7341,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6 | ||
7342 | 7341 | CYGWIN= |
7343 | 7342 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
7344 | 7343 | 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 | |
7346 | 7345 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
7347 | 7346 | echo $ac_n "(cached) $ac_c" 1>&6 |
7348 | 7347 | else |
7349 | 7348 | cat > conftest.$ac_ext <<EOF |
7350 | -#line 7351 "configure" | |
7349 | +#line 7350 "configure" | |
7351 | 7350 | #include "confdefs.h" |
7352 | 7351 | |
7353 | 7352 | int main() { |
7354 | 7353 | return __MINGW32__; |
7355 | 7354 | ; return 0; } |
7356 | 7355 | 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 | |
7358 | 7357 | rm -rf conftest* |
7359 | 7358 | ac_cv_mingw32=yes |
7360 | 7359 | else |
@@ -7373,7 +7372,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes | ||
7373 | 7372 | |
7374 | 7373 | |
7375 | 7374 | 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 | |
7377 | 7376 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
7378 | 7377 | echo $ac_n "(cached) $ac_c" 1>&6 |
7379 | 7378 | else |
@@ -7383,7 +7382,7 @@ else | ||
7383 | 7382 | rm -f conftest* |
7384 | 7383 | echo 'int main () { return 0; }' > conftest.$ac_ext |
7385 | 7384 | 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 | |
7387 | 7386 | for file in conftest.*; do |
7388 | 7387 | case $file in |
7389 | 7388 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; |
@@ -454,12 +454,14 @@ if test "${enable_netrom}" = "yes"; then | ||
454 | 454 | CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c" |
455 | 455 | fi |
456 | 456 | |
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 | |
457 | 462 | AC_ARG_ENABLE(build-warnings, |
458 | 463 | [ --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 | |
463 | 465 | yes) ;; |
464 | 466 | no) build_warnings="-w";; |
465 | 467 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
@@ -470,7 +472,7 @@ case "${enableval}" in | ||
470 | 472 | esac |
471 | 473 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
472 | 474 | echo "Setting warning flags = $build_warnings" 6>&1 |
473 | -fi | |
475 | +fi])dnl | |
474 | 476 | WARN_CFLAGS="" |
475 | 477 | WERROR_CFLAGS="" |
476 | 478 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
@@ -483,8 +485,7 @@ then | ||
483 | 485 | *) WARN_CFLAGS="${WARN_CFLAGS} $w" |
484 | 486 | esac |
485 | 487 | done |
486 | -fi],[build_warnings=""])dnl | |
487 | - | |
488 | +fi | |
488 | 489 | AC_SUBST(WARN_CFLAGS) |
489 | 490 | AC_SUBST(WERROR_CFLAGS) |
490 | 491 |