]> git.pld-linux.org Git - packages/VirtualBox.git/blame - VirtualBox-configure.patch
- works ok, release 1
[packages/VirtualBox.git] / VirtualBox-configure.patch
CommitLineData
6cd758ac 1--- configure.orig 2008-04-30 16:06:04.000000000 +0200
2+++ configure 2008-05-05 09:33:29.000000000 +0200
3@@ -66,9 +66,6 @@
77342933 4 LIBZ="-lz"
5 INCPNG=""
6 LIBPNG="-lpng"
6cd758ac 7-QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt"
8-QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr"
9-QT4UIC3DIR="/usr/bin"
fdb44af0 10 KBUILDDIR="`cd \`dirname $0\`; pwd`/kBuild"
11 DEVDIR="`cd \`dirname $0\`; pwd`/tools"
77342933 12 if [ -d "/lib/modules/`uname -r`/build" ]; then
6cd758ac 13@@ -207,8 +204,8 @@
3d906a63 14 echo "compiling the following source file:" >> $LOG
15 cat .tmp_src.cc >> $LOG
16 echo "using the following command line:" >> $LOG
17- echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc \"$1\"" >> $LOG
18- $CXX -O -Wall -o .tmp_out .tmp_src.cc $1 >> $LOG 2>&1
19+ echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib \"$1\"" >> $LOG
20+ $CXX -O -Wall -o .tmp_out .tmp_src.cc -L/usr/X11R6/lib $1 >> $LOG 2>&1
77342933 21 if [ $? -ne 0 ]; then
3d906a63 22 if [ -z "$4" ]; then
77342933 23 echo
6cd758ac 24@@ -1181,37 +1178,25 @@
3d906a63 25 }
77342933 26 EOF
3d906a63 27 found_qt=0
210193ea 28- libs="lib"
29- [ "$LIB" = "lib64" ] && libs="$libs lib64"
6cd758ac 30- for q in $QT3DIR; do
210193ea 31- for l in $libs; do
32- echo "compiling the following source file:" >> $LOG
33- cat .tmp_src.cc >> $LOG
34- echo "using the following command line:" >> $LOG
fdb44af0 35- echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD" >> $LOG
36- $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD >> $LOG 2>&1
77342933 37- if [ $? -eq 0 ]; then
210193ea 38- if test_execute; then
39- cnf_append "QTDIR" "`cd $q ; pwd`"
40- found_qt=1
41- break
42- fi
43- fi
44- done
77342933 45- if [ $found_qt -eq 1 ]; then
210193ea 46- break
fdb44af0 47+ echo "compiling the following source file:" >> $LOG
48+ cat .tmp_src.cc >> $LOG
49+ echo "using the following command line:" >> $LOG
50+ echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt $LIBPTHREAD" >> $LOG
51+ $CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt $LIBPTHREAD >> $LOG 2>&1
77342933 52+ if [ $? -eq 0 ]; then
3d906a63 53+ if test_execute; then
54+ found_qt=1
55 fi
56- done
57+ fi
77342933 58 if [ $found_qt -ne 1 ]; then
59 echo
6cd758ac 60- echo " Qt3 not found at \"$QT3DIR\" or Qt3 headers not found"
77342933 61 echo " Check the file $LOG for detailed error information."
3d906a63 62 fail
63 return 1
64 fi
6cd758ac 65 test_header "Qt3 devtools"
66- if check_avail "$q/bin/moc" QT3DIR/bin; then
3d906a63 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
6cd758ac 73@@ -1280,40 +1265,34 @@
74 [ -n "$INCQT4" ] && I_INCQT4=`prefix_I "$INCQT4"`
75 if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLDQT4" qt4 qt4 nofatal; then
76 if test_execute; then
77-# cnf_append "SDK_VBOX_LIBQT4_INCS" "$INCQT4"
78-# cnf_append "SDK_VBOX_LIBQT4_LIBS" "`strip_l "$LIBQT4"`"
79 if [ "$OS" = "darwin" ]; then
80 cnf_append "VBOX_WITH_QT4GUI" "1"
81 else
82 test_header "Qt4 devtools"
83- for q in $QT4DIR; do
84- if which_wrapper "$q/bin/moc" > /dev/null; then
85- moc_ver=`$q/bin/moc -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'`
86- if [ $? -ne 0 ]; then
87- log_failure "not found"
88- fail
89- else
90- log_success "found version $moc_ver"
91- cnf_append "VBOX_PATH_QT4" "$q"
92- test_header "Qt4 uic3"
93- for r in $q/bin $QT4UIC3DIR; do
94- if which_wrapper "$r/uic3" > /dev/null; then
95- uic3_ver=`$r/uic3 -version 2>&1|sed 's+^.*version \(.*\)+\1+'`
96- if [ $? -ne 0 ]; then
97- log_failure "not found"
98- fail
99- else
100- log_success "found version $uic3_ver"
101- cnf_append "VBOX_UIC3" "$r/uic3"
102- return
103- fi
104- fi
105- done
106- log_failure "not found"
107- fail
108+ if which_wrapper "/usr/bin/moc-qt4" > /dev/null; then
109+ moc_ver=`/usr/bin/moc-qt4 -v 2>&1|sed 's+^.*(Qt \(.*\))+\1+'`
110+ if [ $? -ne 0 ]; then
111+ log_failure "not found"
112+ fail
113+ else
114+ log_success "found version $moc_ver"
115+ cnf_append "VBOX_PATH_QT4" "$q"
116+ test_header "Qt4 uic3"
117+ if which_wrapper "/usr/bin/uic3" > /dev/null; then
118+ uic3_ver=`/usr/bin/uic3 -version 2>&1|sed 's+^.*version \(.*\)+\1+'`
119+ if [ $? -ne 0 ]; then
120+ log_failure "not found"
121+ fail
122+ else
123+ log_success "found version $uic3_ver"
124+ cnf_append "VBOX_UIC3" "$r/uic3"
125+ return
126+ fi
127 fi
128+ log_failure "not found"
129+ fail
130 fi
131- done
132+ fi
133 fi
134 fi
135 else
136@@ -1604,8 +1583,6 @@
fdb44af0 137 --with-iasl=PATH location of the iasl compiler [$IASL]
138 --with-linux=DIR Linux kernel source directory [$LINUX]
139 --with-mkisofs=PATH location of mkisofs [$MKISOFS]
6cd758ac 140- --with-qt-dir=DIR directory for Qt3 headers/libraries [$QT3DIR]
141- --with-qt4-dir=DIR directory for Qt4 headers/libraries [$QT4DIR]
142
143 Build type:
144 -d, --build-debug build with debugging symbols and assertions
145@@ -1645,12 +1622,6 @@
210193ea 146 exit 1
147 fi
3d906a63 148 ;;
149- --with-qt-dir=*)
6cd758ac 150- QT3DIR=`echo $option | cut -d'=' -f2`
151- ;;
152- --with-qt4-dir=*)
153- QT4DIR=`echo $option | cut -d'=' -f2`
3d906a63 154- ;;
77342933 155 --with-iasl=*)
156 IASL=`echo $option | cut -d'=' -f2`
3d906a63 157 ;;
84770c77 158@@ -1822,7 +1822,7 @@
159 else
160 cnf_append "VBOX_LINUX_SRC" ""
161 cnf_append "VBOX_WITH_VBOXDRV" ""
162- cnf_append "VBOX_WITH_LINUX_ADDITIONS_32BIT_R0" ""
163+ cnf_append "VBOX_WITH_ADDITION_DRIVERS" ""
164 fi
165 if [ $WITH_ALSA -eq 1 ]; then
166 check_alsa
This page took 0.150163 seconds and 4 git commands to generate.