configure revision 84d5d5272edbc1f41f963221b74a7eda71d0e2a2
# The purpose of this script is to check for all external tools, headers, and
# libraries VBox OSE depends on.
#
# Copyright (C) 2006-2007 innotek GmbH
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# General Public License as published by the Free Software Foundation,
# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
# distribution. VirtualBox OSE is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY of any kind.
#
LC_ALL=C
export LC_ALL
# append some extra paths
# Solaris (order of paths important for tr, echo, grep, sed to work)
#
# Defaults
#
OSE=1
TARGET_CPU=""
WITH_QT=1
WITH_SDL=1
WITH_X11=1
CC="gcc"
CC32=""
CC64=""
CXX="g++"
CXX32=""
CXX64=""
BCC="bcc"
YASM="yasm"
IASL="iasl"
AS86="as86"
XSLTPROC="xsltproc"
GENISOIMAGE="genisoimage"
MKISOFS="mkisofs"
LIBXALAN="-lxalan-c"
LIBXALAN_DIR="/usr/local/lib"
LIBXERCES="-lxerces-c"
LIBXERCES_DIR="/usr/local/lib"
LIBCRYPTO="-lcrypto"
LIBPTHREAD="-lpthread"
LIBXCURSOR="-lXcursor"
INCZ=""
LIBZ="-lz"
INCPNG=""
LIBPNG="-lpng"
else
fi
KCHMVIEWER="kchmviewer"
BUILD_TYPE="release"
# the restricting tool is ar (mri mode).
INVALID_CHARS="[^A-Za-z0-9/\\$:._-]"
echo "Error: VBox base path contains invalid characters!"
exit 1
fi
cleanup()
{
}
fail()
{
exit 1
fi
}
{
if [ -n "$1" ]; then echo -n "$1, "; fi
echo "OK."
echo >> $LOG
echo >> $LOG
}
{
echo
echo " ** $1!"
echo >> $LOG
}
{
}
strip_l()
{
}
strip_L()
{
}
strip_I()
{
}
prefix_I()
{
}
{
have_ancient_which="yes"
else
have_ancient_which="no"
fi
fi
echo "$retval"
unset retval
else
fi
}
{
if [ -z "$1" ]; then
log_failure "$2 is empty"
fail $3
return 1
elif which_wrapper $1 > /dev/null; then
return 0
else
log_failure "$1 (variable $2) not found"
fail $3
return 1
fi
}
# Prepare a test
{
echo -n "Checking for $1: "
}
# Compile a test
{
cat .tmp_src.cc >> $LOG
$CXX -O -Wall -o .tmp_out .tmp_src.cc $1 >> $LOG 2>&1
if [ $? -ne 0 ]; then
if [ -z "$4" ]; then
echo
echo " $2 not found at $1 or $3 headers not found"
echo " Check the file $LOG for detailed error information."
else
echo "not found."
echo >> $LOG
echo >> $LOG
fi
return 1
fi
return 0
}
# Execute a compiled test binary
{
./.tmp_out > .test_execute.log
rc=$?
cat .test_execute.log | tee -a $LOG
fail $1
return 1
fi
echo >> $LOG
echo >> $LOG
return 0
}
#
# Check for OS, MACHINE, CPU
#
{
BUILD_MACHINE='x86'
LIB='lib'
;;
BUILD_MACHINE='amd64'
BUILD_CPU='k8'
# see http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64
LIB='lib64'
;;
*)
log_failure "Cannot determine system"
exit 1
;;
esac
;;
;;
;;
OS='solaris'
;;
*)
log_failure "Cannot determine OS"
exit 1
;;
esac
DEVDIR_BIN="$DEVDIR/$OS.$BUILD_MACHINE/bin"
KBUILD_SED="$KBUILDDIR_BIN/kmk_sed"
log_success "Determined build machine: $OS.$BUILD_MACHINE, target machine: $OS.$TARGET_MACHINE"
# Automatically disable XPCOM on darwin.
WITH_QT=0
WITH_SDL=0
WITH_X11=0
echo "Disabling checks for XPCOM related components."
fi
}
#
# Check for gcc with version >= 3.2.
# We depend on a working gcc, if we fail terminate in every case.
#
{
cc_ver=`$CC -dumpversion`
log_failure "gcc version $cc_ver does not match g++ version $cxx_ver"
log_success "found version $cc_ver"
else
log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with x>0"
fi
log_success "found version $cc_ver"
log_failure "gcc version $cc_ver found, expected gcc 3.x with x>1 or gcc 4.x with x>0"
else
log_success "found version $cc_ver"
fi
else
fi
fi
cnf_append "TOOL_GCC3_CC" "$CC"
cnf_append "TOOL_GCC3_AS" "$CC"
cnf_append "TOOL_GCC3_LD" "$CC"
cnf_append "TOOL_GXX3_CC" "$CC"
cnf_append "TOOL_GXX3_AS" "$CC"
fi
cnf_append "TOOL_GCC3_CXX" "$CXX"
cnf_append "TOOL_GXX3_CXX" "$CXX"
cnf_append "TOOL_GXX3_LD" "$CXX"
fi
cnf_append "TOOL_GCC32_CC" "$CC32"
cnf_append "TOOL_GCC32_AS" "$CC32"
cnf_append "TOOL_GCC32_LD" "$CC32"
cnf_append "TOOL_GXX32_CC" "$CC32"
cnf_append "TOOL_GXX32_AS" "$CC32"
fi
cnf_append "TOOL_GCC32_CXX" "$CXX32"
cnf_append "TOOL_GXX32_CXX" "$CXX32"
cnf_append "TOOL_GXX32_LD" "$CXX32"
fi
cnf_append "TOOL_GCC64_CC" "$CC64"
cnf_append "TOOL_GCC64_AS" "$CC64"
cnf_append "TOOL_GCC64_LD" "$CC64"
cnf_append "TOOL_GXX64_CC" "$CC64"
cnf_append "TOOL_GXX64_AS" "$CC64"
fi
cnf_append "TOOL_GCC64_CXX" "$CXX64"
cnf_append "TOOL_GXX64_CXX" "$CXX64"
cnf_append "TOOL_GXX64_LD" "$CXX64"
fi
fi
fi
}
#
# Check for the bcc compiler, needed for compiling the BIOS
#
{
if [ $? -ne 0 ]; then
log_failure "not found"
else
cat > .tmp_src.c << EOF
int foo(a)
int a;
{
return 0;
}
EOF
cat .tmp_src.c >> $LOG
$BCC -B $bcc_dir -C-c -3 -S -o .tmp_out .tmp_src.c >> $LOG 2>&1
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $bcc_ver"
cnf_append "VBOX_BCC" "$bcc_path -B $bcc_dir"
fi
unset bcc_path
unset bcc_dir
fi
fi
}
#
# Check for the as86 assembler, needed for compiling the BIOS
#
{
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $as86_ver"
fi
fi
}
#
# Check for yasm, needed to compile assembler files
#
{
if [ $? -ne 0 ]; then
log_failure "not found"
else
yasm_ver_mul=`expr $yasm_maj \* 10000 + $yasm_min \* 100 + $yasm_rev`
if [ $yasm_ver_mul -lt 501 ]; then
log_failure "found version $yasm_ver, expected at least 0.5.1"
else
log_success "found version $yasm_ver"
fi
fi
fi
}
#
# Check for the iasl ACPI compiler, needed to compile vbox.dsl
#
{
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $iasl_ver"
fi
fi
}
#
# Check for xsltproc, needed by Main
#
{
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found"
fi
fi
}
#
# Check for mkisofs, needed to build the CDROM image containing the additions
#
{
if which_wrapper $GENISOIMAGE > /dev/null; then
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found $mkisofs_ver"
fi
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found $mkisofs_ver"
fi
fi
}
#
# Check for xalan, needed by VBoxXML
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <xalanc/Include/XalanVersion.hpp>
extern "C" int main(void)
{
printf("found version %d.%d.%d",
XALAN_VERSION_MAJOR, XALAN_VERSION_MINOR, XALAN_VERSION_REVISION);
#if _XALAN_VERSION >= 10800
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.8.0 or higher\n");
return 1;
#endif
}
EOF
if test_execute; then
cnf_append "SDK_VBOX_XALAN_INCS" "$INCXALAN"
fi
fi
else
echo "Building xalan from shipped sources."
echo >> $LOG
echo >> $LOG
fi
}
#
# Check for xerces, needed by VBoxXML
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <xercesc/util/XercesVersion.hpp>
extern "C" int main(void)
{
printf("found version %d.%d.%d",
XERCES_VERSION_MAJOR, XERCES_VERSION_MINOR, XERCES_VERSION_REVISION);
#if _XERCES_VERSION >= 20500
printf(", OK.\n");
return 0;
#else
printf(", expected version 2.5.0 or higher");
return 1;
#endif
}
EOF
if test_execute; then
cnf_append "SDK_VBOX_XERCES_INCS" "$INCXERCES"
fi
fi
else
echo "Building xerces from shipped sources."
echo >> $LOG
echo >> $LOG
fi
}
#
# Check for libIDL, needed by xpcom
#
{
if which_wrapper libIDL-config-2 > /dev/null; then
libidl_ver=`libIDL-config-2 --version`
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $libidl_ver"
fi
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $libidl_ver"
fi
fi
}
#
# Check for openssl, needed for RDP
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <openssl/opensslv.h>
extern "C" int main(void)
{
printf("found version %s", OPENSSL_VERSION_TEXT);
#if OPENSSL_VERSION_NUMBER >= 0x0090700
printf(", OK.\n");
return 0;
#else
printf(", expected version 0.9.7 or higher\n");
return 1;
#endif
}
EOF
if test_compile $LIBCRYPTO libcrypto openssl; then
if test_execute nofatal; then
cnf_append "SDK_VBOX_OPENSSL_INCS" ""
fi
fi
}
#
# Check for pthread, needed by VBoxSVC, frontends, ...
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <pthread.h>
extern "C" int main(void)
{
pthread_mutex_t mutex;
if (pthread_mutex_init(&mutex, NULL)) {
printf("pthread_mutex_init() failed\n");
return 1;
}
if (pthread_mutex_lock(&mutex)) {
printf("pthread_mutex_lock() failed\n");
return 1;
}
if (pthread_mutex_unlock(&mutex)) {
printf("pthread_mutex_unlock() failed\n");
return 1;
}
printf("found, OK.\n");
}
EOF
if test_compile $LIBPTHREAD pthread pthread; then
if test_execute; then
fi
fi
}
#
# Check for zlib, needed by VBoxSVC, Runtime, ...
#
check_z()
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <zlib.h>
extern "C" int main(void)
{
printf("found version %s", ZLIB_VERSION);
#if ZLIB_VERNUM >= 0x1210
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.2.1 or higher\n");
return 1;
#endif
}
EOF
if test_execute; then
cnf_append "SDK_VBOX_ZLIB_INCS" "$INCZ"
fi
fi
}
#
# Check for libpng, needed by kchmviewer
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <png.h>
extern "C" int main(void)
{
printf("found version %s", PNG_LIBPNG_VER_STRING);
#if PNG_LIBPNG_VER >= 10205
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.2.5 or higher\n");
return 1;
#endif
}
EOF
# if test_compile "$LIBPNG $I_INCPNG" libpng libpng nofatal; then
# if test_execute nofatal; then
if test_execute; then
cnf_append "SDK_VBOX_LIBPNG_INCS" "$INCPNG"
fi
fi
}
#
# Check for pam, needed by VRDPAuth
# Version 79 was introduced in 9/2005, do we support older versions?
# OpenSUSE comes with 0.99.xxx where they changed the versioning scheme.
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <security/pam_appl.h>
extern "C" int main(void)
{
printf("found version %d", __LIBPAM_VERSION);
if (__LIBPAM_VERSION >= 76)
{
printf(", OK.\n");
return 0;
}
else
{
printf(", expected version 76 or higher\n");
return 1;
}
}
EOF
if test_execute nofatal; then
return 0;
fi
fi
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <security/pam_appl.h>
extern "C" int main(void)
{
printf("found version %d.%d", __LINUX_PAM__, __LINUX_PAM_MINOR__);
if (__LINUX_PAM__ >= 1)
{
printf(", OK.\n");
return 0;
}
else
{
printf(", expected version 1.0 or higher\n");
return 1;
}
}
EOF
fi
}
#
# Check for the SDL library, needed by VBoxSDL and VirtualBox
# We depend at least on version 1.2.7
#
{
if which_wrapper sdl-config > /dev/null; then
LIBSDLMAIN="-lSDLmain"
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <SDL/SDL.h>
#include <SDL/SDL_main.h>
extern "C" int main(void)
{
printf("found version %d.%d.%d",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL);
#if SDL_VERSION_ATLEAST(1,2,7)
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.2.7 or higher\n");
return 1;
#endif
}
EOF
if test_execute; then
fi
fi
else
log_failure "not found"
fi
}
#
# Check for the SDL_ttf library, needed by VBoxSDL (secure label)
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <SDL/SDL_ttf.h>
#ifndef SDL_TTF_MAJOR_VERSION
#define SDL_TTF_MAJOR_VERSION TTF_MAJOR_VERSION
#define SDL_TTF_MINOR_VERSION TTF_MINOR_VERSION
#define SDL_TTF_PATCHLEVEL TTF_PATCHLEVEL
#endif
extern "C" int main(void)
{
printf("found version %d.%d.%d",
SDL_TTF_MAJOR_VERSION, SDL_TTF_MINOR_VERSION, SDL_TTF_PATCHLEVEL);
#if 10000*SDL_TTF_MAJOR_VERSION + 100*SDL_TTF_MINOR_VERSION + SDL_TTF_PATCHLEVEL >= 20006
printf(", OK.\n");
return 0;
#else
printf(", expected version 2.0.6 or higher\n");
return 1;
#endif
}
EOF
fi
}
#
# Check for libasound, needed by the ALSA audio backend
#
{
cat > .tmp_src.cc << EOF
#include <alsa/asoundlib.h>
extern "C" int main(void)
{
printf("found version %d.%d.%d",
SND_LIB_MAJOR, SND_LIB_MINOR, SND_LIB_SUBMINOR);
#if 10000*SND_LIB_MAJOR + 100*SND_LIB_MINOR + SND_LIB_SUBMINOR >= 10006
printf(", OK.\n");
return 0;
#else
printf(", expected version 1.0.6 or higher\n");
return 1;
#endif
}
EOF
fi
}
#
# Check for the Xcursor library, needed by VBoxSDL and VBoxBFE
#
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <X11/Xlib.h>
#include <X11/Xcursor/Xcursor.h>
extern "C" int main(void)
{
XcursorImage *cursor = XcursorImageCreate (10, 10);
XcursorImageDestroy(cursor);
return 0;
}
EOF
log_success "found"
fi
}
#
# Check for the X libraries (Xext, X11)
#
check_x()
{
test_header "X libraries"
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <X11/Xlib.h>
extern "C" int main(void)
{
Display *dpy;
int scrn_num;
Screen *scrn;
Window win;
dpy = XOpenDisplay(NULL);
scrn_num = DefaultScreen(dpy);
scrn = ScreenOfDisplay(dpy, scrn_num);
win = XCreateWindow(dpy, RootWindowOfScreen(scrn), 0, 0, 100, 100,
0, 16, InputOutput, CopyFromParent, 0, NULL);
XDestroyWindow(dpy, win);
}
EOF
log_success "found"
fi
}
#
# Check for the QT library, needed by VirtualBox
#
check_qt()
{
cat > .tmp_src.cc << EOF
#include <cstdio>
#include <qglobal.h>
extern "C" int main(void)
{
printf("found version %s", QT_VERSION_STR);
#if QT_VERSION >= 0x030305
printf(", OK.\n");
return 0;
#elif QT_VERSION >= 0x030300
printf("\n ** WARNING: QT < 3.3.5 has known problems!\n");
#else
printf(", expected version 3.3.0 or higher\n");
return 1;
#endif
}
EOF
found_qt=0
libs="lib"
cat .tmp_src.cc >> $LOG
$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD >> $LOG 2>&1
if [ $? -eq 0 ]; then
if test_execute; then
found_qt=1
break
fi
fi
done
break
fi
done
echo
echo " Qt not found at \"$QTDIR\" or Qt headers not found"
echo " Check the file $LOG for detailed error information."
return 1
fi
test_header "Qt devtools"
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $moc_ver"
fi
fi
}
#
# Check for Linux sources
#
{
test_header "Linux kernel sources"
cat > .tmp_src.c << EOF
#include <linux/version.h>
int printf(const char *format, ...);
int main(void)
{
printf("found version %d.%d.%d", LINUX_VERSION_CODE / 65536,
(LINUX_VERSION_CODE % 65536) / 256,
LINUX_VERSION_CODE % 256);
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,0)
printf(", OK.\n");
return 0;
#else
printf(", expected version 2.4.0 or higher\n");
return 1;
#endif
}
EOF
cat .tmp_src.c >> $LOG
if [ $? -ne 0 ]; then
echo
echo " Linux kernel headers not found at $LINUX"
echo " Check the file $LOG for detailed error information."
else
if test_execute; then
fi
fi
}
#
# Check for kchmviewer, needed to display the online help
#
{
if [ $? -ne 0 ]; then
log_failure "not found"
else
log_success "found version $kchmviewer_ver"
fi
fi
}
#
# Check for the kBuild tools, we don't support GNU make
#
{
log_success "found"
# Because of sh being non-default shell in Solaris we need to export PATH again when
# sourcing env.sh. Simply exporting from ./configure does not export PATH correctly.
echo "echo \"\$PATH\" | /usr/sfw/bin/ggrep -q \"\$path_kbuild_bin\" || PATH=\"\$path_kbuild_bin:\$PATH\"" >> $ENV
echo "echo \"\$PATH\" | /usr/sfw/bin/ggrep -q \"\$path_dev_bin\" || PATH=\"\$path_dev_bin:\$PATH\"" >> $ENV
else
fi
fi
}
#
# Check for compiler.h
# Some Linux distributions include "compiler.h" in their libc linux
# headers package, some don't. Most don't need it, building might (!)
# not succeed on openSUSE without it.
#
#
{
cnf_append "VBOX_WITHOUT_LINUX_COMPILER_H" "1"
log_success "compiler.h not found"
else
log_success "compiler.h found"
fi
}
#
# Check if we are able to build 32-bit applications (needed for the guest additions)
#
{
test_header "32-bit support"
cat > .tmp_src.c << EOF
#include <stdint.h>
int main(void)
{
return 0;
}
EOF
cat .tmp_src.c >> $LOG
if [ $? -ne 0 ]; then
echo
echo " Check the file $LOG for detailed error information."
fi
log_success ""
}
#
# Setup wine
#
{
test_header "Wine support"
if ! which_wrapper wine > /dev/null; then
echo " wine binary not found"
fi
if ! which_wrapper wineprefixcreate > /dev/null; then
echo " wineprefixcreate not found"
fi
export WINEPREFIX="${ODIR}wine.$BUILD_MACHINE"
mkdir -p $WINEPREFIX
if ! wineprefixcreate -q > /dev/null 2>&1; then
echo " wineprefixcreate failed"
fi
echo "\"PATH\"=\"c:\\\\\\\\windows\\\\\\\\system32;c:\\\\\\\\windows;z:$DEVDIR/win.x86/vcc/v8/bin/Microsoft.VC80.CRT;z:$DEVDIR/win.x86/HTML_Help_Workshop/v1.3\"" >> $tmp
echo " failed to load registry changes (path)."
fi
log_success "found"
}
#
# Show help
#
{
cat << EOF
Usage: ./configure [OPTIONS]...
Configuration:
-h, --help display this help and exit
--nofatal don't abort on errors
--disable-xpcom disable XPCOM and related stuff
--disable-sdl-ttf disable SDL_ttf detection
--build-xalan build xalan & xerces from shipped sources
--setup-wine setup a Wine directory and register the hhc hack
Paths:
--with-gcc=PATH location of the gcc compiler [$CC]
--with-g++=PATH location of the g++ compiler [$CXX]
--with-kbuild=DIR kbuild directory [$KBUILDDIR]
--with-iasl=PATH location of the iasl compiler [$IASL]
--with-linux=DIR Linux kernel source directory [$LINUX]
--with-mkisofs=PATH location of mkisofs [$MKISOFS]
--with-qt-dir=DIR directory for QT headers/libraries [$QTDIR]
--with-xalan=LIB location of the xalan library [$LIBXALAN]
--with-xalan-incdir=DIR location of the xalan headers [/usr/include /usr/local/include]
--with-xalan-libdir=DIR location of the xalan library [/usr/lib /usr/local/lib]
--with-xerces=LIB location of the xerces library [$LIBXERCES]
--with-xerces-incdir=DIR location of the xerces headers [/usr/include /usr/local/include]
--with-xerces-libdir=DIR location of the xerces library [/usr/lib /usr/local/lib]
Build type:
-d, --build-debug build with debugging symbols and assertions
--build-headless build headless (without any X11 frontend)
EOF
exit 0
}
#
# The body.
#
# scan command line options
;;
--nofatal)
nofatal=1
;;
;;
--with-g++=*)
;;
echo "Error: KBUILDDIR contains invalid characters!"
exit 1
fi
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
WITH_QT=0
;;
;;
;;
HEADLESS=1
WITH_SDL=0
WITH_X11=0
WITH_QT=0
;;
--ose)
OSE=2
;;
--odir=*)
;;
;;
*)
echo
echo "Unrecognized option \"$option\""
echo
;;
esac
done
# initialize output files
# Log file generated by
#
# '$0 $*'
#
EOF
# -*- Makefile -*-
#
# automatically generated by
#
# '$0 $*'
#
# It will be completely overwritten if configure is executed again.
#
EOF
#!/bin/bash
#
# automatically generated by
#
# '$0 $*'
#
# It will be completely overwritten if configure is executed again.
# Make sure you source this file once before you start to build VBox.
#
EOF
# test if we are OSE
echo "Found USB devices, assuming VBOX_OSE = FALSE" >> $LOG
echo >> $LOG
OSE=0
fi
if [ "$BUILD_TYPE" = "debug" ]; then
echo "Creating DEBUG build!" >> $LOG
fi
# first determine our environment
# append the tools directory to the default search path
export PATH
# some things are not available in for OSE
cnf_append "VBOX_OSE" "1"
cnf_append "VBOX_WITH_TESTSUITE" ""
cnf_append "VBOX_WITH_WIN32_ADDITIONS" ""
if [ "$OS" = "linux" ]; then
cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1"
else
cnf_append "VBOX_WITH_LINUX_ADDITIONS" ""
fi
echo >> $CNF
fi
# headless
if [ -n "$HEADLESS" ]; then
cnf_append "VBOX_HEADLESS" "1"
fi
# emit disable directives corresponding to any --disable-xxx options.
# the tools
# don't check for yasm for the time beeing as 0.40 and 0.50 both have known bugs
# [ "$OS" != "darwin" ] && check_yasm
# the libraries
# Linux-specific
if [ "$OS" = "linux" ]; then
fi
[ -n "$SETUP_WINE" ] && setup_wine
# success!
echo
echo "Source '$ENV' once before you start to build VBox:"
echo ""
echo " source $ENV"
echo " kmk"
echo ""
if [ "$OS" = "linux" ]; then
echo "To compile the kernel module, do:"
echo ""
echo " cd ./out/$OS.$TARGET_MACHINE/$BUILD_TYPE/bin/src"
echo " make"
echo ""
fi
echo "Enjoy!"