From: Rafaël Carré Date: Fri, 25 Nov 2011 18:03:54 +0000 (-0500) Subject: tools: check if tar supports J option X-Git-Tag: 1.3.0-git~60 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0db7670783253822aca6086cdee6686ec1353202;p=vlc tools: check if tar supports J option --- diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap index 9a185ebd0f..56d1b7819b 100755 --- a/extras/tools/bootstrap +++ b/extras/tools/bootstrap @@ -30,6 +30,11 @@ then echo "$1 not found" NEEDED="$NEEDED .$1" else + if [ "$1" = "xz" ] && ! tar PcJ /dev/null >/dev/null + then + echo "tar doesn't support xz (J option)" + NEEDED="$NEEDED .tar" + fi # found, need to check version ? [ -z "$2" ] && return # no # we only check GNU tools, their version have the form MAJOR.MINOR