Blame SOURCES/0033-configure-check-for-stdatomic.h.patch

c5e826
From 075519bceca7a8f4fa28a0b7c538f2f50d552d13 Mon Sep 17 00:00:00 2001
c5e826
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
c5e826
Date: Thu, 26 Nov 2020 14:56:08 +0100
c5e826
Subject: [PATCH 18/18] configure: check for stdatomic.h
c5e826
c5e826
Recent autofs patches adds dependency on automic_uint/_Atomic type from C11
c5e826
standard. This is supported in both gcc and clang for a long time now.
c5e826
c5e826
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
c5e826
---
c5e826
 configure.ac | 1 +
c5e826
 1 file changed, 1 insertion(+)
c5e826
c5e826
diff --git a/configure.ac b/configure.ac
c5e826
index 1af1d1785..0d24c4b35 100644
c5e826
--- a/configure.ac
c5e826
+++ b/configure.ac
c5e826
@@ -42,6 +42,7 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
c5e826
 AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
c5e826
 
c5e826
 AC_CHECK_HEADERS(stdint.h dlfcn.h)
c5e826
+AC_CHECK_HEADERS([stdatomic.h],,AC_MSG_ERROR([C11 atomic types are not supported]))
c5e826
 AC_CONFIG_HEADER(config.h)
c5e826
 
c5e826
 AC_CHECK_TYPES([errno_t], [], [], [[#include <errno.h>]])
c5e826
-- 
c5e826
2.21.3
c5e826