diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-04-15 11:43:41 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-04-16 00:21:41 +0200 |
commit | e9ad48935fa48aa32dc39a55512168ba5f5bdbd2 (patch) | |
tree | 8145731d2744dad11d8baba583d9fa5c20482313 /configure.ac | |
parent | a7ee2d4c4229b27af324ebac93081f692835365d (diff) | |
download | haskell-e9ad48935fa48aa32dc39a55512168ba5f5bdbd2.tar.gz |
libdw: More precise version check
Test Plan: Try configure in an environment with older `libdw`
Reviewers: hvr, austin
Subscribers: thomie, erikd
Differential Revision: https://phabricator.haskell.org/D2103
GHC Trac Issues: #11820
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ff717a1010..dd3236c24e 100644 --- a/configure.ac +++ b/configure.ac @@ -1052,7 +1052,14 @@ if test "$use_large_address_space" = "yes" ; then AC_DEFINE([USE_LARGE_ADDRESS_SPACE], [1], [Enable single heap address space support]) fi -AC_CHECK_LIB(dw, dwfl_begin, [HaveLibdw=YES], [HaveLibdw=NO]) +dnl ** Have libdw? +dnl -------------------------------------------------------------- +AC_ARG_ENABLE(libdw, + [AC_HELP_STRING([--enable-dwarf-unwind], + [Enable DWARF unwinding support in the runtime system via elfutils' libdw [default=no]])], + [AC_CHECK_LIB(dw, dwfl_attach_state, [HaveLibdw=YES], [HaveLibdw=NO])], + [HaveLibdw=NO] +) AC_SUBST(HaveLibdw) if test -n "$SPHINXBUILD"; then |