build system: test that od is present in the host system

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2010-09-16 13:23:15 +02:00
parent bed7c81ea2
commit 06a80bdbea

View File

@ -9,6 +9,12 @@ test -x "$loc/usage" || exit 1
test "$SED" || SED=sed test "$SED" || SED=sed
test "$DD" || DD=dd test "$DD" || DD=dd
true | od -v -t x1 >/dev/null
if test $? != 0; then
echo 'od tool is not installed or cannot accept "-v -t x1" options'
exit 1
fi
exec >"$target.$$" exec >"$target.$$"
echo '#define UNPACKED_USAGE "" \' echo '#define UNPACKED_USAGE "" \'