ia64/xen-unstable

changeset 12751:1e6f9222a1e1

[TOOLS] Checks for libvncserver-dev and libsdl-dev.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Dec 01 15:12:48 2006 +0000 (2006-12-01)
parents dd857b2e2bca
children 5c82a274733e
files tools/check/check_libvncserver tools/check/check_sdl
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/check/check_libvncserver	Fri Dec 01 15:12:48 2006 +0000
     1.3 @@ -0,0 +1,21 @@
     1.4 +#!/bin/sh
     1.5 +# CHECK-BUILD CHECK-INSTALL
     1.6 +
     1.7 +RC=0
     1.8 +
     1.9 +LIBVNCSERVER_CONFIG="$(which libvncserver-config)"
    1.10 +
    1.11 +if test -z ${LIBVNCSERVER_CONFIG}; then 
    1.12 +    RC=1
    1.13 +else
    1.14 +    ${LIBVNCSERVER_CONFIG} --libs 2>&1 > /dev/null
    1.15 +    RC=$?
    1.16 +fi
    1.17 +
    1.18 +if test $RC -ne 0; then
    1.19 +    echo "FAILED"
    1.20 +	echo " *** libvncserver-config is missing. "
    1.21 +    echo " *** Please install libvncserver."
    1.22 +fi
    1.23 +
    1.24 +exit $RC
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tools/check/check_sdl	Fri Dec 01 15:12:48 2006 +0000
     2.3 @@ -0,0 +1,21 @@
     2.4 +#!/bin/sh
     2.5 +# CHECK-BUILD CHECK-INSTALL
     2.6 +
     2.7 +RC=0
     2.8 +
     2.9 +SDL_CONFIG="$(which sdl-config)"
    2.10 +
    2.11 +if test -z ${SDL_CONFIG}; then 
    2.12 +    RC=1
    2.13 +else
    2.14 +    ${SDL_CONFIG} --libs 2>&1 > /dev/null
    2.15 +    RC=$?
    2.16 +fi
    2.17 +
    2.18 +if test $RC -ne 0; then
    2.19 +    echo "FAILED"
    2.20 +	echo " *** sdl-config is missing. "
    2.21 +    echo " *** Please install libsdl-dev or sdl."
    2.22 +fi
    2.23 +
    2.24 +exit $RC