configure: check for the stdatomic.h header in configure
... and only set HAVE_ATOMIC if that header exists since we use typedefes set in it. Reported-by: Ryan Schmidt Fixes #9059 Closes #9060
This commit is contained in:
parent
33fd57b8ff
commit
a68074b5db
@ -6570,10 +6570,11 @@ AC_DEFUN([CURL_COVERAGE],[
|
|||||||
])
|
])
|
||||||
|
|
||||||
dnl CURL_ATOMIC
|
dnl CURL_ATOMIC
|
||||||
dnl --------------------------------------------------
|
dnl -------------------------------------------------------------
|
||||||
dnl Check if _Atomic works
|
dnl Check if _Atomic works. But only check if stdatomic.h exists.
|
||||||
dnl
|
dnl
|
||||||
AC_DEFUN([CURL_ATOMIC],[
|
AC_DEFUN([CURL_ATOMIC],[
|
||||||
|
AC_CHECK_HEADERS(stdatomic.h, [
|
||||||
AC_MSG_CHECKING([if _Atomic is available])
|
AC_MSG_CHECKING([if _Atomic is available])
|
||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
@ -6590,4 +6591,5 @@ AC_DEFUN([CURL_ATOMIC],[
|
|||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
tst_atomic="no"
|
tst_atomic="no"
|
||||||
])
|
])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user