Commit f152dd88 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Rename --enable-maintainer-mode configure option as --enable-werror

parent 9703c5de
...@@ -48,10 +48,10 @@ AM_INIT_AUTOMAKE([subdir-objects]) ...@@ -48,10 +48,10 @@ AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
dnl Checks for command-line options dnl Checks for command-line options
AC_ARG_ENABLE([maintainer-mode], AC_ARG_ENABLE([werror],
[AS_HELP_STRING([--enable-maintainer-mode], [AS_HELP_STRING([--enable-werror],
[Turn on compile time warnings])], [Turn on compile time warnings])],
[maintainer_mode=$enableval], [maintainer_mode=no]) [werror=$enableval], [werror=no])
AC_ARG_ENABLE([app], AC_ARG_ENABLE([app],
[AS_HELP_STRING([--enable-app], [AS_HELP_STRING([--enable-app],
...@@ -370,7 +370,7 @@ case "${host}" in ...@@ -370,7 +370,7 @@ case "${host}" in
;; ;;
esac esac
if test "x$maintainer_mode" != "xno"; then if test "x$werror" != "xno"; then
CFLAGS="$CFLAGS -Wall -Wextra -Werror" CFLAGS="$CFLAGS -Wall -Wextra -Werror"
CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes" CFLAGS="$CFLAGS -Wmissing-prototypes -Wstrict-prototypes"
CFLAGS="$CFLAGS -Wmissing-declarations -Wpointer-arith" CFLAGS="$CFLAGS -Wmissing-declarations -Wpointer-arith"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment