diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 53b2323a2c09..d657aed4a01e 100644 --- a/configure.ac +++ b/configure.ac @@ -2916,6 +2916,16 @@ if test -z "$BASH"; then fi AC_SUBST(BASH) +# prefer parallel comression tools, if available +AC_PATH_PROG(COMPRESSIONTOOL, pigz) +if test -z "$COMPRESSIONTOOL"; then + AC_PATH_PROG(COMPRESSIONTOOL, gzip) + if test -z "$COMPRESSIONTOOL"; then + AC_MSG_ERROR([gzip not found in \$PATH]) + fi +fi +AC_SUBST(COMPRESSIONTOOL) + AC_MSG_CHECKING([for GNU or BSD tar]) for a in $GNUTAR gtar gnutar bsdtar tar /usr/sfw/bin/gtar; do $a --version 2> /dev/null | egrep "GNU|bsdtar" 2>&1 > /dev/null |