Commit 1c1290af authored by Mark Andrews's avatar Mark Andrews

allow -Werror to be enabled; turn on -Werror by default with --enable-developer

(cherry picked from commit 2be0f12a)
parent 39cad8fb
......@@ -972,6 +972,7 @@ with_gnu_ld
with_sysroot
enable_libtool_lock
enable_libbind
enable_warn_error
enable_developer
enable_seccomp
with_python
......@@ -1662,6 +1663,7 @@ Optional Features:
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-libbind deprecated
--enable-warn-error turn on -Werror when compiling
--enable-developer enable developer build settings
--enable-seccomp enable support for libseccomp sysstem call filtering
[default=no]
......@@ -11401,6 +11403,12 @@ It is available from http://www.isc.org as a separate download." "$LINENO" 5
;;
esac
# Check whether --enable-warn_error was given.
if test "${enable_warn_error+set}" = set; then :
enableval=$enable_warn_error;
fi
# Check whether --enable-developer was given.
if test "${enable_developer+set}" = set; then :
enableval=$enable_developer;
......@@ -11415,6 +11423,7 @@ yes)
test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
test "${enable_symtable+set}" = set || enable_symtable=all
test "${enable_sit+set}" = set || enable_sit=yes
test "${enable_warn_error+set}" = set || enable_warn_error=yes
;;
esac
......@@ -16777,6 +16786,9 @@ $as_echo "no" >&6; }
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
;;
esac
if test "X$enable_warn_error" = Xyes; then
STD_CWARNINGS="$STD_CWARNINGS -Werror"
fi
else
case $host in
*-dec-osf*)
......
......@@ -77,6 +77,8 @@ It is available from http://www.isc.org as a separate download.])
;;
esac
AC_ARG_ENABLE(warn_error, [ --enable-warn-error turn on -Werror when compiling])
AC_ARG_ENABLE(developer, [ --enable-developer enable developer build settings])
case "$enable_developer" in
yes)
......@@ -87,6 +89,7 @@ yes)
test "${with_dlz_filesystem+set}" = set || with_dlz_filesystem=yes
test "${enable_symtable+set}" = set || enable_symtable=all
test "${enable_sit+set}" = set || enable_sit=yes
test "${enable_warn_error+set}" = set || enable_warn_error=yes
;;
esac
......@@ -2242,6 +2245,9 @@ if test "X$GCC" = "Xyes"; then
BACKTRACECFLAGS="$BACKTRACECFLAGS -Wl,+vnocompatwarnings"
;;
esac
if test "X$enable_warn_error" = Xyes; then
STD_CWARNINGS="$STD_CWARNINGS -Werror"
fi
else
case $host in
*-dec-osf*)
......
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