]> git.sesse.net Git - vlc/commitdiff
tools: check if tar supports J option
authorRafaël Carré <funman@videolan.org>
Fri, 25 Nov 2011 18:03:54 +0000 (13:03 -0500)
committerRafaël Carré <funman@videolan.org>
Fri, 25 Nov 2011 18:10:59 +0000 (13:10 -0500)
extras/tools/bootstrap

index 9a185ebd0f5ce76bdf568ddaca0d9839b09e559d..56d1b7819b7e065ad1fdda503536cbc83fdde622 100755 (executable)
@@ -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