Commit 17653702 authored by David Fuhrmann's avatar David Fuhrmann

m4: fix detection of supported "-Wxxx" flags with clang

Clang does not fail, but only prints a warning by default for unknown
-W options.
parent 36cb0f52
...@@ -13,7 +13,7 @@ AC_DEFUN([RDC_PROG_CC_FLAGS_IFELSE], ...@@ -13,7 +13,7 @@ AC_DEFUN([RDC_PROG_CC_FLAGS_IFELSE],
CFLAGS_save="${CFLAGS}" CFLAGS_save="${CFLAGS}"
as_ac_var=`echo "ac_cv_prog_cc_flags_$1" | $as_tr_sh` as_ac_var=`echo "ac_cv_prog_cc_flags_$1" | $as_tr_sh`
AC_CACHE_CHECK([if $CC accepts $1], [$as_ac_var], [ AC_CACHE_CHECK([if $CC accepts $1], [$as_ac_var], [
CFLAGS="${CFLAGS} $1" CFLAGS="${CFLAGS} -Werror $1"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM()], [
eval "$as_ac_var=yes" eval "$as_ac_var=yes"
],[ ],[
......
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