summaryrefslogtreecommitdiff
path: root/distrib/configure.ac.in
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2016-06-01 06:14:00 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2016-06-01 06:14:00 +1000
commit0676e68cf5fe8696f1f760fef0f35dba14db1104 (patch)
treeeade146204a9d1e64767e3eeb62feb1dbef789da /distrib/configure.ac.in
parent930e74f8f494962745c16a59f156a0ed9f2f1df1 (diff)
downloadhaskell-0676e68cf5fe8696f1f760fef0f35dba14db1104.tar.gz
Fix detection and use of `USE_LIBDW`
Test Plan: Configure/build with and without --enable-libdw Reviewers: trofi, hvr, austin, simonmar, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2276
Diffstat (limited to 'distrib/configure.ac.in')
-rw-r--r--distrib/configure.ac.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index fdd9fd92d6..33023a730f 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -93,9 +93,9 @@ dnl ** Have libdw?
dnl --------------------------------------------------------------
dnl Check for a usable version of libdw/elfutils
dnl Currently we need 0.158 or newer.
-BinDistNeedsLibdw=@HaveLibdw@
+BinDistNeedsLibdw=@UseLibdw@
if test "x$BinDistNeedsLibdw" = "xyes" ; then
- AC_CHECK_LIB(dw, dwfl_attach_state, [HaveLibdw=YES],
+ AC_CHECK_LIB(dw, dwfl_attach_state, [UseLibdw=YES],
[AC_MSG_ERROR([Binary distribution was built with libdw support but target system doesn't have supported libdw version (needs at least 0.158)])]
)];
fi