Kill duplicate __sync_fetch_and_add()
[fio.git] / configure
index 2e859c7a7e4e915f245ac939c23659d8cd571a7a..085f01658f06221445577505831e2030aacb8d65 100755 (executable)
--- a/configure
+++ b/configure
@@ -271,7 +271,6 @@ CYGWIN*)
   output_sym "CONFIG_TCP_NODELAY"
   output_sym "CONFIG_TLS_THREAD"
   output_sym "CONFIG_IPV6"
-  output_sym "CONFIG_SFA"
   echo "CC=$CC" >> $config_host_mak
   echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
   exit 0
@@ -548,7 +547,7 @@ fi
 echo "Solaris AIO support           $solaris_aio"
 
 ##########################################
-# __sync_fetch_and_and test
+# __sync_fetch_and_add test
 sfaa="no"
 cat > $TMPC << EOF
 static int sfaa(int *ptr)
@@ -1493,24 +1492,6 @@ if compile_prog "" "" "getmntinfo"; then
 fi
 echo "getmntinfo                    $getmntinfo"
 
-##########################################
-# Check whether we have __sync_fetch_and_add()
-sfa=="no"
-cat > $TMPC << EOF
-#include <stdio.h>
-#include <stdlib.h>
-#include <inttypes.h>
-int main(int argc, char **argv)
-{
-  uint64_t dst = 1, src = 3;
-  __sync_fetch_and_add(&dst, src);
-}
-EOF
-if compile_prog "" "" "__sync_fetch_and_add"; then
-  sfa="yes"
-fi
-echo "__sync_fetch_and_add          $sfa"
-
 ##########################################
 # Check whether we have _Static_assert
 static_assert="no"
@@ -1705,9 +1686,6 @@ fi
 if test "$getmntinfo" = "yes" ; then
   output_sym "CONFIG_GETMNTINFO"
 fi
-if test "$sfa" = "yes" ; then
-  output_sym "CONFIG_SFA"
-fi
 if test "$static_assert" = "yes" ; then
   output_sym "CONFIG_STATIC_ASSERT"
 fi