Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
b2c291fe
Commit
b2c291fe
authored
Jul 05, 2007
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac check for external system libvncserver version. set x11vnc version 0.9.3
parent
7ee3eccc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
35 deletions
+78
-35
configure.ac
configure.ac
+77
-34
prepare_x11vnc_dist.sh
prepare_x11vnc_dist.sh
+1
-1
No files found.
configure.ac
View file @
b2c291fe
...
@@ -248,13 +248,14 @@ if test "$build_x11vnc" = "yes"; then
...
@@ -248,13 +248,14 @@ if test "$build_x11vnc" = "yes"; then
if test "x$HAVE_X" = "xfalse" -a "x$with_x" != "xno"; then
if test "x$HAVE_X" = "xfalse" -a "x$with_x" != "xno"; then
AC_MSG_ERROR([
AC_MSG_ERROR([
==========================================================================
==========================================================================
A working X window system build environment is required to build x11vnc.
*** A working X window system build environment is required to build ***
Make sure any required X development packages are installed. If they are
x11vnc. Make sure any required X development packages are installed.
installed in non-standard locations, one can use the --x-includes=DIR
If they are installed in non-standard locations, one can use the
and --x-libraries=DIR configure options or set the CPPFLAGS and LDFLAGS
--x-includes=DIR and --x-libraries=DIR configure options or set the
environment variables to indicate where the X window system header files
CPPFLAGS and LDFLAGS environment variables to indicate where the X
and libraries may be found. On 64+32 bit machines you may need to point
window system header files and libraries may be found. On 64+32 bit
to lib64 or lib32 directories to pick up the correct word size.
machines you may need to point to lib64 or lib32 directories to pick up
the correct word size.
If you want to build x11vnc without X support (e.g. for -rawfb use only
If you want to build x11vnc without X support (e.g. for -rawfb use only
or for native Mac OS X), specify the --without-x configure option.
or for native Mac OS X), specify the --without-x configure option.
...
@@ -265,10 +266,10 @@ fi
...
@@ -265,10 +266,10 @@ fi
if test "x$HAVE_X" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then
if test "x$HAVE_X" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then
AC_MSG_WARN([
AC_MSG_WARN([
==========================================================================
==========================================================================
A working build environment for the XTEST extension was not found (libXtst).
*** A working build environment for the XTEST extension was not found ***
An x11vnc built this way will be only barely usable. You will be able to
(libXtst). An x11vnc built this way will be only barely usable.
move the mouse but not click or type. There can also be deadlocks if
an
You will be able to move the mouse but not click or type. There c
an
application grabs the X server.
a
lso be deadlocks if an a
pplication grabs the X server.
It is recommended that you install the necessary development packages
It is recommended that you install the necessary development packages
for XTEST (perhaps it is named something like libxtst-dev) and run
for XTEST (perhaps it is named something like libxtst-dev) and run
...
@@ -321,10 +322,10 @@ AC_SUBST(SSL_LIBS)
...
@@ -321,10 +322,10 @@ AC_SUBST(SSL_LIBS)
if test "x$HAVE_LIBSSL" != "xtrue"; then
if test "x$HAVE_LIBSSL" != "xtrue"; then
AC_MSG_WARN([
AC_MSG_WARN([
==========================================================================
==========================================================================
The openssl encryption library libssl.so was not found. An x11vnc built
*** The openssl encryption library libssl.so was not found. ***
this way will not support SSL encryption. To enable SSL install th
e
An x11vnc built this way will not support SSL encryption. To enabl
e
necessary development packages (perhaps it is named something like
SSL install the necessary development packages (perhaps it is named
libssl-dev) and run configure again.
something like
libssl-dev) and run configure again.
==========================================================================
==========================================================================
])
])
fi
fi
...
@@ -394,6 +395,7 @@ fi
...
@@ -394,6 +395,7 @@ fi
if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
printf "checking for system libvncserver... "
printf "checking for system libvncserver... "
vneed="0.9.1"
if test "x$with_system_libvncserver" != "xyes"; then
if test "x$with_system_libvncserver" != "xyes"; then
rflag=""
rflag=""
if test "x$ld_minus_R" = "xno"; then
if test "x$ld_minus_R" = "xno"; then
...
@@ -403,11 +405,35 @@ if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno
...
@@ -403,11 +405,35 @@ if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno
else
else
rflag="-R$with_system_libvncserver/lib"
rflag="-R$with_system_libvncserver/lib"
fi
fi
SYSTEM_LIBVNCSERVER_CFLAGS="-I$with_system_libvncserver/include"
cmd="$with_system_libvncserver/bin/libvncserver-config"
SYSTEM_LIBVNCSERVER_LIBS="-L$with_system_libvncserver/lib $rflag -lvncserver -lvncclient"
if $cmd --version 1>/dev/null 2>&1; then
echo "using $with_system_libvncserver"
cvers=`$cmd --version 2>/dev/null`
with_system_libvncserver=yes
cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
elif libvncserver-config --version >/dev/null 2>&1; then
nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
if test $cscore -lt $nscore; then
echo "no"
with_system_libvncserver=no
AC_MSG_WARN([
==========================================================================
*** Need libvncserver version $vneed, have version $cvers ***
You are building with a system installed libvncserver and it is not
new enough. NOTE: The libvncserver included in the x11vnc source tree
will be used instead.
==========================================================================
])
else
SYSTEM_LIBVNCSERVER_CFLAGS="-I$with_system_libvncserver/include"
SYSTEM_LIBVNCSERVER_LIBS="-L$with_system_libvncserver/lib $rflag -lvncserver -lvncclient"
echo "using $with_system_libvncserver"
with_system_libvncserver=yes
fi
else
echo " *** cannot run $cmd *** " 1>&2
with_system_libvncserver=no
echo no
fi
elif libvncserver-config --version 1>/dev/null 2>&1; then
rflag=""
rflag=""
rprefix=`libvncserver-config --prefix`
rprefix=`libvncserver-config --prefix`
if test "x$ld_minus_R" = "xno"; then
if test "x$ld_minus_R" = "xno"; then
...
@@ -417,10 +443,26 @@ if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno
...
@@ -417,10 +443,26 @@ if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno
else
else
rflag=" -R$rprefix/lib "
rflag=" -R$rprefix/lib "
fi
fi
SYSTEM_LIBVNCSERVER_CFLAGS=`libvncserver-config --cflags`
cvers=`libvncserver-config --version 2>/dev/null`
SYSTEM_LIBVNCSERVER_LIBS="$rflag"`libvncserver-config --libs`
cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
with_system_libvncserver=yes
nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
echo yes
if test $cscore -lt $nscore; then
echo "no"
AC_MSG_WARN([
==========================================================================
*** Need libvncserver version $vneed, have version $cvers ***
You are building with a system installed libvncserver and it is not
new enough. NOTE: The libvncserver included in the x11vnc source tree
will be used instead.
==========================================================================
])
else
SYSTEM_LIBVNCSERVER_CFLAGS=`libvncserver-config --cflags`
SYSTEM_LIBVNCSERVER_LIBS="$rflag"`libvncserver-config --libs`
with_system_libvncserver=yes
echo yes
fi
else
else
with_system_libvncserver=no
with_system_libvncserver=no
echo no
echo no
...
@@ -476,11 +518,12 @@ if test "x$with_jpeg" != "xno"; then
...
@@ -476,11 +518,12 @@ if test "x$with_jpeg" != "xno"; then
if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
AC_MSG_WARN([
AC_MSG_WARN([
==========================================================================
==========================================================================
The libjpeg compression library was not found: this may lead to reduced
*** The libjpeg compression library was not found. ***
performance, especially over slow links. If libjpeg is in a non-standard
This may lead to reduced performance, especially over slow links.
location use --with-jpeg=DIR to indicate the header file is in
If libjpeg is in a non-standard location use --with-jpeg=DIR to
DIR/include/jpeglib.h and the library in DIR/lib/libjpeg.a. A copy of
indicate the header file is in DIR/include/jpeglib.h and the library
libjpeg may be obtained from: ftp://ftp.uu.net/graphics/jpeg/
in DIR/lib/libjpeg.a. A copy of libjpeg may be obtained from:
ftp://ftp.uu.net/graphics/jpeg/
==========================================================================
==========================================================================
])
])
fi
fi
...
@@ -521,11 +564,11 @@ if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
...
@@ -521,11 +564,11 @@ if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
if test "x$HAVE_ZLIB_H" != "xtrue"; then
if test "x$HAVE_ZLIB_H" != "xtrue"; then
AC_MSG_WARN([
AC_MSG_WARN([
==========================================================================
==========================================================================
The libz compression library was not found: this may lead to reduced
*** The libz compression library was not found. ***
performance, especially over slow links. If libz is in a non-standard
This may lead to reduced performance, especially over slow links.
location use --with-zlib=DIR to indicate the header file is in
If libz is in a non-standard location use --with-zlib=DIR to indicate the
DIR/include/zlib.h and the library in DIR/lib/libz.a. A copy of
header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
libz may be obtained from: http://www.gzip.org/zlib/
A copy of
libz may be obtained from: http://www.gzip.org/zlib/
==========================================================================
==========================================================================
])
])
fi
fi
...
...
prepare_x11vnc_dist.sh
View file @
b2c291fe
#!/bin/bash
#!/bin/bash
VERSION
=
"0.9.
2
"
VERSION
=
"0.9.
3
"
cd
"
$(
dirname
"
$0
"
)
"
cd
"
$(
dirname
"
$0
"
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment