VirtualBox

Changeset 9671 in vbox for trunk


Ignore:
Timestamp:
Jun 13, 2008 7:43:52 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32007
Message:

configure: allow the user to specify the QT4 directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r9479 r9671  
    6969QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3 /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt"
    7070QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr"
     71QT4DIR_PKGCONFIG=1
    7172QT4UIC3DIR="/usr/bin"
    7273KBUILDDIR="`cd \`dirname $0\`; pwd`/kBuild"
     
    12511252    fi
    12521253  else
    1253     if which_wrapper pkg-config > /dev/null; then
    1254       qt4_ver=`pkg-config QtCore --modversion 2>> $LOG`
    1255       if [ $? -ne 0 ]; then
    1256         log_failure "not found"
    1257   #      fail
     1254    if [ $QT4DIR_PKGCONFIG -eq 1 ]; then
     1255      # default is to use pkg-config
     1256      if which_wrapper pkg-config > /dev/null; then
     1257        qt4_ver=`pkg-config QtCore --modversion 2>> $LOG`
     1258        if [ $? -ne 0 ]; then
     1259          log_failure "not found"
     1260    #      fail
     1261        else
     1262          FLGQT4=`pkg-config QtCore --cflags`
     1263          INCQT4=`strip_I "$FLGQT4"`
     1264          LIBQT4=`pkg-config QtCore --libs`
     1265          foundqt4=1
     1266        fi
    12581267      else
    1259         FLGQT4=`pkg-config QtCore --cflags`
    1260         INCQT4=`strip_I "$FLGQT4"`
    1261         LIBQT4=`pkg-config QtCore --libs`
    1262         foundqt4=1
     1268        log_failure "pkg-config not found"
     1269# not yet
     1270#       fail
    12631271      fi
    12641272    else
    1265       log_failure "pkg-config not found"
    1266 # not yet
    1267 #     fail
     1273      # do it the old way (e.g. user has specified QT4DIR)
     1274      for q in $QT4DIR; do
     1275        INCQT4="$q/include $q/include/QtCore"
     1276        LIBQT4="-L$q/lib -lQtCore"
     1277        FLGQT4="-DQT_SHARED"
     1278        I_INCQT4=`prefix_I "$INCQT4"`
     1279        if test_compile "$LIBQT4 $LIBPTHREAD $I_INCQT4 $FLDQT4" qt4 qt4 nofatal; then
     1280          foundqt4=1
     1281          break;
     1282        fi
     1283      done
    12681284    fi
    12691285  fi
     
    16111627  --with-mkisofs=PATH      location of mkisofs [$MKISOFS]
    16121628  --with-qt-dir=DIR        directory for Qt3 headers/libraries [$QT3DIR]
    1613   --with-qt4-dir=DIR       directory for Qt4 headers/libraries [$QT4DIR]
     1629  --with-qt4-dir=DIR       directory for Qt4 headers/libraries [pkgconfig]
    16141630
    16151631Build type:
     
    16561672    --with-qt4-dir=*)
    16571673      QT4DIR=`echo $option | cut -d'=' -f2`
     1674      QT4DIR_PKGCONFIG=0
    16581675      ;;
    16591676    --with-iasl=*)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette