summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2018-02-08 16:07:07 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2018-02-15 09:43:57 +0800
commitec9aacf3eb2975fd302609163aaef429962ecd87 (patch)
tree20fbf0410a3cc520efa5209ae683b73c5a82f9c4 /aclocal.m4
parentdf449e1744d59eef7f41e09196629bc01815e984 (diff)
downloadhaskell-ec9aacf3eb2975fd302609163aaef429962ecd87.tar.gz
adds -latomic to. ghc-prim
Reviewers: bgamari, hvr Reviewed By: bgamari Subscribers: erikd, hvr, rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4378
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m418
1 files changed, 0 insertions, 18 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 2ed2c08327..6f37972c08 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1281,24 +1281,6 @@ AC_SUBST(GccIsClang)
rm -f conftest.txt
])
-# FP_GCC_SUPPORTS__ATOMICS
-# ------------------------
-# Does gcc support the __atomic_* family of builtins?
-AC_DEFUN([FP_GCC_SUPPORTS__ATOMICS],
-[
- AC_REQUIRE([AC_PROG_CC])
- AC_MSG_CHECKING([whether GCC supports __atomic_ builtins])
- echo 'int test(int *x) { int y; __atomic_load(&x, &y, __ATOMIC_SEQ_CST); return x; }' > conftest.c
- if $CC -c conftest.c > /dev/null 2>&1; then
- CONF_GCC_SUPPORTS__ATOMICS=YES
- AC_MSG_RESULT([yes])
- else
- CONF_GCC_SUPPORTS__ATOMICS=NO
- AC_MSG_RESULT([no])
- fi
- rm -f conftest.c conftest.o
-])
-
# FP_GCC_SUPPORTS_NO_PIE
# ----------------------
# Does gcc support the -no-pie option? If so we should pass it to gcc when