[commit: ghc] master: config.mk.in: Add bzip, gzip, and xz executable names to be overridden (1b37440)

git at git.haskell.org git at git.haskell.org
Fri Mar 24 05:32:56 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1b374402a7a078e53c3e00eb0460e8b22930c453/ghc

>---------------------------------------------------------------

commit 1b374402a7a078e53c3e00eb0460e8b22930c453
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Thu Mar 23 20:59:21 2017 -0400

    config.mk.in: Add bzip, gzip, and xz executable names to be overridden
    
    Reviewers: austin, hvr, erikd
    
    Reviewed By: erikd
    
    Subscribers: rwbarton, thomie, erikd, snowleopard
    
    Differential Revision: https://phabricator.haskell.org/D3367


>---------------------------------------------------------------

1b374402a7a078e53c3e00eb0460e8b22930c453
 configure.ac    | 5 +++++
 mk/config.mk.in | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 736c124..dd338a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -702,6 +702,11 @@ dnl ** check for tar
 dnl   if GNU tar is named gtar, look for it first.
 AC_PATH_PROGS(TarCmd,gnutar gtar tar,tar)
 
+dnl ** check for compressors
+AC_PATH_PROGS(Bzip2Cmd,bzip2, bzip2)
+AC_PATH_PROGS(GzipCmd,gzip, gzip)
+AC_PATH_PROGS(XzCmd,pxz xz, xz)
+
 dnl ** check for patch
 dnl if GNU patch is named gpatch, look for it first
 AC_PATH_PROGS(PatchCmd,gpatch patch, patch)
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 729abfa..4e61eea 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -789,9 +789,9 @@ STRIP_CMD      = strip
 endif
 PATCH_CMD      = @PatchCmd@
 TAR_CMD        = @TarCmd@
-BZIP2_CMD      = bzip2
-GZIP_CMD       = gzip
-XZ_CMD         = xz
+BZIP2_CMD      = @Bzip2Cmd@
+GZIP_CMD       = @GzipCmd@
+XZ_CMD         = @XzCmd@
 
 # xz is default compression
 TAR_COMP      ?= xz



More information about the ghc-commits mailing list