summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-24 22:08:39 +0000
committerneroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-24 22:08:39 +0000
commitc0c5068d37a55b542e0577841a1881dbf66b2a8b (patch)
treef57c21720c18cb974ff82e4d9ec3569cc33c6d09 /gcc/configure
parent98e744693bb32e059f2525974f09b35f69b097e5 (diff)
downloadgcc-c0c5068d37a55b542e0577841a1881dbf66b2a8b.tar.gz
(gcc)
* configure.ac: Add --enable-werror-always (for top level bootstrap support). * configure: Regenerate. (top level) * configure.in (top level bootstrap support): Rework --enable-werror to set @stage2_werror_flag@. * configure: Regenerate. * Makefile.tpl (top level bootstrap support): Pass @stage2_werror_flag@ down to configure in stages 2 and 3. * Makefile.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79935 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure16
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure
index 54fac9706c9..db55887e227 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -854,6 +854,7 @@ Optional Features:
put copies of generated files in source dir
intended for creating source tarballs for users
without texinfo bison or flex.
+ --enable-werror-always enable -Werror always
--enable-werror enable -Werror in bootstrap stage2 and later
--enable-checking=LIST
enable expensive run-time checks. With LIST,
@@ -3894,6 +3895,19 @@ if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
strict1_warn="${strict1_warn} -Wold-style-definition"
fi
+# Enable -Werror, period.
+# Check whether --enable-werror_always or --disable-werror_always was given.
+if test "${enable_werror_always+set}" = set; then
+ enableval="$enable_werror_always"
+
+else
+ enable_werror_always=no
+fi;
+if test x${enable_werror_always} = xyes ; then
+ strict1_warn="${strict1_warn} -Werror"
+ WERROR=-Werror
+fi
+
# If the native compiler is GCC, we can enable warnings even in stage1.
# That's useful for people building cross-compilers, or just running a
# quick `make'.
@@ -5247,7 +5261,7 @@ if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
else
ac_prog_version=`$MAKEINFO --version 2>&1 |
sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
- echo "configure:5250: version of makeinfo is $ac_prog_version" >&5
+ echo "configure:5264: version of makeinfo is $ac_prog_version" >&5
case $ac_prog_version in
'') gcc_cv_prog_makeinfo_modern=no;;
4.[2-9]*)