VirtualBox

Changeset 16166 in vbox for trunk/configure


Ignore:
Timestamp:
Jan 22, 2009 1:58:12 PM (16 years ago)
Author:
vboxsync
Message:

purge the obsolete Qt3 GUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r16144 r16166  
    5757WITH_LIBIDL=1
    5858WITH_GSOAP=0
    59 WITH_QT3=1
    6059WITH_QT4=1
    6160WITH_SDL=1
     
    9594PKGCONFIG="`which_wrapper pkg-config`"
    9695PYTHONDIR="/usr /usr/local"
    97 QT3DIR="/usr/qt/3 /usr/lib/qt3 /usr/lib/qt-3.3 /usr/share/qt3"
    98 QT3DIR="$QT3DIR /usr/lib64/qt-3.3 /usr/X11R6 /usr/lib/qt"
    9996QT4DIR="/usr/lib/qt4 /usr/share/qt4 /usr/lib64/qt4 /usr"
    10097QT4DIR_PKGCONFIG=1
     
    11861183
    11871184#
    1188 # Check for the Qt3 library, needed by VirtualBox
    1189 #
    1190 check_qt3()
    1191 {
    1192   test_header Qt3
    1193   cat > .tmp_src.cc << EOF
    1194 #include <cstdio>
    1195 #include <qglobal.h>
    1196 extern "C" int main(void)
    1197 {
    1198   printf("found version %s", QT_VERSION_STR);
    1199 #if QT_VERSION >= 0x030305
    1200   printf(", OK.\n");
    1201   return 0;
    1202 #elif QT_VERSION >= 0x030300
    1203   printf("\n  ** WARNING: QT < 3.3.5 has known problems!\n");
    1204 #else
    1205   printf(", expected version 3.3.0 or higher\n");
    1206   return 1;
    1207 #endif
    1208 }
    1209 EOF
    1210   found_qt=0
    1211   libs="lib"
    1212   [ "$LIB" = "lib64" ] && libs="$libs lib64"
    1213   for q in $QT3DIR; do
    1214     for l in $libs; do
    1215       echo "compiling the following source file:" >> $LOG
    1216       cat .tmp_src.cc >> $LOG
    1217       echo "using the following command line:" >> $LOG
    1218       echo "$CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD" >> $LOG
    1219       $CXX -O -Wall -o .tmp_out .tmp_src.cc -I$q/include -L$q/$l -lqt-mt $LIBPTHREAD >> $LOG 2>&1
    1220       if [ $? -eq 0 ]; then
    1221         if test_execute; then
    1222           cnf_append "PATH_SDK_QT3" "`cd $q ; pwd`"
    1223           found_qt=1
    1224           break
    1225         fi
    1226       fi
    1227     done
    1228     if [ $found_qt -eq 1 ]; then
    1229       break
    1230     fi
    1231   done
    1232   if [ $found_qt -ne 1 ]; then
    1233     echo
    1234     echo "  Qt3 not found at \"$QT3DIR\" or Qt3 headers not found"
    1235     echo "  Check the file $LOG for detailed error information."
    1236     fail
    1237     return 1
    1238   fi
    1239   test_header "Qt3 devtools"
    1240   if check_avail "$q/bin/moc" QT3DIR/bin; then
    1241     moc_ver=`$q/bin/moc 2>&1 -v|sed 's+^.*(Qt \(.*\))+\1+'`
    1242     if [ $? -ne 0 ]; then
    1243       log_failure "not found"
    1244       fail
    1245     else
    1246       log_success "found version $moc_ver"
    1247       # cnf_append "VBOX_PATH_QT3" "$q" - later/never?
    1248       cnf_append "PATH_SDK_QT3"      "$q"
    1249       cnf_append "PATH_SDK_QT3_LIB"  "$q/$l"
    1250       cnf_append "PATH_SDK_QT3_INC"  "$q/include"
    1251       cnf_append "PATH_TOOL_QT3_BIN" "$q/bin"
    1252     fi
    1253   fi
    1254 }
    1255 
    1256 
    1257 #
    12581185# Check for the Qt4 library, needed by VirtualBox4
    12591186#
     
    12761203      FLGQT4="-framework QtCore"
    12771204    else
    1278       log_failure "Qt4 framework not found (can be disable using --disable-qt4)"
     1205      log_failure "Qt4 framework not found (can be disabled using --disable-qt4)"
    12791206      fail
    12801207    fi
     
    17971724  --with-linux=DIR         Linux kernel source directory [$LINUX]
    17981725  --with-mkisofs=PATH      location of mkisofs [$MKISOFS]
    1799   --with-qt-dir=DIR        directory for Qt3 headers/libraries [$QT3DIR]
    1800   --with-qt4-dir=DIR       directory for Qt4 headers/libraries [pkgconfig]
     1726  --with-qt-dir=DIR        directory for Qt4 headers/libraries [pkgconfig]
    18011727  --with-gsoap-dir=PATH    directory for SOAP compiler (soapcpp2 and wsdl2h)
    18021728
     
    18391765      fi
    18401766      ;;
    1841     --with-qt-dir=*)
    1842       QT3DIR=`echo $option | cut -d'=' -f2`
    1843       ;;
    1844     --with-qt4-dir=*)
     1767    --with-qt-dir=*|--with-qt4-dir=*)
    18451768      QT4DIR=`echo $option | cut -d'=' -f2`
    18461769      QT4DIR_PKGCONFIG=0
     
    18681791      ;;
    18691792    --disable-qt)
    1870       WITH_QT3=0
    18711793      WITH_QT4=0
    1872       ;;
    1873     --disable-qt3)
    1874       WITH_QT3=0
    18751794      ;;
    18761795    --disable-qt4)
     
    19151834      WITH_SDL_TTF=0
    19161835      WITH_X11=0
    1917       WITH_QT3=0
    19181836      WITH_QT4=0
    19191837      ;;
     
    20211939  # (Qt3 builds for Intel Macs are usually not threaded or for X11. And they
    20221940  #  don't contain our patches, which means the result isn't really usable.)
    2023   WITH_QT3=0
    20241941  BUILD_LIBXSLT=1
    20251942  BUILD_LIBXML2=1
    20261943fi
    20271944
    2028 if [ "$OS" = "freebsd" ]; then
    2029   # Qt3 will be gone before the FreeBSD port is completed, so just drop it.
    2030   WITH_QT3=0
    2031 fi
    2032 
    20331945# emit disable directives corresponding to any --disable-xxx options.
    20341946[ $WITH_XPCOM -eq 0 ]   && cnf_append "VBOX_WITH_MAIN" ""
    2035 [ $WITH_QT3 -eq 0   ]   && cnf_append "VBOX_WITH_QTGUI" ""
    20361947[ $WITH_QT4 -eq 0   ]   && cnf_append "VBOX_WITH_QT4GUI" ""
    20371948[ $WITH_SDL_TTF -eq 0 ] && cnf_append "VBOX_WITH_SECURELABEL" ""
     
    20661977# TODO check for libglu1-mesa-dev (GL/glu.h)
    20671978[ $WITH_X11    -eq 1 ] && check_xcursor
    2068 [ $WITH_QT3    -eq 1 ] && check_qt3
    20691979[ $WITH_QT4    -eq 1 ] && check_qt4
    20701980[ $WITH_PYTHON -eq 1 -a "$OS" != "darwin" ] && check_python
Note: See TracChangeset for help on using the changeset viewer.

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