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:
committed by
martti.rannanjarvi
parent
39abdd9343
commit
2f8682fc0d
@@ -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
|
||||
|
||||
@@ -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)]),
|
||||
|
||||
Reference in New Issue
Block a user