aboutsummaryrefslogtreecommitdiff
path: root/gprof/configure.in
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-03-16 17:18:17 +0000
committerNick Clifton <nickc@redhat.com>2005-03-16 17:18:17 +0000
commit569acd2ce265a3bfeef4f025bb1b4da52bcce5d2 (patch)
tree83813fa28b4519bb4871f5668b7f5e4ad2d90973 /gprof/configure.in
parentec442778f9daed1b248114f2ba9676ec50449daa (diff)
downloadgdb-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.zip
gdb-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.tar.gz
gdb-569acd2ce265a3bfeef4f025bb1b4da52bcce5d2.tar.bz2
Rename switch to enable/disable -Werror to --enable-werror/--disable-werror
for compatibility with gcc.
Diffstat (limited to 'gprof/configure.in')
-rw-r--r--gprof/configure.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/gprof/configure.in b/gprof/configure.in
index de9d791..01dd81f 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -34,21 +34,21 @@ AC_CHECK_HEADERS(sys/gmon_out.h)
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
-AC_ARG_ENABLE(error-on-warning,
- [ --enable-error-on-warning treat compile warnings as errors],
+AC_ARG_ENABLE(werror,
+ [ --enable-werror treat compile warnings as errors],
[case "${enableval}" in
yes | y) ERROR_ON_WARNING="yes" ;;
no | n) ERROR_ON_WARNING="no" ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
-# Enable -Werror by default, suppressing it only for --disable-error-on-warning
+# Enable -Werror by default, suppressing it only for --disable-werror
# or --disable-build-warnings.
if test "${ERROR_ON_WARNING}" != no
then
build_warnings="$build_warnings -Werror"
fi
-
+
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[case "${enableval}" in