diff --git a/acinclude.m4 b/acinclude.m4 index 955e8645..1a44f0c0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -22,6 +22,8 @@ AC_DEFUN([COMPILER_FLAGS], [ CFLAGS+=" -Wdeclaration-after-statement" CFLAGS+=" -Wmissing-declarations" CFLAGS+=" -Wredundant-decls" - CFLAGS+=" -Wcast-align" + if ( $CC -v 2>/dev/null | grep "gcc version" ); then + CFLAGS+=" -Wcast-align" + fi fi ])