build system: test that od is present in the host system
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 16 Sep 2010 11:23:15 +0000 (13:23 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Thu, 16 Sep 2010 11:23:15 +0000 (13:23 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
applets/usage_compressed

index e1fd0d94df9009477f9b1488951e5cb6b3cf0de5..9436dcd5d0b1cce40dd0ca9ec276a804a8288337 100755 (executable)
@@ -9,6 +9,12 @@ test -x "$loc/usage" || exit 1
 test "$SED" || SED=sed
 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.$$"
 
 echo '#define UNPACKED_USAGE "" \'