]> git.pld-linux.org Git - packages/VirtualBox.git/blob - VirtualBox-configure.patch
- Relase 0.3; use vbox group
[packages/VirtualBox.git] / VirtualBox-configure.patch
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 @@
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"
8  KBUILDDIR="`cd $(dirname $0); pwd`/kBuild"
9  DEVDIR="`cd $(dirname $0); pwd`/tools"
10  if [ -d "/lib/modules/`uname -r`/build" ]; then
11 @@ -167,8 +166,8 @@
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
19    if [ $? -ne 0 ]; then
20      if [ -z "$4" ]; then
21        echo
22 @@ -873,38 +872,27 @@
23  }
24  EOF
25    found_qt=0
26 -  libs="lib"
27 -  [ "$LIB" = "lib64" ] && libs="$libs lib64"
28 -  for q in $QTDIR; do
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
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
38      
39 -      $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt >> $LOG 2>&1
40 -      if [ $? -eq 0 ]; then
41 -        if test_execute; then
42 -          cnf_append "QTDIR" "`cd $q ; pwd`"
43 -          found_qt=1
44 -          break
45 -        fi
46 -      fi
47 -    done
48 -    if [ $found_qt -eq 1 ]; then
49 -      break
50 +  $CXX -O -Wall -o .tmp_out .tmp_src.cc -I/usr/include/qt -L/usr/lib -lqt-mt >> $LOG 2>&1
51 +  if [ $? -eq 0 ]; then
52 +    if test_execute; then
53 +      found_qt=1
54      fi
55 -  done
56 +  fi
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."
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+'`
70      if [ $? -ne 0 ]; then
71        log_failure "not found"
72        fail
73 @@ -1081,7 +1069,6 @@
74    --with-hal=LIB          location of the libhal libraries [$LIBHAL]
75    --with-linux=DIR        Linux kernel source directory [$LINUX]
76    --with-mkisofs=PATH     location of mkisofs [$MKISOFS]
77 -  --with-qt-dir=DIR       directory for QT headers/libraries [$QTDIR]
78    --with-xalan=LIB        location of the xalan library [$LIBXALAN]
79    --with-xerces=LIB       location of the xerces library [$LIBXERCES]
80  
81 @@ -1118,9 +1105,6 @@
82          exit 1
83        fi
84        ;;
85 -    --with-qt-dir=*)
86 -      QTDIR=`echo $option | cut -d'=' -f2`
87 -      ;;
88      --with-iasl=*)
89        IASL=`echo $option | cut -d'=' -f2`
90        ;;
This page took 0.052794 seconds and 3 git commands to generate.