Blob Blame History Raw
Copyright (c) 2016 Sérgio Basto

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

The MIT License is to allow be in included in VirtualBox source code.

Using also VBOX_USE_SYSTEM_XORG_HEADERS to build guest additions parts,
just compile with X11 system source and we may remove all bundle X11 source code.

when we use VBOX_USE_SYSTEM_XORG_HEADERS, we don't need compile the very old
VBoxGuestR3LibXFree86 for use with old servers where the C library is not
available and becasue fail to build when we unbundle all X11 sources, files like
xf86_ansic.h doesn't exist anymore.

--- ./src/VBox/Additions/common/VBoxGuest/lib/Makefile.kmk.orig	2014-10-11 13:03:35.000000000 +0100
+++ ./src/VBox/Additions/common/VBoxGuest/lib/Makefile.kmk	2014-10-12 00:11:00.925507543 +0100
@@ -40,9 +40,11 @@ LIBRARIES += \
 	VBoxGuestR3LibShared
 ifndef VBOX_ONLY_VALIDATIONKIT
  if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd)
+ ifndef VBOX_USE_SYSTEM_XORG_HEADERS
   LIBRARIES += \
   	VBoxGuestR3LibXFree86
  endif
+ endif
  if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris)
   LIBRARIES += \
   	VBoxGuestR3LibXOrg