Changeset 14989 in vbox
- Timestamp:
- Dec 4, 2008 2:42:43 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r14835 r14989 302 302 # Enable Pulse support for Linux 303 303 VBOX_WITH_PULSE = 1 304 # Enable statically linked libhalsupport for Linux304 # Enable statically linked dbus support for Linux 305 305 ifeq ($(KBUILD_TARGET),linux) 306 # VBOX_WITH_ LIBHAL= 1306 # VBOX_WITH_DBUS = 1 307 307 endif 308 308 # Disable WINMM support for Windows (not implemented) … … 366 366 # Temporary switch for enabling / disabling the new USB code on Darwin. 367 367 VBOX_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_ LIBHAL368 # Enable the hal/sysfs USB code on Linux. This depends on VBOX_WITH_DBUS. 369 ifdef VBOX_WITH_DBUS 370 370 # VBOX_USB_WITH_SYSFS=1 371 371 endif … … 1339 1339 VBOX_LIBPATH32_X11 ?= /usr/X11R6/lib32 /usr/X11R6/lib 1340 1340 1341 # libhalsettings for Linux1341 # dbus settings for Linux 1342 1342 ifeq ($(KBUILD_TARGET),linux) 1343 ifdef VBOX_WITH_ LIBHAL1344 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) 1347 1347 endif 1348 1348 endif -
trunk/configure
r14926 r14989 63 63 WITH_ALSA=1 64 64 WITH_PULSE=1 65 WITH_ LIBHAL=165 WITH_DBUS=1 66 66 WITH_KMODS=1 67 67 WITH_HARDENING=1 … … 93 93 PKGCONFIG="`which_wrapper pkg-config`" 94 94 if [ -n $PKGCONFIG ]; then 95 FLAGS HAL="`$PKGCONFIG hal--cflags 2>/dev/null`"96 LIBDIR HAL="`$PKGCONFIG hal--libs-only-L 2>/dev/null`"97 LIB HAL="`$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`" 98 98 fi 99 99 PYTHONDIR="/usr /usr/local" … … 1165 1165 1166 1166 # 1167 # Check for libhal1168 # 1169 check_ libhal()1170 { 1171 test_header " libhal"1167 # Check for DBus 1168 # 1169 check_dbus() 1170 { 1171 test_header "DBus" 1172 1172 cat > .tmp_src.cc << EOF 1173 #include < libhal.h>1173 #include <dbus/dbus.h> 1174 1174 extern "C" int main(void) 1175 1175 { … … 1177 1177 } 1178 1178 EOF 1179 if [ -n $PKGCONFIG ] && test_compile "$FLAGS HAL $LIBDIRHAL $LIBHAL" libhal libhal; then1179 if [ -n $PKGCONFIG ] && test_compile "$FLAGSDBUS $LIBDIRDBUS $LIBDBUS" DBus DBus; then 1180 1180 log_success "found" 1181 1181 fi … … 1786 1786 --disable-alsa disable the ALSA sound backend 1787 1787 --disable-pulse disable the PulseAudio backend 1788 --disable- libhal don't usehal for hardware detection1788 --disable-dbus don't use DBus and hal for hardware detection 1789 1789 --disable-kmods don't build Linux kernel modules (host and guest) 1790 1790 --disable-hardening don't be strict about /dev/vboxdrv access … … 1886 1886 WITH_PULSE=0 1887 1887 ;; 1888 --disable- libhal)1889 WITH_ LIBHAL=01888 --disable-dbus) 1889 WITH_DBUS=0 1890 1890 ;; 1891 1891 --disable-kmods) … … 2085 2085 cnf_append "VBOX_WITH_PULSE" "" 2086 2086 fi 2087 if [ $WITH_ LIBHAL-eq 1 ]; then2088 check_ libhal2087 if [ $WITH_DBUS -eq 1 ]; then 2088 check_dbus 2089 2089 else 2090 cnf_append "VBOX_WITH_ LIBHAL" ""2090 cnf_append "VBOX_WITH_DBUS" "" 2091 2091 fi 2092 2092 check_compiler_h
Note:
See TracChangeset
for help on using the changeset viewer.