1
0
mirror of https://github.com/dovecot/core.git synced 2026-10-23 22:08:58 +03:00

m4: adding check for clang -Wstrict-bool availability

This commit is contained in:
Marco Bettini
2022-05-02 11:13:41 +00:00
committed by martti.rannanjarvi
parent 39abdd9343
commit 2f8682fc0d
2 changed files with 11 additions and 0 deletions

View File

@@ -316,6 +316,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h \
sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h crypt.h)
CC_CLANG
CC_STRICT_BOOL
AC_LD_WHOLE_ARCHIVE
DC_DOVECOT_HARDENING
DC_DOVECOT_FUZZER

View File

@@ -421,6 +421,7 @@ AC_DEFUN([DC_DOVECOT],[
])
CC_CLANG
CC_STRICT_BOOL
DC_DOVECOT_CFLAGS
DC_DOVECOT_HARDENING
@@ -566,6 +567,15 @@ AC_DEFUN([CC_CLANG],[
AC_MSG_RESULT([$have_clang])
])
AC_DEFUN([CC_STRICT_BOOL], [
AS_IF([test $have_clang = yes], [
AC_REQUIRE([gl_UNKNOWN_WARNINGS_ARE_ERRORS])
gl_COMPILER_OPTION_IF([-Wstrict-bool], [
AC_DEFINE(HAVE_STRICT_BOOL,, [we have strict bool])
])
])
])
AC_DEFUN([DOVECOT_WANT_UBSAN], [
AC_ARG_ENABLE(ubsan,
AS_HELP_STRING([--enable-ubsan], [Enable undefined behaviour sanitizes (default=no)]),