Skip to content

Commit

Permalink
m4: dovecot.m4 - Improve CC_CLANG
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and villesavolainen committed Feb 6, 2019
1 parent f72561f commit 3ecf90c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions m4/dovecot.m4
Expand Up @@ -519,9 +519,11 @@ m4_ifval([$2],
# End:
dnl * clang check
AC_DEFUN([CC_CLANG],[
AC_MSG_CHECKING([whether $CC is clang 3.3+])
AS_IF([$CC -dM -E -x c /dev/null | grep __clang__ > /dev/null 2>&1], [
have_clang=yes
AS_VAR_SET([have_clang], [yes])
], [
have_clang=no
AS_VAR_SET([have_clang], [no])
])
AC_MSG_RESULT([$have_clang])
])

0 comments on commit 3ecf90c

Please sign in to comment.