Changeset 3934 in vbox for trunk/configure
- Timestamp:
- Jul 31, 2007 8:36:16 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r3905 r3934 32 32 WITH_QT=1 33 33 WITH_SDL_TTF=1 34 WITH_HAL=135 34 CC="gcc" 36 35 CC32="" … … 58 57 INCPNG="" 59 58 LIBPNG="-lpng" 60 CFLAGSHAL="-I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include"61 LIBPATHHAL=""62 LIBHAL="-lhal -ldbus-1"63 59 QTDIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3 /usr/X11R6" 64 60 KBUILDDIR="`cd $(dirname $0); pwd`/kBuild" … … 1093 1089 1094 1090 # 1095 # Check for the libhal library for obtaining hardware information on Linux1096 #1097 check_libhal()1098 {1099 test_header libhal1100 pc_cflagshal=`pkg-config hal --cflags 2>/dev/null`1101 pc_libhal=`pkg-config hal --libs-only-l 2>/dev/null`1102 pc_libpathhal=`pkg-config hal --libs-only-L 2>/dev/null`1103 pc_verhal=`pkg-config hal --modversion 2>/dev/null`1104 if [ ! -z "$pc_cflagshal" ]; then # is this acceptable?1105 CFLAGSHAL=$pc_cflagshal1106 LIBPATHHAL=$pc_libpathhal1107 LIBHAL=$pc_libhal1108 fi1109 cat > .tmp_src.cc << EOF1110 #include <cstdio>1111 #include <libhal.h>1112 extern "C" int main(void)1113 {1114 DBusError dbusError;1115 dbus_error_init (&dbusError);1116 LibHalContext *halContext = libhal_ctx_new();1117 if (halContext != 0)1118 {1119 libhal_ctx_free(halContext);1120 }1121 return 0;1122 }1123 EOF1124 if test_compile "$CFLAGSHAL $LIBPATHHAL $LIBHAL" libhal libhal; then1125 log_success "found version $pc_verhal"1126 cnf_append "LIB_HAL_CFLAGS" "$CFLAGSHAL"1127 cnf_append "LIB_HAL_LIBS" "`strip_l "$LIBHAL"`"1128 cnf_append "LIB_HAL_LIBPATH" "`strip_L "$LIBPATHHAL"`"1129 cnf_append "VBOX_WITH_LIBHAL" "1"1130 fi1131 }1132 1133 1134 #1135 1091 # Show help 1136 1092 # … … 1146 1102 --disable-sdl-ttf disable SDL_ttf detection 1147 1103 --build-xalan build xalan & xerces from shipped sources 1148 --without-hal do not use libhal, even if it is available1149 1104 1150 1105 Paths: … … 1153 1108 --with-kbuild=DIR kbuild directory [$KBUILDDIR] 1154 1109 --with-iasl=PATH location of the iasl compiler [$IASL] 1155 --with-hal-cflags=FLAGS cflags for libhal [$CFLAGSHAL]1156 --with-hal=LIB location of the libhal libraries [$LIBHAL]1157 1110 --with-linux=DIR Linux kernel source directory [$LINUX] 1158 1111 --with-mkisofs=PATH location of mkisofs [$MKISOFS] … … 1198 1151 QTDIR=`echo $option | cut -d'=' -f2` 1199 1152 ;; 1200 --with-hal-dir=*)1201 INCHAL=`echo $option | cut -d'=' -f2`1202 ;;1203 --with-hal=*)1204 LIBHAL=`echo $option | cut -d'=' -f2`1205 ;;1206 1153 --with-iasl=*) 1207 1154 IASL=`echo $option | cut -d'=' -f2` … … 1227 1174 --disable-qt) 1228 1175 WITH_QT=0 1229 ;;1230 --without-hal)1231 WITH_HAL=01232 1176 ;; 1233 1177 --build-debug|-d) … … 1367 1311 check_alsa 1368 1312 check_compiler_h 1369 [ "$WITH_HAL" = "1" ] && check_libhal1370 1313 fi 1371 1314
Note:
See TracChangeset
for help on using the changeset viewer.