Files
xen/tools/check/check_zlib_lib
T
Keir Fraser e8d029002e Fix tools dependency-check scripts for *BSD.
zlib and crypto libs are part of the base system in *BSD.
So no need to check for them on *BSD. This conveniently avoids
executing a non-portable usage of ldconfig.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
2007-09-25 10:21:07 +01:00

25 lines
274 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
RC=0
case $(uname -s) in
FreeBSD|NetBSD|OpenBSD)
exit 0
;;
*)
;;
esac
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}