WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools: check for libvncserver dependency

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools: check for libvncserver dependency libraries
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 May 2007 08:21:32 -0700
Delivery-date: Tue, 15 May 2007 08:23:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools: check for libvncserver dependency libraries, Xen patchbot-unstable <=