OSDN Git Service

* configure: Regenerate after modifying bfd/warning.m4.
authorsje <sje>
Mon, 7 Nov 2005 22:19:01 +0000 (22:19 +0000)
committersje <sje>
Mon, 7 Nov 2005 22:19:01 +0000 (22:19 +0000)
gprof/ChangeLog
gprof/configure

index d5a5f36..0920641 100644 (file)
@@ -1,3 +1,7 @@
+2005-11-07  Steve Ellcey  <sje@cup.hp.com>
+
+       * configure: Regenerate after modifying bfd/warning.m4.
+
 2005-10-30  Mark Mitchell  <mark@codesourcery.com>
 
        * gprof.c (usage): Document "@FILE".
index e80bda9..6af2bdd 100755 (executable)
@@ -8350,7 +8350,7 @@ _ACEOF
 fi
 
 
-WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
+GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
 
 # Check whether --enable-werror or --disable-werror was given.
 if test "${enable_werror+set}" = set; then
@@ -8371,20 +8371,26 @@ fi
 
 NO_WERROR=
 if test "${ERROR_ON_WARNING}" = yes ; then
-    WARN_CFLAGS="$WARN_CFLAGS -Werror"
+    GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
     NO_WERROR="-Wno-error"
 fi
 
+if test "${GCC}" = yes ; then
+  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
+fi
+
 # Check whether --enable-build-warnings or --disable-build-warnings was given.
 if test "${enable_build_warnings+set}" = set; then
   enableval="$enable_build_warnings"
   case "${enableval}" in
-  yes) ;;
-  no)  WARN_CFLAGS="-w";;
+  yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
+  no)  if test "${GCC}" = yes ; then
+         WARN_CFLAGS="-w"
+       fi;;
   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
+        WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
-        WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
+        WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
 esac
 fi;