mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '4043-fix-mul-check' into 'main'
configure: Fix __builtin_mul_overflow() compiler support check Closes #4043 See merge request isc-projects/bind9!7877
This commit is contained in:
commit
0d9dd5ed24
1 changed files with 4 additions and 2 deletions
|
|
@ -1247,8 +1247,10 @@ AC_LINK_IFELSE(
|
|||
AC_MSG_CHECKING([compiler support for __builtin_mul_overflow()])
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM(
|
||||
[[#include <limits.h>]],
|
||||
[[return (__builtin_mul_overflow(UINT64_C(UINT64_MAX), UINT64_C(UINT64_MAX), &(uint64_t){ 0 }));]]
|
||||
[[#include <limits.h>
|
||||
#include <stdint.h>
|
||||
]],
|
||||
[[return (__builtin_mul_overflow(UINT64_MAX, UINT64_MAX, &(uint64_t){ 0 }));]]
|
||||
)],
|
||||
[AC_MSG_RESULT([yes])
|
||||
AC_DEFINE([HAVE_BUILTIN_MUL_OVERFLOW], [1], [define if the compiler supports __builtin_mul_overflow().])
|
||||
|
|
|
|||
Loading…
Reference in a new issue