<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/rockdaboot">Tim Rühsen</a>
commented:
</p>
<div style="">
<p dir="auto">Try something like this ?</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># check for gcc's atomic read-add-write functionality</span>
<span id="LC2" class="line" lang="plaintext">AC_MSG_CHECKING([for __sync_fetch_and_add (int)])</span>
<span id="LC3" class="line" lang="plaintext">AC_LINK_IFELSE(</span>
<span id="LC4" class="line" lang="plaintext">   [AC_LANG_SOURCE([</span>
<span id="LC5" class="line" lang="plaintext">    int main(void) { return __sync_fetch_and_add((int *)0, 0); }</span>
<span id="LC6" class="line" lang="plaintext">   ])],</span>
<span id="LC7" class="line" lang="plaintext">   [AC_DEFINE([WITH_SYNC_FETCH_AND_ADD], [1], [use __sync_fetch_and_add]) AC_MSG_RESULT([yes])],</span>
<span id="LC8" class="line" lang="plaintext">   [AC_MSG_RESULT([no])]</span>
<span id="LC9" class="line" lang="plaintext">)</span></code></pre>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/1053#note_200244406">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/0d237969f67b12d9710a9432a91df861/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/merge_requests/1053#note_200244406"}}</script>


</p>
</div>
</body>
</html>