xref: /OK3568_Linux_fs/buildroot/support/dependencies/check-host-lzip.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3candidate="$1"
4
5lzip=`which $candidate 2>/dev/null`
6if [ ! -x "$lzip" ]; then
7	lzip=`which lzip 2>/dev/null`
8	if [ ! -x "$lzip" ]; then
9		# echo nothing: no suitable lzip found
10		exit 1
11	fi
12fi
13
14echo $lzip
15