]> git.pld-linux.org Git - packages/VirtualBox.git/blame - VirtualBox-configure.patch
- updated for 1.5.0
[packages/VirtualBox.git] / VirtualBox-configure.patch
CommitLineData
210193ea 1--- configure.orig 2007-08-23 21:34:25.000000000 +0200
2+++ configure 2007-08-23 21:39:54.000000000 +0200
3@@ -57,7 +57,6 @@
77342933 4 LIBZ="-lz"
5 INCPNG=""
6 LIBPNG="-lpng"
7-QTDIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3 /usr/X11R6"
3d906a63 8 KBUILDDIR="`cd $(dirname $0); pwd`/kBuild"
9 DEVDIR="`cd $(dirname $0); pwd`/tools"
77342933 10 if [ -d "/lib/modules/`uname -r`/build" ]; then
210193ea 11@@ -167,8 +166,8 @@
3d906a63 12 echo "compiling the following source file:" >> $LOG
13 cat .tmp_src.cc >> $LOG
14 echo "using the following command line:" >> $LOG
15- echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc \"$1\"" >> $LOG
16- $CXX -O -Wall -o .tmp_out .tmp_src.cc $1 >> $LOG 2>&1
17+ echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib \"$1\"" >> $LOG
18+ $CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib $1 >> $LOG 2>&1
77342933 19 if [ $? -ne 0 ]; then
3d906a63 20 if [ -z "$4" ]; then
77342933 21 echo
22@@ -873,38 +872,27 @@
3d906a63 23 }
77342933 24 EOF
3d906a63 25 found_qt=0
210193ea 26- libs="lib"
27- [ "$LIB" = "lib64" ] && libs="$libs lib64"
3d906a63 28- for q in $QTDIR; do
210193ea 29- for l in $libs; do
30- echo "compiling the following source file:" >> $LOG
31- cat .tmp_src.cc >> $LOG
32- echo "using the following command line:" >> $LOG
33- echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt" >> $LOG
3d906a63 34+ echo "compiling the following source file:" >> $LOG
35+ cat .tmp_src.cc >> $LOG
36+ echo "using the following command line:" >> $LOG
37+ echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt" >> $LOG
210193ea 38
39- $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt >> $LOG 2>&1
77342933 40- if [ $? -eq 0 ]; then
210193ea 41- if test_execute; then
42- cnf_append "QTDIR" "`cd $q ; pwd`"
43- found_qt=1
44- break
45- fi
46- fi
47- done
77342933 48- if [ $found_qt -eq 1 ]; then
210193ea 49- break
3d906a63 50+ $CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt >> $LOG 2>&1
77342933 51+ if [ $? -eq 0 ]; then
3d906a63 52+ if test_execute; then
53+ found_qt=1
54 fi
55- done
56+ fi
77342933 57 if [ $found_qt -ne 1 ]; then
58 echo
59- echo " Qt not found at \"$QTDIR\" or Qt headers not found"
60+ echo " Qt not found or Qt headers not found"
61 echo " Check the file $LOG for detailed error information."
3d906a63 62 fail
63 return 1
64 fi
65 test_header "Qt devtools"
66- if check_avail "$q/bin/moc" QTDIR/bin; then
67- moc_ver=`$q/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
68+ if check_avail "/usr/bin/moc"; then
69+ moc_ver=`/usr/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
77342933 70 if [ $? -ne 0 ]; then
3d906a63 71 log_failure "not found"
72 fail
210193ea 73@@ -1081,7 +1069,6 @@
74 --with-hal=LIB location of the libhal libraries [$LIBHAL]
3d906a63 75 --with-linux=DIR Linux kernel source directory [$LINUX]
210193ea 76 --with-mkisofs=PATH location of mkisofs [$MKISOFS]
3d906a63 77- --with-qt-dir=DIR directory for QT headers/libraries [$QTDIR]
210193ea 78 --with-xalan=LIB location of the xalan library [$LIBXALAN]
79 --with-xerces=LIB location of the xerces library [$LIBXERCES]
3d906a63 80
210193ea 81@@ -1118,9 +1105,6 @@
82 exit 1
83 fi
3d906a63 84 ;;
85- --with-qt-dir=*)
86- QTDIR=`echo $option | cut -d'=' -f2`
87- ;;
77342933 88 --with-iasl=*)
89 IASL=`echo $option | cut -d'=' -f2`
3d906a63 90 ;;
This page took 0.052473 seconds and 4 git commands to generate.