diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2007-01-04 12:12:28 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2007-01-04 12:12:28 +0300 |
commit | 48edcc3fccaddb1ea621b30657f7ad44519c54b2 (patch) | |
tree | e4b2e739a3c6ac8edc6a7b3682f36c6951750984 /configure.in | |
parent | 1f316156158b02471f0ea43c676413e7895a6fa5 (diff) |
2007-01-04 Paolo Bonzini <bonzini@gnu.org>
* configure.in: Use DEV-PHASE to detect the default for --enable-werror.
* configure: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 6c7189fce..a80846703 100644 --- a/configure.in +++ b/configure.in @@ -2488,10 +2488,13 @@ fi]) AC_SUBST(stage1_checking) # Enable -Werror in bootstrap stage2 and later. -# Change the default to "no" on release branches. AC_ARG_ENABLE(werror, [ --enable-werror enable -Werror in bootstrap stage2 and later], [], -[enable_werror=yes]) +[if test -d gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then + enable_werror=yes +else + enable_werror=no +fi]) case ${enable_werror} in yes) stage2_werror_flag="--enable-werror-always" ;; *) stage2_werror_flag="" ;; |