done | tr "$nl" ' '`
echo All compressors: $all_compressors
-# Assume gzip(1) is available on every reasonable portability target.
missing_compressors=`
for c in $all_compressors; do
- test $c = gzip || $c --version </dev/null >&2 && continue
+ case $c in
+ # Assume gzip(1) is available on every reasonable portability target.
+ gzip) continue;;
+ # On Cygwin, as of 9/2/2012, 'compress' is provided by sharutils
+ # and is just a dummy script that is not able to actually compress
+ # (it can only decompress). So, check that the 'compress' program
+ # is actually able to compress input.
+ compress) $c -c </dev/null >/dev/null && continue;;
+ *) $c --version </dev/null >&2 && continue;;
+ esac
echo $c
done | tr "$nl" ' '`
echo Missing compressors: $missing_compressors