summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorrunge <runge>2006-04-26 15:37:43 +0000
committerrunge <runge>2006-04-26 15:37:43 +0000
commit3c80351a1c131914dea7188fbd51d2af4606f527 (patch)
tree1bfbedf1d54b18ff6e2d1fe841677a26d417cdbd /classes
parent6a6ccc8c588498cc645a407fbbd7421e432b3803 (diff)
downloadlibtdevnc-3c80351a1c131914dea7188fbd51d2af4606f527.tar.gz
libtdevnc-3c80351a1c131914dea7188fbd51d2af4606f527.zip
Make VPATH building work with -I $(top_srcdir) for rfb/rfb.h
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/ssl/ssl_vncviewer18
1 files changed, 15 insertions, 3 deletions
diff --git a/classes/ssl/ssl_vncviewer b/classes/ssl/ssl_vncviewer
index 8bbbe29..28c07e0 100755
--- a/classes/ssl/ssl_vncviewer
+++ b/classes/ssl/ssl_vncviewer
@@ -34,11 +34,23 @@
# set VNCVIEWERCMD to whatever vncviewer command you want to use:
#
VNCVIEWERCMD=${VNCVIEWERCMD:-vncviewer}
+#
+# Same for STUNNEL, e.g. /path/to/stunnel or stunnel4, etc.
+#
PATH=$PATH:/usr/sbin:/usr/local/sbin:/dist/sbin; export PATH
+if [ "X$STUNNEL" = "X" ]; then
+ type stunnel4 > /dev/null 2>&1
+ if [ $? = 0 ]; then
+ STUNNEL=stunnel4
+ else
+ STUNNEL=stunnel
+ fi
+fi
+
help() {
- head -36 $0 | tail +2
+ head -39 $0 | tail +2
}
# grab our cmdline options:
@@ -274,8 +286,8 @@ cat $tmp | uniq
echo ""
sleep 1
-echo "running: stunnel $tmp"
-stunnel $tmp < /dev/tty > /dev/tty &
+echo "running: $STUNNEL $tmp"
+$STUNNEL $tmp < /dev/tty > /dev/tty &
pid=$!
echo ""