summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-07-07 09:54:57 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-07-14 01:20:34 -0400
commitf508b7ce56f1e7dc2666de3139f58c02a0567461 (patch)
treed49acd30a84c2de07495261136ba6d93cfd3c2ad /distrib
parentf9b00038696ce40aed68ee561c501184b34a1cf3 (diff)
downloadhaskell-f508b7ce56f1e7dc2666de3139f58c02a0567461.tar.gz
Don't package settings in bindist
Since !712 the `settings` file is produced by the build system instead of autoconf. However, this introduced a subtle bug where we would fail to rebuild the `settings` file with what we have learned from the install-time `configure` invocation. Fix this by not packaging `settings` in the bindist tarball. The build system will take care of the rest. Also fix a bug where the value of `UseLibdw` was not being persisted to the install time `configure`.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/configure.ac.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in
index bdd9815e59..f8fa83ef44 100644
--- a/distrib/configure.ac.in
+++ b/distrib/configure.ac.in
@@ -186,13 +186,14 @@ dnl ** Have libdw?
dnl --------------------------------------------------------------
dnl Check for a usable version of libdw/elfutils
dnl Currently we need 0.158 or newer.
-BinDistNeedsLibdw=@UseLibdw@
-if test "x$BinDistNeedsLibdw" = "xYES" ; then
+UseLibdw=@UseLibdw@
+if test "x$UseLibdw" = "xYES" ; then
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
+AC_SUBST(UseLibdw)
FP_SETTINGS