Files
xen/tools/check/check_libvncserver
T
Ewan Mellor 7169017f84 Make the xenfb tools an optional part of the build, as they introduce new
dependencies (libvncserver and libsdl devel packages).  Enable them with
XENFB_TOOLS=y.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
2006-12-02 16:39:53 +00:00

28 lines
436 B
Bash
Executable File

#!/bin/sh
# CHECK-BUILD CHECK-INSTALL
if [ ! "$XENFB_TOOLS" = "y" ]
then
echo -n "unused, "
exit 0
fi
RC=0
LIBVNCSERVER_CONFIG="$(which libvncserver-config)"
if test -z ${LIBVNCSERVER_CONFIG}; then
RC=1
else
${LIBVNCSERVER_CONFIG} --libs 2>&1 > /dev/null
RC=$?
fi
if test $RC -ne 0; then
echo "FAILED"
echo " *** libvncserver-config is missing. "
echo " *** Please install libvncserver."
fi
exit $RC