ia64/xen-unstable

changeset 15098:e1d9d2884245

tools: check for libvncserver dependency libraries
Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Tue May 15 10:01:14 2007 +0100 (2007-05-15)
parents 3581a77791e3
children e72e94d2987c
files tools/check/check_libvncserver
line diff
     1.1 --- a/tools/check/check_libvncserver	Tue May 15 09:59:51 2007 +0100
     1.2 +++ b/tools/check/check_libvncserver	Tue May 15 10:01:14 2007 +0100
     1.3 @@ -10,6 +10,7 @@ fi
     1.4  RC=0
     1.5  
     1.6  LIBVNCSERVER_CONFIG="$(which libvncserver-config)"
     1.7 +tmpfile=$(mktemp)
     1.8  
     1.9  if test -z ${LIBVNCSERVER_CONFIG}; then 
    1.10      RC=1
    1.11 @@ -22,6 +23,16 @@ if test $RC -ne 0; then
    1.12      echo "FAILED"
    1.13  	echo " *** libvncserver-config is missing. "
    1.14      echo " *** Please install libvncserver."
    1.15 +elif ! ld $($LIBVNCSERVER_CONFIG --libs) -o $tmpfile >/dev/null 2>&1; then
    1.16 +    echo "FAILED"
    1.17 +    echo " *** dependency libraries for libvncserver are missing: "
    1.18 +    RC=1
    1.19 +    for i in $(ld $($LIBVNCSERVER_CONFIG --libs) -o $tmpfile 2>&1 >/dev/null); do
    1.20 +        case $i in
    1.21 +        -l*) echo lib${i#-l}
    1.22 +        esac
    1.23 +    done
    1.24  fi
    1.25 +rm -f $tmpfile
    1.26  
    1.27  exit $RC