From b6bbec9d0d4b3d67e8d99ed2972fdf82eae4b7a2 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 15 Jun 2017 14:03:20 +0200 Subject: [PATCH] m4/ax_detect_clang.m4: update to refactoring of frontend InputKind The InputKind enum was replaced by a class with an embedded enum in clang revision 301442. The test for the old IK_C is placed in front of the one for a 5-argument setLangDefaults because the latter uses IK_C itself. Signed-off-by: Sven Verdoolaege --- m4/ax_detect_clang.m4 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/m4/ax_detect_clang.m4 b/m4/ax_detect_clang.m4 index 899130f..0008663 100644 --- a/m4/ax_detect_clang.m4 +++ b/m4/ax_detect_clang.m4 @@ -181,6 +181,9 @@ AC_EGREP_HEADER([initializeBuiltins], [clang/Basic/Builtins.h], [], [AC_DEFINE([initializeBuiltins], [InitializeBuiltins], [Define to InitializeBuiltins for older versions of clang])]) +AC_EGREP_HEADER([IK_C], [clang/Frontend/FrontendOptions.h], [], + [AC_DEFINE([IK_C], [InputKind::C], + [Define to InputKind::C for newer versions of clang])]) AC_TRY_COMPILE([ #include #include -- 2.11.4.GIT