diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-10-28 02:01:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-10-28 02:01:32 +0000 |
commit | b9a9cde40b84c0c939b1f068befce7530393b4de (patch) | |
tree | a079d7ba9c5c0883ba7c1b669f4756d01ea4e0bd /gdb/configure | |
parent | 32dc84ef551a1f8d12a827f89a86f7a1d197a369 (diff) | |
download | gdb-b9a9cde40b84c0c939b1f068befce7530393b4de.zip gdb-b9a9cde40b84c0c939b1f068befce7530393b4de.tar.gz gdb-b9a9cde40b84c0c939b1f068befce7530393b4de.tar.bz2 |
Unify (well almost) --enable-build-warnings configuration option
across GDB and SIM directories.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-x | gdb/configure | 84 |
1 files changed, 44 insertions, 40 deletions
diff --git a/gdb/configure b/gdb/configure index 29870c7..f69fa31 100755 --- a/gdb/configure +++ b/gdb/configure @@ -18,13 +18,15 @@ ac_help="$ac_help ac_help="$ac_help --enable-netrom " ac_help="$ac_help - --enable-build-warnings Enable compiler warnings if gcc is used" + --enable-build-warnings Enable build-time compiler warnings if gcc is used" ac_help="$ac_help --with-mmalloc Use memory mapped malloc package" +# start-sanitize-carp ac_help="$ac_help --enable-carp Configure alternative readaptive paradigm " ac_help="$ac_help --enable-targets alternative target configurations" +# end-sanitize-carp ac_help="$ac_help --enable-ide Enable IDE support" ac_help="$ac_help @@ -4616,20 +4618,22 @@ if test "${enable_netrom}" = "yes"; then CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c" fi -# Check whether --enable-warnings or --disable-warnings was given. -if test "${enable_warnings+set}" = set; then - enableval="$enable_warnings" - case "${enableval}" in -yes) enable_build_warnings=yes ;; -no) enable_build_warnings=no ;; -*) { echo "configure: error: bad value ${enableval} given for warnings options" 1>&2; exit 1; } ;; +# Check whether --enable-build-warnings or --disable-build-warnings was given. +if test "${enable_build_warnings+set}" = set; then + enableval="$enable_build_warnings" + build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" +case "${enableval}" in + yes) ;; + no) build_warnings="-w";; + *) ;; esac +else + build_warnings="" fi - -if test "x$enable_build_warnings" = xyes -a "x$GCC" = xyes +if test "x${build_warnings}" != x -a "x$GCC" = xyes then - WARN_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes" + WARN_CFLAGS="${build_warnings}" else WARN_CFLAGS="" fi @@ -4891,12 +4895,12 @@ fi # In the cygwin32 environment, we need some additional flags. echo $ac_n "checking for cygwin32""... $ac_c" 1>&6 -echo "configure:4895: checking for cygwin32" >&5 +echo "configure:4897: checking for cygwin32" >&5 if eval "test \"`echo '$''{'gdb_cv_os_cygwin32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 4900 "configure" +#line 4902 "configure" #include "confdefs.h" #ifdef __CYGWIN32__ @@ -4955,7 +4959,7 @@ if test "${with_tclconfig+set}" = set; then fi echo $ac_n "checking for Tcl configuration""... $ac_c" 1>&6 -echo "configure:4959: checking for Tcl configuration" >&5 +echo "configure:4961: checking for Tcl configuration" >&5 if eval "test \"`echo '$''{'ac_cv_c_tclconfig'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5063,7 +5067,7 @@ if test "${with_tkconfig+set}" = set; then fi echo $ac_n "checking for Tk configuration""... $ac_c" 1>&6 -echo "configure:5067: checking for Tk configuration" >&5 +echo "configure:5069: checking for Tk configuration" >&5 if eval "test \"`echo '$''{'ac_cv_c_tkconfig'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5159,7 +5163,7 @@ fi no_tcl=true echo $ac_n "checking for Tcl private headers. dir=${configdir}""... $ac_c" 1>&6 -echo "configure:5163: checking for Tcl private headers. dir=${configdir}" >&5 +echo "configure:5165: checking for Tcl private headers. dir=${configdir}" >&5 # Check whether --with-tclinclude or --without-tclinclude was given. if test "${with_tclinclude+set}" = set; then withval="$with_tclinclude" @@ -5225,17 +5229,17 @@ fi if test x"${ac_cv_c_tclh}" = x ; then ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6 -echo "configure:5229: checking for tclInt.h" >&5 +echo "configure:5231: checking for tclInt.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5234 "configure" +#line 5236 "configure" #include "confdefs.h" #include <tclInt.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5295,7 +5299,7 @@ fi # no_tk=true echo $ac_n "checking for Tk private headers""... $ac_c" 1>&6 -echo "configure:5299: checking for Tk private headers" >&5 +echo "configure:5301: checking for Tk private headers" >&5 # Check whether --with-tkinclude or --without-tkinclude was given. if test "${with_tkinclude+set}" = set; then withval="$with_tkinclude" @@ -5361,17 +5365,17 @@ fi if test x"${ac_cv_c_tkh}" = x ; then ac_safe=`echo "tk.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for tk.h""... $ac_c" 1>&6 -echo "configure:5365: checking for tk.h" >&5 +echo "configure:5367: checking for tk.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5370 "configure" +#line 5372 "configure" #include "confdefs.h" #include <tk.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5417,7 +5421,7 @@ fi echo $ac_n "checking for Itcl private headers. srcdir=${srcdir}""... $ac_c" 1>&6 -echo "configure:5421: checking for Itcl private headers. srcdir=${srcdir}" >&5 +echo "configure:5423: checking for Itcl private headers. srcdir=${srcdir}" >&5 if test x"${ac_cv_c_itclh}" = x ; then for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ; do if test -f $i/src/itcl.h ; then @@ -5440,7 +5444,7 @@ fi echo $ac_n "checking for Tix private headers. srcdir=${srcdir}""... $ac_c" 1>&6 -echo "configure:5444: checking for Tix private headers. srcdir=${srcdir}" >&5 +echo "configure:5446: checking for Tix private headers. srcdir=${srcdir}" >&5 if test x"${ac_cv_c_tixh}" = x ; then for i in ${srcdir}/../tix ${srcdir}/../../tix ${srcdir}/../../../tix ; do if test -f $i/generic/tix.h ; then @@ -5534,7 +5538,7 @@ fi # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:5538: checking for X" >&5 +echo "configure:5540: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then @@ -5596,12 +5600,12 @@ if test "$ac_x_includes" = NO; then # First, try using that file with no special directory specified. cat > conftest.$ac_ext <<EOF -#line 5600 "configure" +#line 5602 "configure" #include "confdefs.h" #include <$x_direct_test_include> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5670,14 +5674,14 @@ if test "$ac_x_libraries" = NO; then ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <<EOF -#line 5674 "configure" +#line 5676 "configure" #include "confdefs.h" int main() { ${x_direct_test_function}() ; return 0; } EOF -if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -5940,7 +5944,7 @@ links="${links} nm.h" fi # start-sanitize-gdbtk echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:5944: checking whether ln -s works" >&5 +echo "configure:5946: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -5975,19 +5979,19 @@ fi echo $ac_n "checking for cygwin32 environment""... $ac_c" 1>&6 -echo "configure:5979: checking for cygwin32 environment" >&5 +echo "configure:5981: checking for cygwin32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_cygwin32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 5984 "configure" +#line 5986 "configure" #include "confdefs.h" int main() { return __CYGWIN32__; ; return 0; } EOF -if { (eval echo configure:5991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin32=yes else @@ -6004,19 +6008,19 @@ echo "$ac_t""$ac_cv_cygwin32" 1>&6 CYGWIN32= test "$ac_cv_cygwin32" = yes && CYGWIN32=yes echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:6008: checking for mingw32 environment" >&5 +echo "configure:6010: checking for mingw32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 6013 "configure" +#line 6015 "configure" #include "confdefs.h" int main() { return __MINGW32__; ; return 0; } EOF -if { (eval echo configure:6020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else @@ -6035,7 +6039,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:6039: checking for executable suffix" >&5 +echo "configure:6041: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -6045,10 +6049,10 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in - *.c | *.o | *.obj | *.ilk | *.pdb) ;; + *.c | *.o | *.obj) ;; *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; esac done |