VirtualBox

Changeset 14989 in vbox


Ignore:
Timestamp:
Dec 4, 2008 2:42:43 PM (16 years ago)
Author:
vboxsync
Message:

Config.kmk/configure: use libdbus-1 directly instead of libhal on Linux

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r14835 r14989  
    302302# Enable Pulse support for Linux
    303303VBOX_WITH_PULSE = 1
    304 # Enable statically linked libhal support for Linux
     304# Enable statically linked dbus support for Linux
    305305ifeq ($(KBUILD_TARGET),linux)
    306 # VBOX_WITH_LIBHAL = 1
     306# VBOX_WITH_DBUS = 1
    307307endif
    308308# Disable WINMM support for Windows (not implemented)
     
    366366# Temporary switch for enabling / disabling the new USB code on Darwin.
    367367VBOX_WITH_NEW_USB_CODE_ON_DARWIN=1
    368 # Enable the hal/sysfs USB code on Linux.  This depends on VBOX_WITH_LIBHAL.
    369 ifdef VBOX_WITH_LIBHAL
     368# Enable the hal/sysfs USB code on Linux.  This depends on VBOX_WITH_DBUS.
     369ifdef VBOX_WITH_DBUS
    370370# VBOX_USB_WITH_SYSFS=1
    371371endif
     
    13391339VBOX_LIBPATH32_X11 ?= /usr/X11R6/lib32 /usr/X11R6/lib
    13401340
    1341 # libhal settings for Linux
     1341# dbus settings for Linux
    13421342ifeq ($(KBUILD_TARGET),linux)
    1343  ifdef VBOX_WITH_LIBHAL
    1344   VBOX_LIBHAL_CFLAGS := $(shell pkg-config hal --cflags)
    1345   VBOX_LIBHAL_CXXFLAGS := $(VBOX_LIBHAL_CFLAGS)
    1346   VBOX_LIBHAL_LDFLAGS := $(shell pkg-config hal --libs)
     1343 ifdef VBOX_WITH_DBUS
     1344  VBOX_DBUS_CFLAGS := $(shell pkg-config dbus-1 --cflags)
     1345  VBOX_DBUS_CXXFLAGS := $(VBOX_DBUS_CFLAGS)
     1346  VBOX_DBUS_LDFLAGS := $(shell pkg-config dbus-1 --libs)
    13471347 endif
    13481348endif
  • trunk/configure

    r14926 r14989  
    6363WITH_ALSA=1
    6464WITH_PULSE=1
    65 WITH_LIBHAL=1
     65WITH_DBUS=1
    6666WITH_KMODS=1
    6767WITH_HARDENING=1
     
    9393PKGCONFIG="`which_wrapper pkg-config`"
    9494if [ -n $PKGCONFIG ]; then
    95   FLAGSHAL="`$PKGCONFIG hal --cflags 2>/dev/null`"
    96   LIBDIRHAL="`$PKGCONFIG hal --libs-only-L 2>/dev/null`"
    97   LIBHAL="`$PKGCONFIG hal --libs-only-l 2>/dev/null`"
     95  FLAGSDBUS="`$PKGCONFIG dbus-1 --cflags 2>/dev/null`"
     96  LIBDIRDBUS="`$PKGCONFIG dbus-1 --libs-only-L 2>/dev/null`"
     97  LIBDBUS="`$PKGCONFIG dbus-1 --libs-only-l 2>/dev/null`"
    9898fi
    9999PYTHONDIR="/usr /usr/local"
     
    11651165
    11661166#
    1167 # Check for libhal
    1168 #
    1169 check_libhal()
    1170 {
    1171   test_header "libhal"
     1167# Check for DBus
     1168#
     1169check_dbus()
     1170{
     1171  test_header "DBus"
    11721172  cat > .tmp_src.cc << EOF
    1173 #include <libhal.h>
     1173#include <dbus/dbus.h>
    11741174extern "C" int main(void)
    11751175{
     
    11771177}
    11781178EOF
    1179   if [ -n $PKGCONFIG ] && test_compile "$FLAGSHAL $LIBDIRHAL $LIBHAL" libhal libhal; then
     1179  if [ -n $PKGCONFIG ] && test_compile "$FLAGSDBUS $LIBDIRDBUS $LIBDBUS" DBus DBus; then
    11801180    log_success "found"
    11811181  fi
     
    17861786  --disable-alsa           disable the ALSA sound backend
    17871787  --disable-pulse          disable the PulseAudio backend
    1788   --disable-libhal         don't use hal for hardware detection
     1788  --disable-dbus           don't use DBus and hal for hardware detection
    17891789  --disable-kmods          don't build Linux kernel modules (host and guest)
    17901790  --disable-hardening      don't be strict about /dev/vboxdrv access
     
    18861886      WITH_PULSE=0
    18871887      ;;
    1888     --disable-libhal)
    1889       WITH_LIBHAL=0
     1888    --disable-dbus)
     1889      WITH_DBUS=0
    18901890      ;;
    18911891    --disable-kmods)
     
    20852085    cnf_append "VBOX_WITH_PULSE" ""
    20862086  fi
    2087   if [ $WITH_LIBHAL -eq 1 ]; then
    2088     check_libhal
     2087  if [ $WITH_DBUS -eq 1 ]; then
     2088    check_dbus
    20892089  else
    2090     cnf_append "VBOX_WITH_LIBHAL" ""
     2090    cnf_append "VBOX_WITH_DBUS" ""
    20912091  fi
    20922092  check_compiler_h
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette