diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-22 23:42:16 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-22 23:42:16 +0200 |
commit | 77a00bc73b2ab8eb0924e09fe18f5b0e694949e1 (patch) | |
tree | 157b685c4816bfac5040ff0011bbaeacc8568546 /m4 | |
parent | 0816953be5f1f5f46f6bf45fee44d25f75e2a291 (diff) | |
parent | e64ec850471d61ff159cea60c20d5e2c7976c33e (diff) | |
download | xine-lib-77a00bc73b2ab8eb0924e09fe18f5b0e694949e1.tar.gz xine-lib-77a00bc73b2ab8eb0924e09fe18f5b0e694949e1.tar.bz2 |
Merge fix for 54ad8b80e6fc.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/attributes.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/m4/attributes.m4 b/m4/attributes.m4 index ed15b6670..fa379a2fe 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -71,9 +71,11 @@ dnl Other compilers don't support -Werror per se, but they support dnl an equivalent flag: dnl - Sun Studio compiler supports -errwarn=%all AC_DEFUN([CC_CHECK_WERROR], [ - AC_CACHE_VAL([cc_cv_werror], - [CC_CHECK_CFLAGS([-Werror], [cc_cv_werror=-Werror], - [CC_CHECK_CFLAGS([-errwarn=%all], [cc_cv_werror=-errwarn=%all])]) + AC_CACHE_CHECK( + [for $CC way to treat warnings as errors], + [cc_cv_werror], + [CC_CHECK_CFLAGS_SILENT([-Werror], [cc_cv_werror=-Werror], + [CC_CHECK_CFLAGS_SILENT([-errwarn=%all], [cc_cv_werror=-errwarn=%all])]) ]) ]) |