Commit b6f9f935 authored by Jan Včelák's avatar Jan Včelák 🚀

build: avoid clang version detection

OS X versioning of clang is completely different. Let's make the
user decide.
parent 0662b13a
......@@ -113,11 +113,10 @@ AC_ARG_ENABLE([fastparser],
AS_IF([test "$enable_fastparser" = "yes"],[
AS_IF([test -n "$CC_CLANG_VERSION"],[
clang_vernum=$(printf "%02d%02d%02d" $(echo "$CC_CLANG_VERSION" | tr "." " "))
AS_IF([test $clang_vernum -lt 030900],[
AC_MSG_WARN([Fast parser disabled due to a compiler bug, see])
AC_MSG_WARN([Fast zone parser disabled due to possible compiler bug.])
AC_MSG_WARN([See for details.])
AC_MSG_WARN([Use --enable-fastparser=force if your know your clang is fixed.])
......@@ -6,7 +6,8 @@ AC_DEFUN([AX_CC_CLANG],[
$CC -x c -dM -E /dev/null | \
$GREP '__clang_version__' | \
$EGREP -o '[[0-9]]+\.[[0-9]]+\.[[0-9]]+'
$GREP -o '".*"' | \
$SED 's/^"\(.*\)"$/\1/g'
if test -n "$CC_CLANG_VERSION"; then
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