Removed superflous code.
[deliverable/binutils-gdb.git] / gdb / configure.in
index 8f1afa83674fe404cfb01603443a4a58597bec4a..2e319e3b726de703c373df2646d547cdf066dff0 100644 (file)
@@ -294,17 +294,23 @@ if test "${enable_netrom}" = "yes"; then
         CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
 fi
 
-AC_ARG_ENABLE(warnings,
-[  --enable-build-warnings Enable compiler warnings if gcc is used],
-[case "${enableval}" in
-yes)   enable_build_warnings=yes ;;
-no)    enable_build_warnings=no ;;
-*)     AC_MSG_ERROR(bad value ${enableval} given for warnings options) ;;
-esac])
-
-if test "x$enable_build_warnings" = xyes -a "x$GCC" = xyes
+AC_ARG_ENABLE(build-warnings,
+[  --enable-build-warnings             Enable build-time compiler warnings if gcc is used],
+[build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
+case "${enableval}" in
+  yes) ;;
+  no)  build_warnings="-w";;
+dnl  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
+dnl        build_warnings="${build_warnings} ${t}";;
+dnl  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
+dnl        build_warnings="${t} ${build_warnings}";;
+dnl  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
+  *)   ;;
+esac],[build_warnings=""])dnl
+
+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
@@ -532,7 +538,7 @@ AC_ARG_ENABLE(gdbtk,
        AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
 esac],
 [
-# Default is on for everything but go32 and cygwin32
+# Default is on for everything but go32 and Cygwin
 case "$host" in
     *go32* | *windows*)
        ;;
@@ -541,7 +547,7 @@ case "$host" in
     esac
 ])
 
-# In the cygwin32 environment, we need some additional flags.
+# In the Cygwin environment, we need some additional flags.
 AC_CACHE_CHECK([for cygwin32], gdb_cv_os_cygwin32,
 [AC_EGREP_CPP(lose, [
 #ifdef __CYGWIN32__
@@ -587,7 +593,7 @@ if test "${enable_gdbtk}" = "yes"; then
           TIXVERSION=4.1.8.0
           . ${ac_cv_c_tclconfig}/tclConfig.sh
           case "${host}" in
-          *-*-cygwin32*)
+          *-*-cygwin*)
                tixdir=../tix/win/tcl8.0
                ;;
           *)
@@ -659,7 +665,7 @@ AC_PATH_X
 AC_ARG_WITH(sim-gpu2,
 [  --with-sim-gpu2=DIR     Use GPU2 library under given DIR],
 [case "${target}" in
-  mips*-sky-*)
+  mips*-sky*-*)
     if test -d "${withval}"
     then
       LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
@@ -673,7 +679,7 @@ esac])dnl
 AC_ARG_WITH(sim-funit,
 [  --with-sim-funit=DIR    Use target FP lib under given DIR],
 [case "${target}" in
-  mips*-sky-*)
+  mips*-sky*-*)
     if test -d "${withval}"
     then
       LIBS="${LIBS} -L${withval}/lib -lfunit"
This page took 0.025159 seconds and 4 git commands to generate.