summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-05-14 10:17:51 -0400
committerBen Gamari <ben@smart-cactus.org>2018-05-15 10:45:40 -0400
commit45ad0c3946623bc8635d6e3964d9ebb1555a3df6 (patch)
tree241a1e451a04e7f5a88cefd18029a199af0fdfb1 /configure.ac
parent9dbf66d74e65309d02c9d700094e363f59c94096 (diff)
downloadhaskell-45ad0c3946623bc8635d6e3964d9ebb1555a3df6.tar.gz
Ensure that RTS cabal file reflects dependency on libnuma
Test Plan: Validate with Hadrian and `libnuma` support Reviewers: snowleopard, hvr, erikd, simonmar Subscribers: izgzhen, alpmestan, thomie, carter Differential Revision: https://phabricator.haskell.org/D4616
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a8b8681a36..1f4912855a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1258,6 +1258,12 @@ if test "$ac_cv_header_numa_h$ac_cv_header_numaif_h" = "yesyes" ; then
AC_CHECK_LIB(numa, numa_available,HaveLibNuma=1)
fi
AC_DEFINE_UNQUOTED([HAVE_LIBNUMA], [$HaveLibNuma], [Define to 1 if you have libnuma])
+if test $HaveLibNuma = "YES" ; then
+ AC_SUBST([CabalHaveLibNuma],[True])
+else
+ AC_SUBST([CabalHaveLibNuma],[False])
+fi
+
dnl ** Documentation
dnl --------------------------------------------------------------