Files
xen/tools/check/check_zlib_lib
T
Vincent Hanquez d8b291a0b6 add /sbin to the $PATH for debian's ldconfig.
use ldconfig -p instead of -v that doesn't require root privilege to work.
2007-02-20 12:22:40 +00:00

17 lines
205 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
RC=0
PATH=/sbin:$PATH
set -e
ldconfig -p 2>&1 | grep -q libz.so || RC=1
if test ${RC} -ne 0; then
echo
echo " *** Check for zlib library FAILED"
fi
exit ${RC}