Check if compiler supports -fdiagnostics-color

Newer compilers such as clang or gcc 4.9 can emit colorized
diagnostics. For gcc, this flag must be present to switch
coloring on.
This commit is contained in:
Olaf Bergmann committed 2015-03-03 19:21:44 +01:00
1 parent 81bc3dd9f5
commit e3f555f396
1 file changed
+1
+1
View File
@@ -114,6 +114,7 @@ WARNING_CFLAGS="\
# check whether or not the compiler supports -Wlogical-op (clang does not...)
AX_CHECK_COMPILE_FLAG([-Wlogical-op], [WARNING_CFLAGS="$WARNING_CFLAGS -Wlogical-op"])
AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -fdiagnostics-color"])
AC_SUBST([WARNING_CFLAGS])