[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] tools: check for libvncserver dependency libraries
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1179219674 -3600 # Node ID e1d9d2884245461576631134db46dda67994989b # Parent 3581a77791e3a4951174585fbc60510b5b6f01f9 tools: check for libvncserver dependency libraries Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- tools/check/check_libvncserver | 11 +++++++++++ 1 files changed, 11 insertions(+) diff -r 3581a77791e3 -r e1d9d2884245 tools/check/check_libvncserver --- a/tools/check/check_libvncserver Tue May 15 09:59:51 2007 +0100 +++ b/tools/check/check_libvncserver Tue May 15 10:01:14 2007 +0100 @@ -10,6 +10,7 @@ RC=0 RC=0 LIBVNCSERVER_CONFIG="$(which libvncserver-config)" +tmpfile=$(mktemp) if test -z ${LIBVNCSERVER_CONFIG}; then RC=1 @@ -22,6 +23,16 @@ if test $RC -ne 0; then echo "FAILED" echo " *** libvncserver-config is missing. " echo " *** Please install libvncserver." +elif ! ld $($LIBVNCSERVER_CONFIG --libs) -o $tmpfile >/dev/null 2>&1; then + echo "FAILED" + echo " *** dependency libraries for libvncserver are missing: " + RC=1 + for i in $(ld $($LIBVNCSERVER_CONFIG --libs) -o $tmpfile 2>&1 >/dev/null); do + case $i in + -l*) echo lib${i#-l} + esac + done fi +rm -f $tmpfile exit $RC _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |