Add check for stdatomic.h
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 20 May 2019 16:45:17 +0000 (16:45 +0000)
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 20 May 2019 16:45:17 +0000 (16:45 +0000)
If not found, try adding the gcc compat header.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38138 b3059339-0415-0410-9bf9-f77b7e298cf2

configure

index fb4556c..fc04a56 100755 (executable)
--- a/configure
+++ b/configure
@@ -3897,6 +3897,14 @@ fi
 echores "$_fast_inttypes"
 
 
+echocheck "stdatomic.h"
+stdatomic_h=no
+header_check stdatomic.h && stdatomic_h=yes
+echores "$stdatomic_h"
+if test "$stdatomic_h" = no ; then
+  CFLAGS="-Icompat/atomics/gcc $CFLAGS"
+fi
+
 echocheck "malloc.h"
 _malloc=no
 header_check malloc.h && _malloc=yes