[vbox-dev] [PATCH] Add the --enable-vnc option to configure script

Бранко Мајић branko at majic.rs
Wed Apr 13 13:25:38 PDT 2011

I've attached a small patch for the configure script allowing user to
pass the --enable-vnc configuration option to it. The patch will check
for the existence of libvncserver by compiling a small program which
also checks that the libvncserver is of version of at least 0.9.7.

The version-checking code is a bit crude since the libvncserver doesn't
provide version information as a numeric constant in its headers. I've
put down several lines of code for converting the constant char array
into an unsigned integer. I'm well aware that the code I've provided
might be suboptimal. If you have any suggestions on improving this in
any way, or if you need it to be cleaner and safer, please let me know.

The patch is licensed under the MIT license. It has already been tested
on Gentoo, and is part of the official Gentoo ebuild (I'm the one who
submitted it there, you can take a look at the relevant bug report on
Gentoo Bugtracker - http://bugs.gentoo.org/show_bug.cgi?id=355481).

The original patch for the 3.2.x series was also available at some
time, but it generated no response from the list at time.

Branko Majic
Jabber: branko at majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: branko at majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: virtualbox-4-vnc.patch
Type: text/x-patch
Size: 2558 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110413/2363be90/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110413/2363be90/attachment-0003.bin 

More information about the vbox-dev mailing list