configure
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   628 
   628 
   629 # initalize internal variables
   629 # initalize internal variables
   630 CFG_CONFIGURE_EXIT_ON_ERROR=yes
   630 CFG_CONFIGURE_EXIT_ON_ERROR=yes
   631 CFG_PROFILE=no
   631 CFG_PROFILE=no
   632 CFG_EXCEPTIONS=unspecified
   632 CFG_EXCEPTIONS=unspecified
       
   633 CFG_GUI=auto # (yes|no|auto)
   633 CFG_SCRIPT=auto # (yes|no|auto)
   634 CFG_SCRIPT=auto # (yes|no|auto)
   634 CFG_SCRIPTTOOLS=auto # (yes|no|auto)
   635 CFG_SCRIPTTOOLS=auto # (yes|no|auto)
   635 CFG_XMLPATTERNS=auto # (yes|no|auto)
   636 CFG_XMLPATTERNS=auto # (yes|no|auto)
   636 CFG_INCREMENTAL=auto
   637 CFG_INCREMENTAL=auto
   637 CFG_QCONFIG=full
   638 CFG_QCONFIG=full
   640 CFG_DEBUG_RELEASE=no
   641 CFG_DEBUG_RELEASE=no
   641 CFG_SHARED=yes
   642 CFG_SHARED=yes
   642 CFG_SM=auto
   643 CFG_SM=auto
   643 CFG_XSHAPE=auto
   644 CFG_XSHAPE=auto
   644 CFG_XSYNC=auto
   645 CFG_XSYNC=auto
       
   646 CFG_XVIDEO=auto
   645 CFG_XINERAMA=runtime
   647 CFG_XINERAMA=runtime
   646 CFG_XFIXES=runtime
   648 CFG_XFIXES=runtime
   647 CFG_ZLIB=auto
   649 CFG_ZLIB=auto
       
   650 CFG_SYMBIAN_DEFFILES=auto
       
   651 CFG_S60=auto
   648 CFG_SQLITE=qt
   652 CFG_SQLITE=qt
   649 CFG_GIF=auto
   653 CFG_GIF=auto
   650 CFG_TIFF=auto
   654 CFG_TIFF=auto
   651 CFG_LIBTIFF=auto
   655 CFG_LIBTIFF=auto
   652 CFG_PNG=yes
   656 CFG_PNG=yes
   675 CFG_BUILD_PARTS=""
   679 CFG_BUILD_PARTS=""
   676 CFG_NOBUILD_PARTS=""
   680 CFG_NOBUILD_PARTS=""
   677 CFG_RELEASE_QMAKE=no
   681 CFG_RELEASE_QMAKE=no
   678 CFG_PHONON=auto
   682 CFG_PHONON=auto
   679 CFG_PHONON_BACKEND=yes
   683 CFG_PHONON_BACKEND=yes
   680 CFG_MULTIMEDIA=yes
   684 CFG_MULTIMEDIA=auto
   681 CFG_AUDIO_BACKEND=yes
   685 CFG_AUDIO_BACKEND=auto
   682 CFG_SVG=yes
   686 CFG_SVG=auto
   683 CFG_DECLARATIVE=auto
   687 CFG_DECLARATIVE=auto
   684 CFG_WEBKIT=auto # (yes|no|auto)
   688 CFG_WEBKIT=auto # (yes|no|auto)
   685 CFG_JAVASCRIPTCORE_JIT=auto
   689 CFG_JAVASCRIPTCORE_JIT=auto
   686 
   690 
   687 CFG_GFX_AVAILABLE="linuxfb transformed qvfb vnc multiscreen directfb"
   691 CFG_GFX_AVAILABLE="linuxfb transformed qvfb vnc multiscreen directfb"
   721 CFG_ICONV=auto
   725 CFG_ICONV=auto
   722 CFG_DBUS=auto
   726 CFG_DBUS=auto
   723 CFG_GLIB=auto
   727 CFG_GLIB=auto
   724 CFG_GSTREAMER=auto
   728 CFG_GSTREAMER=auto
   725 CFG_QGTKSTYLE=auto
   729 CFG_QGTKSTYLE=auto
   726 CFG_LARGEFILE=auto
   730 CFG_QS60STYLE=auto
       
   731 CFG_LARGEFILE=yes
   727 CFG_OPENSSL=auto
   732 CFG_OPENSSL=auto
   728 CFG_PTMALLOC=no
   733 CFG_PTMALLOC=no
   729 CFG_STL=auto
   734 CFG_STL=auto
   730 CFG_PRECOMPILE=auto
   735 CFG_PRECOMPILE=auto
   731 CFG_SEPARATE_DEBUG_INFO=auto
   736 CFG_SEPARATE_DEBUG_INFO=auto
   759 CFG_FRAMEWORK=auto
   764 CFG_FRAMEWORK=auto
   760 CFG_MAC_ARCHS=
   765 CFG_MAC_ARCHS=
   761 MAC_CONFIG_TEST_COMMANDLINE=  # used to make the configure tests run with the correct arch's and SDK settings
   766 MAC_CONFIG_TEST_COMMANDLINE=  # used to make the configure tests run with the correct arch's and SDK settings
   762 CFG_MAC_DWARF2=auto
   767 CFG_MAC_DWARF2=auto
   763 CFG_MAC_XARCH=auto
   768 CFG_MAC_XARCH=auto
   764 CFG_MAC_CARBON=yes
   769 CFG_MAC_CARBON=no
   765 CFG_MAC_COCOA=auto
   770 CFG_MAC_COCOA=yes
   766 COMMANDLINE_MAC_COCOA=no
   771 COMMANDLINE_MAC_CARBON=no
   767 CFG_SXE=no
   772 CFG_SXE=no
   768 CFG_PREFIX_INSTALL=yes
   773 CFG_PREFIX_INSTALL=yes
   769 CFG_SDK=
   774 CFG_SDK=
   770 D_FLAGS=
   775 D_FLAGS=
   771 I_FLAGS=
   776 I_FLAGS=
   772 L_FLAGS=
   777 L_FLAGS=
   773 RPATH_FLAGS=
   778 RPATH_FLAGS=
   774 l_FLAGS=
   779 l_FLAGS=
   775 QCONFIG_FLAGS=
   780 QCONFIG_FLAGS=
   776 XPLATFORM=              # This seems to be the QMAKESPEC, like "linux-g++"
   781 XPLATFORM=              # This seems to be the QMAKESPEC, like "linux-g++" or "symbian/linux-gcce"
   777 PLATFORM=$QMAKESPEC
   782 PLATFORM=$QMAKESPEC
   778 QT_CROSS_COMPILE=no
   783 QT_CROSS_COMPILE=no
   779 OPT_CONFIRM_LICENSE=no
   784 OPT_CONFIRM_LICENSE=no
   780 OPT_SHADOW=maybe
   785 OPT_SHADOW=maybe
   781 OPT_FAST=auto
   786 OPT_FAST=auto
   782 OPT_VERBOSE=no
   787 OPT_VERBOSE=no
   783 OPT_HELP=
   788 OPT_HELP=
   784 CFG_SILENT=no
   789 CFG_SILENT=no
   785 CFG_GRAPHICS_SYSTEM=default
   790 CFG_GRAPHICS_SYSTEM=default
   786 CFG_ALSA=auto
   791 CFG_ALSA=auto
       
   792 CFG_PULSEAUDIO=auto
       
   793 CFG_COREWLAN=auto
       
   794 CFG_ICD=auto
   787 
   795 
   788 # initalize variables used for installation
   796 # initalize variables used for installation
   789 QT_INSTALL_PREFIX=
   797 QT_INSTALL_PREFIX=
   790 QT_INSTALL_DOCS=
   798 QT_INSTALL_DOCS=
   791 QT_INSTALL_HEADERS=
   799 QT_INSTALL_HEADERS=
   792 QT_INSTALL_LIBS=
   800 QT_INSTALL_LIBS=
   793 QT_INSTALL_BINS=
   801 QT_INSTALL_BINS=
   794 QT_INSTALL_PLUGINS=
   802 QT_INSTALL_PLUGINS=
       
   803 QT_INSTALL_IMPORTS=
   795 QT_INSTALL_DATA=
   804 QT_INSTALL_DATA=
   796 QT_INSTALL_TRANSLATIONS=
   805 QT_INSTALL_TRANSLATIONS=
   797 QT_INSTALL_SETTINGS=
   806 QT_INSTALL_SETTINGS=
   798 QT_INSTALL_EXAMPLES=
   807 QT_INSTALL_EXAMPLES=
   799 QT_INSTALL_DEMOS=
   808 QT_INSTALL_DEMOS=
   811 
   820 
   812 # flags for libdbus-1
   821 # flags for libdbus-1
   813 QT_CFLAGS_DBUS=
   822 QT_CFLAGS_DBUS=
   814 QT_LIBS_DBUS=
   823 QT_LIBS_DBUS=
   815 
   824 
   816 # QTP:QTPROD-7 Cross compiling on Linux broken
       
   817 # flags for Symbian style
       
   818 QT_SYMBIAN_STYLE_FLAGS=
       
   819 
       
   820 # flags for Glib (X11 only)
   825 # flags for Glib (X11 only)
   821 QT_CFLAGS_GLIB=
   826 QT_CFLAGS_GLIB=
   822 QT_LIBS_GLIB=
   827 QT_LIBS_GLIB=
   823 
   828 
   824 # flags for GStreamer (X11 only)
   829 # flags for GStreamer (X11 only)
   825 QT_CFLAGS_GSTREAMER=
   830 QT_CFLAGS_GSTREAMER=
   826 QT_LIBS_GSTREAMER=
   831 QT_LIBS_GSTREAMER=
       
   832 
       
   833 # flags for icd (Maemo Internet Connection Daemon)
       
   834 QT_CFLAGS_ICD=
       
   835 QT_LIBS_ICD=
   827 
   836 
   828 #-------------------------------------------------------------------------------
   837 #-------------------------------------------------------------------------------
   829 # check SQL drivers, mouse drivers and decorations available in this package
   838 # check SQL drivers, mouse drivers and decorations available in this package
   830 #-------------------------------------------------------------------------------
   839 #-------------------------------------------------------------------------------
   831 
   840 
   914         ;;
   923         ;;
   915     --*)
   924     --*)
   916         VAR=`echo $1 | sed "s,^--\(.*\),\1,"`
   925         VAR=`echo $1 | sed "s,^--\(.*\),\1,"`
   917         VAL=yes
   926         VAL=yes
   918         ;;
   927         ;;
   919 #QTP:QTPPROD-7
       
   920     #Qt Symbian style options
       
   921     -*-style-s60)
       
   922         VAR=`echo $1 | sed "s,^-[^-]*-\(.*\),\1,"`
       
   923         if [ "$1" = "-no-style-s60" ]; then
       
   924           VAL=no
       
   925         else
       
   926           VAL=yes
       
   927         fi
       
   928         ;;
       
   929     #Qt plugin options
   928     #Qt plugin options
   930     -no-*-*|-plugin-*-*|-qt-*-*)
   929     -no-*-*|-plugin-*-*|-qt-*-*)
   931         VAR=`echo $1 | sed "s,^-[^-]*-\(.*\),\1,"`
   930         VAR=`echo $1 | sed "s,^-[^-]*-\(.*\),\1,"`
   932         VAL=`echo $1 | sed "s,^-\([^-]*\).*,\1,"`
   931         VAL=`echo $1 | sed "s,^-\([^-]*\).*,\1,"`
   933         ;;
   932         ;;
   935     -no-*)
   934     -no-*)
   936         VAR=`echo $1 | sed "s,^-no-\(.*\),\1,"`
   935         VAR=`echo $1 | sed "s,^-no-\(.*\),\1,"`
   937         VAL=no
   936         VAL=no
   938         ;;
   937         ;;
   939     #Qt style yes options
   938     #Qt style yes options
   940         -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-universal|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-webkit|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config)
   939         -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-webkit|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles)
   941         VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
   940         VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
   942         VAL=yes
   941         VAL=yes
   943         ;;
   942         ;;
   944     #Qt style options that pass an argument
   943     #Qt style options that pass an argument
   945     -qconfig)
   944     -qconfig)
   951         CFG_QCONFIG="$VAL"
   950         CFG_QCONFIG="$VAL"
   952         VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
   951         VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
   953         shift
   952         shift
   954         VAL=$1
   953         VAL=$1
   955         ;;
   954         ;;
   956     -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config)
   955     -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey|-sdk|-arch|-host-arch|-mysql_config)
   957         VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
   956         VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
   958         shift
   957         shift
   959         VAL="$1"
   958         VAL="$1"
   960         ;;
   959         ;;
   961     #Qt style complex options in one command
   960     #Qt style complex options in one command
  1152         QT_INSTALL_HEADERS="$VAL"
  1151         QT_INSTALL_HEADERS="$VAL"
  1153         ;;
  1152         ;;
  1154     plugindir)
  1153     plugindir)
  1155         QT_INSTALL_PLUGINS="$VAL"
  1154         QT_INSTALL_PLUGINS="$VAL"
  1156         ;;
  1155         ;;
       
  1156     importdir)
       
  1157         QT_INSTALL_IMPORTS="$VAL"
       
  1158         ;;
  1157     datadir)
  1159     datadir)
  1158         QT_INSTALL_DATA="$VAL"
  1160         QT_INSTALL_DATA="$VAL"
  1159         ;;
  1161         ;;
  1160     libdir)
  1162     libdir)
  1161         QT_INSTALL_LIBS="$VAL"
  1163         QT_INSTALL_LIBS="$VAL"
  1226             CFG_HOST_ENDIAN="Q_BIG_ENDIAN"
  1228             CFG_HOST_ENDIAN="Q_BIG_ENDIAN"
  1227         else
  1229         else
  1228             UNKNOWN_OPT=yes
  1230             UNKNOWN_OPT=yes
  1229         fi
  1231         fi
  1230         ;;
  1232         ;;
  1231 #QTP: QTPPROD-7
       
  1232     style-s60)
       
  1233         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
       
  1234             QT_SYMBIAN_STYLE_FLAGS="$VAL"
       
  1235         else
       
  1236             UNKNOWN_OPT=yes
       
  1237         fi
       
  1238         ;;
       
  1239     armfpa)
  1233     armfpa)
  1240         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1234         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1241             CFG_ARMFPA="$VAL"
  1235             CFG_ARMFPA="$VAL"
  1242         else
  1236         else
  1243             UNKNOWN_OPT=yes
  1237             UNKNOWN_OPT=yes
  1247         CFG_QWS_DEPTHS="$VAL"
  1241         CFG_QWS_DEPTHS="$VAL"
  1248         ;;
  1242         ;;
  1249     opengl)
  1243     opengl)
  1250         if  [ "$VAL" = "auto" ] || [ "$VAL" = "desktop" ] ||
  1244         if  [ "$VAL" = "auto" ] || [ "$VAL" = "desktop" ] ||
  1251             [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] ||
  1245             [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] ||
  1252             [ "$VAL" = "es1cl" ] || [ "$VAL" = "es1" ] || [ "$VAL" = "es2" ]; then
  1246             [ "$VAL" = "es1" ] || [ "$VAL" = "es2" ]; then
  1253             CFG_OPENGL="$VAL"
  1247             CFG_OPENGL="$VAL"
       
  1248             if  [ "$VAL" = "es1" ] || [ "$VAL" = "es2" ]; then
       
  1249                 CFG_EGL="yes"
       
  1250             fi
  1254         else
  1251         else
  1255             UNKNOWN_OPT=yes
  1252             UNKNOWN_OPT=yes
  1256         fi
  1253         fi
  1257         ;;
  1254         ;;
  1258     openvg)
  1255     openvg)
  1259         if [ "$VAL" = "auto" ] || [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1256         if [ "$VAL" = "auto" ] || [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1260             CFG_OPENVG="$VAL"
  1257             CFG_OPENVG="$VAL"
       
  1258             CFG_EGL="auto"
  1261         else
  1259         else
  1262             UNKNOWN_OPT=yes
  1260             UNKNOWN_OPT=yes
  1263         fi
  1261         fi
  1264         ;;
  1262         ;;
  1265     graphicssystem)
  1263     graphicssystem)
  1343         else
  1341         else
  1344             UNKNOWN_OPT=yes
  1342             UNKNOWN_OPT=yes
  1345         fi
  1343         fi
  1346         ;;
  1344         ;;
  1347     cocoa)
  1345     cocoa)
       
  1346 #       do nothing - Cocoa is the default.
       
  1347         ;;
       
  1348     carbon)
  1348         if [ "$PLATFORM_MAC" = "yes" ] && [ "$VAL" = "yes" ]; then
  1349         if [ "$PLATFORM_MAC" = "yes" ] && [ "$VAL" = "yes" ]; then
  1349             CFG_MAC_COCOA="$VAL"
  1350             CFG_MAC_CARBON="$VAL"
  1350             COMMANDLINE_MAC_COCOA="$VAL"
  1351             COMMANDLINE_MAC_CARBON="$VAL"
  1351         else
  1352         else
  1352             UNKNOWN_OPT=yes
  1353             UNKNOWN_OPT=yes
  1353         fi
  1354         fi
  1354         ;;
  1355         ;;
       
  1356 
  1355     framework)
  1357     framework)
  1356         if [ "$PLATFORM_MAC" = "yes" ]; then
  1358         if [ "$PLATFORM_MAC" = "yes" ]; then
  1357             CFG_FRAMEWORK="$VAL"
  1359             CFG_FRAMEWORK="$VAL"
  1358         else
  1360         else
  1359             UNKNOWN_OPT=yes
  1361             UNKNOWN_OPT=yes
  1440             ;;
  1442             ;;
  1441         esac
  1443         esac
  1442         ;;
  1444         ;;
  1443     xplatform)
  1445     xplatform)
  1444         XPLATFORM="$VAL"
  1446         XPLATFORM="$VAL"
  1445 # QTP:QTPROD-7 Cross compiling on Linux broken
       
  1446         if [ "$CFG_ENDIAN" = "auto" ] && [ "$XPLATFORM"="symbian-sbsv2" ]; then
       
  1447           echo "set endian byte order"
       
  1448           CFG_ENDIAN="Q_LITTLE_ENDIAN"
       
  1449         fi
       
  1450         ;;
  1447         ;;
  1451     debug-and-release)
  1448     debug-and-release)
  1452         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1449         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1453             CFG_DEBUG_RELEASE="$VAL"
  1450             CFG_DEBUG_RELEASE="$VAL"
  1454         else
  1451         else
  1506         else
  1503         else
  1507             UNKNOWN_OPT=yes
  1504             UNKNOWN_OPT=yes
  1508         fi
  1505         fi
  1509         ;;
  1506         ;;
  1510     feature-*)
  1507     feature-*)
  1511         if [ "$PLATFORM_QWS" = "yes" ]; then
       
  1512             FEATURE=`echo $VAR | sed "s,^[^-]*-\([^-]*\),\1," | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1508             FEATURE=`echo $VAR | sed "s,^[^-]*-\([^-]*\),\1," | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1513             if [ "$VAL" = "no" ]; then
  1509             if [ "$VAL" = "no" ]; then
  1514                 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_$FEATURE"
  1510                 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_$FEATURE"
  1515             elif [ "$VAL" = "yes" ] || [ "$VAL" = "unknown" ]; then
  1511             elif [ "$VAL" = "yes" ] || [ "$VAL" = "unknown" ]; then
  1516                 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_$FEATURE"
  1512                 QCONFIG_FLAGS="$QCONFIG_FLAGS QT_$FEATURE"
  1517             else
  1513             else
  1518                 UNKNOWN_OPT=yes
  1514                 UNKNOWN_OPT=yes
  1519             fi
  1515             fi
  1520         else
       
  1521             UNKNOWN_OPT=yes
       
  1522         fi
       
  1523         ;;
  1516         ;;
  1524     shared)
  1517     shared)
  1525         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1518         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1526             CFG_SHARED="$VAL"
  1519             CFG_SHARED="$VAL"
  1527         else
  1520         else
  1556             CFG_XSHAPE="$VAL"
  1549             CFG_XSHAPE="$VAL"
  1557         else
  1550         else
  1558             UNKNOWN_OPT=yes
  1551             UNKNOWN_OPT=yes
  1559         fi
  1552         fi
  1560         ;;
  1553         ;;
       
  1554     xvideo)
       
  1555         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
       
  1556             CFG_XVIDEO="$VAL"
       
  1557         else
       
  1558             UNKNOWN_OPT=yes
       
  1559         fi
       
  1560         ;;
  1561     xsync)
  1561     xsync)
  1562         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1562         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1563             CFG_XSYNC="$VAL"
  1563             CFG_XSYNC="$VAL"
  1564         else
  1564         else
  1565             UNKNOWN_OPT=yes
  1565             UNKNOWN_OPT=yes
  1566         fi
  1566         fi
  1567         ;;
  1567         ;;
  1568     xinput)
  1568     xinput)
  1569         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "runtime" ]; then
  1569         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "runtime" ]; then
  1570             CFG_XINPUT="$VAL"
  1570             CFG_XINPUT="$VAL"
       
  1571         else
       
  1572             UNKNOWN_OPT=yes
       
  1573         fi
       
  1574         ;;
       
  1575     egl)
       
  1576         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
       
  1577             CFG_EGL="$VAL"
  1571         else
  1578         else
  1572             UNKNOWN_OPT=yes
  1579             UNKNOWN_OPT=yes
  1573         fi
  1580         fi
  1574         ;;
  1581         ;;
  1575     stl)
  1582     stl)
  1664             UNKNOWN_OPT=yes
  1671             UNKNOWN_OPT=yes
  1665         fi
  1672         fi
  1666         # No longer supported:
  1673         # No longer supported:
  1667         #[ "$VAL" = "no" ] && CFG_LIBPNG=no
  1674         #[ "$VAL" = "no" ] && CFG_LIBPNG=no
  1668         ;;
  1675         ;;
       
  1676     s60)
       
  1677         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
       
  1678             CFG_S60="$VAL"
       
  1679         else
       
  1680             UNKNOWN_OPT=yes
       
  1681         fi
       
  1682         ;;
       
  1683     usedeffiles)
       
  1684         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
       
  1685             CFG_SYMBIAN_DEFFILES="$VAL"
       
  1686         else
       
  1687             UNKNOWN_OPT=yes
       
  1688         fi
       
  1689         ;;
  1669     sqlite)
  1690     sqlite)
  1670         if [ "$VAL" = "system" ]; then
  1691         if [ "$VAL" = "system" ]; then
  1671             CFG_SQLITE=system
  1692             CFG_SQLITE=system
  1672         else
  1693         else
  1673             UNKNOWN_OPT=yes
  1694             UNKNOWN_OPT=yes
  1792     gtkstyle)
  1813     gtkstyle)
  1793         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1814         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  1794             CFG_QGTKSTYLE="$VAL"
  1815             CFG_QGTKSTYLE="$VAL"
  1795         else
  1816         else
  1796             UNKNOWN_OPT=yes
  1817             UNKNOWN_OPT=yes
       
  1818         fi
       
  1819         ;;
       
  1820     style-s60)
       
  1821         if [ "$VAL" = "qt" ] || [ "$VAL" = "no" ]; then
       
  1822             CFG_QS60STYLE="$VAL"
       
  1823         else
       
  1824             UNKNOWN_OPT=yes
       
  1825         fi
       
  1826         ;;
       
  1827     gui)
       
  1828         if [ "$VAL" = "yes" ] || [ "$VAL" = "auto" ]; then
       
  1829             CFG_GUI="yes"
       
  1830         else
       
  1831             if [ "$VAL" = "no" ]; then
       
  1832                 CFG_GUI="no"
       
  1833             else
       
  1834                 UNKNOWN_OPT=yes
       
  1835             fi
  1797         fi
  1836         fi
  1798         ;;
  1837         ;;
  1799     qdbus|dbus)
  1838     qdbus|dbus)
  1800         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "linked" ]; then
  1839         if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ] || [ "$VAL" = "linked" ]; then
  1801             CFG_DBUS="$VAL"
  1840             CFG_DBUS="$VAL"
  2144 
  2183 
  2145 if [ "$CFG_QCONFIG" != "full" ] && [ "$CFG_QT3SUPPORT" = "yes" ]; then
  2184 if [ "$CFG_QCONFIG" != "full" ] && [ "$CFG_QT3SUPPORT" = "yes" ]; then
  2146     echo "Warning: '-qconfig $CFG_QCONFIG' will disable the qt3support library."
  2185     echo "Warning: '-qconfig $CFG_QCONFIG' will disable the qt3support library."
  2147     CFG_QT3SUPPORT="no"
  2186     CFG_QT3SUPPORT="no"
  2148 fi
  2187 fi
       
  2188 if [ "$CFG_GUI" = "no" ]; then
       
  2189     echo "Warning: -no-gui will disable the qt3support library."
       
  2190     CFG_QT3SUPPORT="no"
       
  2191 fi
  2149 
  2192 
  2150 # update QT_CONFIG to show our current predefined configuration
  2193 # update QT_CONFIG to show our current predefined configuration
  2151 case "$CFG_QCONFIG" in
  2194 case "$CFG_QCONFIG" in
  2152 minimal|small|medium|large|full)
  2195 minimal|small|medium|large|full)
  2153     # these are a sequence of increasing functionality
  2196     # these are a sequence of increasing functionality
  2170 #-------------------------------------------------------------------------------
  2213 #-------------------------------------------------------------------------------
  2171 
  2214 
  2172 # where to find which..
  2215 # where to find which..
  2173 unixtests="$relpath/config.tests/unix"
  2216 unixtests="$relpath/config.tests/unix"
  2174 mactests="$relpath/config.tests/mac"
  2217 mactests="$relpath/config.tests/mac"
       
  2218 symbiantests="$relpath/config.tests/symbian"
  2175 WHICH="$unixtests/which.test"
  2219 WHICH="$unixtests/which.test"
  2176 
  2220 
  2177 PERL=`$WHICH perl 2>/dev/null`
  2221 PERL=`$WHICH perl 2>/dev/null`
  2178 
  2222 
  2179 # find out which awk we want to use, prefer gawk, then nawk, then regular awk
  2223 # find out which awk we want to use, prefer gawk, then nawk, then regular awk
  2288         echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/syncqt"
  2332         echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/syncqt"
  2289         echo "perl \"$relpath/bin/syncqt\" -outdir \"$outpath\" \"\$@\"" >>"$outpath/bin/syncqt"
  2333         echo "perl \"$relpath/bin/syncqt\" -outdir \"$outpath\" \"\$@\"" >>"$outpath/bin/syncqt"
  2290         chmod 755 "$outpath/bin/syncqt"
  2334         chmod 755 "$outpath/bin/syncqt"
  2291     fi
  2335     fi
  2292 
  2336 
       
  2337     for i in createpackage patch_capabilities; do
       
  2338         rm -f "$outpath/bin/$i"
       
  2339         if [ -x "$relpath/bin/$i" ]; then
       
  2340             mkdir -p "$outpath/bin"
       
  2341             echo "#!/bin/sh" >"$outpath/bin/$i"
       
  2342             echo "QTDIR=\"$relpath\"; export QTDIR" >>"$outpath/bin/$i"
       
  2343             echo "\"$relpath/bin/$i\" \"\$@\"" >>"$outpath/bin/$i"
       
  2344             chmod 755 "$outpath/bin/$i"
       
  2345         fi
       
  2346     done
       
  2347 
  2293     # symlink the mkspecs directory
  2348     # symlink the mkspecs directory
  2294     mkdir -p "$outpath/mkspecs"
  2349     mkdir -p "$outpath/mkspecs"
  2295     rm -f "$outpath"/mkspecs/*
  2350     rm -f "$outpath"/mkspecs/*
  2296     ln -s "$relpath"/mkspecs/* "$outpath/mkspecs"
  2351     ln -s "$relpath"/mkspecs/* "$outpath/mkspecs"
  2297     rm -f "$outpath/mkspecs/default"
  2352     rm -f "$outpath/mkspecs/default"
  2411             [ "$CFG_EMBEDDED" = "auto" ] && CFG_EMBEDDED=generic
  2466             [ "$CFG_EMBEDDED" = "auto" ] && CFG_EMBEDDED=generic
  2412             XPLATFORM="unsupported/qws/qnx-$CFG_EMBEDDED-g++"
  2467             XPLATFORM="unsupported/qws/qnx-$CFG_EMBEDDED-g++"
  2413         fi
  2468         fi
  2414         ;;
  2469         ;;
  2415     CYGWIN*:*)
  2470     CYGWIN*:*)
  2416 	CFG_EMBEDDED=x86
  2471 	if [ -z "$XPLATFORM" ]; then
       
  2472 		CFG_EMBEDDED=x86
       
  2473 	fi
  2417 	;;
  2474 	;;
  2418     *)
  2475     *)
  2419         echo "Qt for Embedded Linux is not supported on this platform. Disabling."
  2476         echo "Qt for Embedded Linux is not supported on this platform. Disabling."
  2420         CFG_EMBEDDED=no
  2477         CFG_EMBEDDED=no
  2421         PLATFORM_QWS=no
  2478         PLATFORM_QWS=no
  2973 else
  3030 else
  2974     CFG_FRAMEWORK=no
  3031     CFG_FRAMEWORK=no
  2975 fi
  3032 fi
  2976 
  3033 
  2977 QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1`
  3034 QMAKE_CONF_COMPILER=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_CXX[^_A-Z0-9]" | sed "s,.* *= *\(.*\)$,\1," | tail -1`
  2978 TEST_COMPILER="$CC"
  3035 TEST_COMPILER="$CXX"
  2979 [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER
  3036 [ -z "$TEST_COMPILER" ] && TEST_COMPILER=$QMAKE_CONF_COMPILER
  2980 if [ -z "$TEST_COMPILER" ]; then
  3037 if [ -z "$TEST_COMPILER" ]; then
  2981     echo "ERROR: Cannot set the compiler for the configuration tests"
  3038     echo "ERROR: Cannot set the compiler for the configuration tests"
  2982     exit 1
  3039     exit 1
  2983 fi
  3040 fi
  3022     CFG_SEPARATE_DEBUG_INFO="no"
  3079     CFG_SEPARATE_DEBUG_INFO="no"
  3023 fi
  3080 fi
  3024 
  3081 
  3025 # auto-detect support for separate debug info in objcopy
  3082 # auto-detect support for separate debug info in objcopy
  3026 if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then
  3083 if [ "$CFG_SEPARATE_DEBUG_INFO" != "no" ] && [ "$CFG_SHARED" = "yes" ]; then
  3027     TEST_COMPILER_CFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CFLAGS[^_].*=%%p' | tr '\n' ' '`
  3084     TEST_COMPILER_CFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CFLAGS[^_=]*[+*]*=%%p' | tr '\n' ' '`
  3028     TEST_COMPILER_CXXFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CXXFLAGS[^_].*=%%p' | tr '\n' ' '`
  3085     TEST_COMPILER_CXXFLAGS=`getQMakeConf "$XQMAKESPEC" | sed -n -e 's%QMAKE_CXXFLAGS[^_=]*[+*]*=%%p' | tr '\n' ' '`
  3029     TEST_OBJCOPY=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_OBJCOPY" | sed "s%.* *= *\(.*\)$%\1%" | tail -1`
  3086     TEST_OBJCOPY=`getQMakeConf "$XQMAKESPEC" | grep "^QMAKE_OBJCOPY" | sed "s%.* *= *\(.*\)$%\1%" | tail -1`
  3030     COMPILER_WITH_FLAGS="$TEST_COMPILER $TEST_COMPILER_CXXFLAGS"
  3087     COMPILER_WITH_FLAGS="$TEST_COMPILER $TEST_COMPILER_CXXFLAGS"
  3031     COMPILER_WITH_FLAGS=`echo "$COMPILER_WITH_FLAGS" | sed -e "s%\\$\\$QMAKE_CFLAGS%$TEST_COMPILER_CFLAGS%g"`
  3088     COMPILER_WITH_FLAGS=`echo "$COMPILER_WITH_FLAGS" | sed -e "s%\\$\\$QMAKE_CFLAGS%$TEST_COMPILER_CFLAGS%g"`
  3032     if "$unixtests/objcopy.test" "$COMPILER_WITH_FLAGS" "$TEST_OBJCOPY" "$OPT_VERBOSE"; then
  3089     if "$unixtests/objcopy.test" "$COMPILER_WITH_FLAGS" "$TEST_OBJCOPY" "$OPT_VERBOSE"; then
  3033        CFG_SEPARATE_DEBUG_INFO=no
  3090        CFG_SEPARATE_DEBUG_INFO=no
  3206     fi
  3263     fi
  3207     [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="$QT_INSTALL_PREFIX/plugins" #fallback
  3264     [ -z "$QT_INSTALL_PLUGINS" ] && QT_INSTALL_PLUGINS="$QT_INSTALL_PREFIX/plugins" #fallback
  3208 fi
  3265 fi
  3209 QT_INSTALL_PLUGINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PLUGINS"`
  3266 QT_INSTALL_PLUGINS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_PLUGINS"`
  3210 
  3267 
       
  3268 #imports
       
  3269 if [ -z "$QT_INSTALL_IMPORTS" ]; then #default
       
  3270     if [ "$CFG_PREFIX_INSTALL" = "no" ]; then
       
  3271 	if [ "$PLATFORM_MAC" = "yes" ]; then
       
  3272 	    QT_INSTALL_IMPORTS="/Developer/Applications/Qt/imports"
       
  3273         fi
       
  3274     fi
       
  3275     [ -z "$QT_INSTALL_IMPORTS" ] && QT_INSTALL_IMPORTS="$QT_INSTALL_PREFIX/imports" #fallback
       
  3276 fi
       
  3277 QT_INSTALL_IMPORTS=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_IMPORTS"`
       
  3278 
  3211 #data
  3279 #data
  3212 if [ -z "$QT_INSTALL_DATA" ]; then #default
  3280 if [ -z "$QT_INSTALL_DATA" ]; then #default
  3213     QT_INSTALL_DATA="$QT_INSTALL_PREFIX"
  3281     QT_INSTALL_DATA="$QT_INSTALL_PREFIX"
  3214 fi
  3282 fi
  3215 QT_INSTALL_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DATA"`
  3283 QT_INSTALL_DATA=`"$relpath/config.tests/unix/makeabs" "$QT_INSTALL_DATA"`
  3306         PHN=" "
  3374         PHN=" "
  3307     fi
  3375     fi
  3308 
  3376 
  3309     cat <<EOF
  3377     cat <<EOF
  3310 Usage:  $relconf [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir <dir>]
  3378 Usage:  $relconf [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir <dir>]
  3311         [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-datadir <dir>]
  3379         [-docdir <dir>] [-headerdir <dir>] [-plugindir <dir> ] [-importdir <dir>] [-datadir <dir>]
  3312         [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
  3380         [-translationdir <dir>] [-sysconfdir <dir>] [-examplesdir <dir>]
  3313         [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
  3381         [-demosdir <dir>] [-buildkey <key>] [-release] [-debug]
  3314         [-debug-and-release] [-developer-build] [-shared] [-static] [-no-fast] [-fast] [-no-largefile]
  3382         [-debug-and-release] [-developer-build] [-shared] [-static] [-no-fast] [-fast] [-no-largefile]
  3315         [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
  3383         [-largefile] [-no-exceptions] [-exceptions] [-no-accessibility]
  3316         [-accessibility] [-no-stl] [-stl] [-no-sql-<driver>] [-sql-<driver>]
  3384         [-accessibility] [-no-stl] [-stl] [-no-sql-<driver>] [-sql-<driver>]
  3319         [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff]
  3387         [-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libtiff] [-qt-libtiff] [-system-libtiff]
  3320         [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
  3388         [-no-libpng] [-qt-libpng] [-system-libpng] [-no-libmng] [-qt-libmng]
  3321         [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>]
  3389         [-system-libmng] [-no-libjpeg] [-qt-libjpeg] [-system-libjpeg] [-make <part>]
  3322         [-nomake <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath] [-continue]
  3390         [-nomake <part>] [-R <string>]  [-l <string>] [-no-rpath]  [-rpath] [-continue]
  3323         [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv]
  3391         [-verbose] [-v] [-silent] [-no-nis] [-nis] [-no-cups] [-cups] [-no-iconv]
  3324         [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked]
  3392         [-iconv] [-no-pch] [-pch] [-no-dbus] [-dbus] [-dbus-linked] [-no-gui]
  3325         [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
  3393         [-no-separate-debug-info] [-no-mmx] [-no-3dnow] [-no-sse] [-no-sse2]
  3326         [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa]
  3394         [-qtnamespace <namespace>] [-qtlibinfix <infix>] [-separate-debug-info] [-armfpa]
  3327         [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
  3395         [-no-optimized-qmake] [-optimized-qmake] [-no-xmlpatterns] [-xmlpatterns]
  3328         [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
  3396         [-no-multimedia] [-multimedia] [-no-phonon] [-phonon] [-no-phonon-backend] [-phonon-backend]
  3329         [-no-audio-backend] [-audio-backend] [-no-openssl] [-openssl] [-openssl-linked]
  3397         [-no-media-backend] [-media-backend] [-no-audio-backend] [-audio-backend] 
       
  3398         [-no-openssl] [-openssl] [-openssl-linked]
  3330         [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit] [-javascript-jit]
  3399         [-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-no-javascript-jit] [-javascript-jit]
  3331         [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative]
  3400         [-no-script] [-script] [-no-scripttools] [-scripttools] [-no-declarative] [-declarative]
  3332 
  3401 
  3333         [additional platform specific options (see below)]
  3402         [additional platform specific options (see below)]
  3334 
  3403 
  3368                             (default PREFIX/doc)
  3437                             (default PREFIX/doc)
  3369     -headerdir <dir> ...... Headers will be installed to <dir>
  3438     -headerdir <dir> ...... Headers will be installed to <dir>
  3370                             (default PREFIX/include)
  3439                             (default PREFIX/include)
  3371     -plugindir <dir> ...... Plugins will be installed to <dir>
  3440     -plugindir <dir> ...... Plugins will be installed to <dir>
  3372                             (default PREFIX/plugins)
  3441                             (default PREFIX/plugins)
       
  3442     -importdir <dir> ...... Imports for QML will be installed to <dir>
       
  3443                             (default PREFIX/imports)
  3373     -datadir <dir> ........ Data used by Qt programs will be installed to <dir>
  3444     -datadir <dir> ........ Data used by Qt programs will be installed to <dir>
  3374                             (default PREFIX)
  3445                             (default PREFIX)
  3375     -translationdir <dir> . Translations of Qt programs will be installed to <dir>
  3446     -translationdir <dir> . Translations of Qt programs will be installed to <dir>
  3376                             (default PREFIX/translations)
  3447                             (default PREFIX/translations)
  3377     -sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>
  3448     -sysconfdir <dir> ..... Settings used by Qt programs will be looked for in <dir>
  3583                          can be seen more easily.
  3654                          can be seen more easily.
  3584 
  3655 
  3585  *  -no-optimized-qmake ... Do not build qmake optimized.
  3656  *  -no-optimized-qmake ... Do not build qmake optimized.
  3586     -optimized-qmake ...... Build qmake optimized.
  3657     -optimized-qmake ...... Build qmake optimized.
  3587 
  3658 
       
  3659     -no-gui ............ Don't build the Qt GUI library
       
  3660 
  3588  $NSN  -no-nis ............ Do not compile NIS support.
  3661  $NSN  -no-nis ............ Do not compile NIS support.
  3589  $NSY  -nis ............... Compile NIS support.
  3662  $NSY  -nis ............... Compile NIS support.
  3590 
  3663 
  3591  $CUN  -no-cups ........... Do not compile CUPS support.
  3664  $CUN  -no-cups ........... Do not compile CUPS support.
  3592  $CUY  -cups .............. Compile CUPS support.
  3665  $CUY  -cups .............. Compile CUPS support.
  3647         SHN="*"
  3720         SHN="*"
  3648     else
  3721     else
  3649         SHY="*"
  3722         SHY="*"
  3650         SHN=" "
  3723         SHN=" "
  3651     fi
  3724     fi
       
  3725     if [ "$CFG_XVIDEO" = "no" ]; then
       
  3726         XVY=" "
       
  3727         XVN="*"
       
  3728     else
       
  3729         XVY="*"
       
  3730         XVN=" "
       
  3731     fi
  3652     if [ "$CFG_XINERAMA" = "no" ]; then
  3732     if [ "$CFG_XINERAMA" = "no" ]; then
  3653         XAY=" "
  3733         XAY=" "
  3654         XAN="*"
  3734         XAN="*"
  3655     else
  3735     else
  3656         XAY="*"
  3736         XAY="*"
  3727  +  -gtkstyle .......... Build the GTK theme integration.
  3807  +  -gtkstyle .......... Build the GTK theme integration.
  3728 
  3808 
  3729  *  -no-nas-sound ...... Do not compile in NAS sound support.
  3809  *  -no-nas-sound ...... Do not compile in NAS sound support.
  3730     -system-nas-sound .. Use NAS libaudio from the operating system.
  3810     -system-nas-sound .. Use NAS libaudio from the operating system.
  3731                          See http://radscan.com/nas.html
  3811                          See http://radscan.com/nas.html
       
  3812 
       
  3813     -egl ............... Use EGL instead of GLX to manage contexts.
       
  3814                          When building for desktop OpenGL, this option will
       
  3815                          make Qt use EGL to manage contexts rather than the
       
  3816                          GLX, which is the default. Note: For OpenGL ES, EGL
       
  3817                          is always used.
  3732 
  3818 
  3733     -no-opengl ......... Do not support OpenGL.
  3819     -no-opengl ......... Do not support OpenGL.
  3734  +  -opengl <api> ...... Enable OpenGL support.
  3820  +  -opengl <api> ...... Enable OpenGL support.
  3735                          With no parameter, this will auto-detect the "best"
  3821                          With no parameter, this will auto-detect the "best"
  3736                          OpenGL API to use. If desktop OpenGL is available, it
  3822                          OpenGL API to use. If desktop OpenGL is available, it
  3737                          will be used. Use desktop, es1, es1cl or es2 for <api>
  3823                          will be used. Use desktop, es1, or es2 for <api>
  3738                          to force the use of the Desktop (OpenGL 1.x or 2.x),
  3824                          to force the use of the Desktop (OpenGL 1.x or 2.x),
  3739                          OpenGL ES 1.x Common profile, 1.x Common Lite profile
  3825                          OpenGL ES 1.x Common profile, or 2.x APIs instead.
  3740                          or 2.x APIs instead. On X11, the EGL API will be used
       
  3741                          to manage GL contexts in the case of OpenGL ES
       
  3742 
  3826 
  3743      -no-openvg ........ Do not support OpenVG.
  3827      -no-openvg ........ Do not support OpenVG.
  3744  +   -openvg ........... Enable OpenVG support.
  3828  +   -openvg ........... Enable OpenVG support.
  3745                          Requires EGL support, typically supplied by an OpenGL
  3829                          Requires EGL support, typically supplied by an OpenGL
  3746                          or other graphics implementation.
  3830                          or other graphics implementation.
  3749  $SMY  -sm ................ Support X Session Management, links in -lSM -lICE.
  3833  $SMY  -sm ................ Support X Session Management, links in -lSM -lICE.
  3750 
  3834 
  3751  $SHN  -no-xshape ......... Do not compile XShape support.
  3835  $SHN  -no-xshape ......... Do not compile XShape support.
  3752  $SHY  -xshape ............ Compile XShape support.
  3836  $SHY  -xshape ............ Compile XShape support.
  3753                          Requires X11/extensions/shape.h.
  3837                          Requires X11/extensions/shape.h.
       
  3838 
       
  3839  $XVN  -no-xvideo ......... Do not compile XVideo support.
       
  3840  $XVY  -xvideo ............ Compile XVideo support.
       
  3841                          Requires X11/extensions/Xv.h & Xvlib.h.
  3754 
  3842 
  3755  $SHN  -no-xsync .......... Do not compile XSync support.
  3843  $SHN  -no-xsync .......... Do not compile XSync support.
  3756  $SHY  -xsync ............. Compile XSync support.
  3844  $SHY  -xsync ............. Compile XSync support.
  3757                          Requires X11/extensions/sync.h.
  3845                          Requires X11/extensions/sync.h.
  3758 
  3846 
  3811 Qt/Mac only:
  3899 Qt/Mac only:
  3812 
  3900 
  3813     -Fstring ........... Add an explicit framework path.
  3901     -Fstring ........... Add an explicit framework path.
  3814     -fw string ......... Add an explicit framework.
  3902     -fw string ......... Add an explicit framework.
  3815 
  3903 
  3816     -cocoa ............. Build the Cocoa version of Qt. Note that -no-framework
  3904     -cocoa ............. [Deprecated] Cocoa is now enabled by default.
  3817                          and -static is not supported with -cocoa. Specifying
  3905 
  3818                          this option creates Qt binaries that requires Mac OS X
  3906     -carbon .............Build the Carbon version of Qt. 64-bit archs
  3819                          10.5 or higher.
  3907                          are not supported by carbon and will be built
       
  3908                          with cocoa
  3820 
  3909 
  3821  *  -framework ......... Build Qt as a series of frameworks and
  3910  *  -framework ......... Build Qt as a series of frameworks and
  3822                          link tools against those frameworks.
  3911                          link tools against those frameworks.
  3823     -no-framework ...... Do not build Qt as a series of frameworks.
  3912     -no-framework ...... Do not build Qt as a series of frameworks.
  3824 
  3913 
  3827 
  3916 
  3828     -universal ......... Equivalent to -arch "ppc x86"
  3917     -universal ......... Equivalent to -arch "ppc x86"
  3829 
  3918 
  3830     -arch <arch> ....... Build Qt for <arch>
  3919     -arch <arch> ....... Build Qt for <arch>
  3831                          Example values for <arch>: x86 ppc x86_64 ppc64
  3920                          Example values for <arch>: x86 ppc x86_64 ppc64
  3832                          Multiple -arch arguments can be specified, 64-bit archs
  3921                          Multiple -arch arguments can be specified.
  3833                          will be built with the Cocoa framework.
       
  3834 
  3922 
  3835     -sdk <sdk> ......... Build Qt using Apple provided SDK <sdk>. This option requires gcc 4.
  3923     -sdk <sdk> ......... Build Qt using Apple provided SDK <sdk>. This option requires gcc 4.
  3836                          To use a different SDK with gcc 3.3, set the SDKROOT environment variable.
  3924                          To use a different SDK with gcc 3.3, set the SDKROOT environment variable.
  3837 
  3925 
  3838 EOF
  3926 EOF
  3890                                Possible values for <style>: [ $CFG_DECORATION_AVAILABLE ]
  3978                                Possible values for <style>: [ $CFG_DECORATION_AVAILABLE ]
  3891 
  3979 
  3892     -no-opengl .......... Do not support OpenGL.
  3980     -no-opengl .......... Do not support OpenGL.
  3893     -opengl <api> ....... Enable OpenGL ES support
  3981     -opengl <api> ....... Enable OpenGL ES support
  3894                           With no parameter, this will attempt to auto-detect OpenGL ES 1.x
  3982                           With no parameter, this will attempt to auto-detect OpenGL ES 1.x
  3895                           or 2.x. Use es1, es1cl or es2 for <api> to override auto-detection.
  3983                           or 2.x. Use es1 or es2 for <api> to override auto-detection.
  3896 
  3984 
  3897                           NOTE: A QGLScreen driver for the hardware is required to support
  3985                           NOTE: A QGLScreen driver for the hardware is required to support
  3898                                 OpenGL ES on Qt for Embedded Linux.
  3986                                 OpenGL ES on Qt for Embedded Linux.
  3899 
  3987 
  3900     -qt-gfx-<driver> ... Enable a graphics <driver> in the QtGui library.
  3988     -qt-gfx-<driver> ... Enable a graphics <driver> in the QtGui library.
  3944  $GBY  -glib .............. Compile Glib support.
  4032  $GBY  -glib .............. Compile Glib support.
  3945 
  4033 
  3946 EOF
  4034 EOF
  3947 fi
  4035 fi
  3948 
  4036 
  3949 # QTP:QTPROD-7 Cross compiling on Linux broken
  4037 case "$XPLATFORM" in *symbian*)
  3950 if [ "$XPLATFORM" = "symbian-sbsv2" ]; then
       
  3951     cat << EOF
  4038     cat << EOF
  3952 
  4039 
  3953 Qt for Symbian only:
  4040 Qt for Symbian only:
  3954     -no-style-s60....... Disable s60 entirely
  4041     -no-s60 ............ Do not compile in S60 support.
  3955     -qt-style-s60....... Enable s60 in the Qt Library
  4042  +  -s60 ............... Compile with support for the S60 UI Framework.
       
  4043     -no-style-s60....... Disable s60 style
       
  4044  +  -qt-style-s60....... Enable s60 style in the Qt Library
       
  4045 
       
  4046     -no-usedeffiles .... Disable the usage of DEF files.
       
  4047  *  -usedeffiles ....... Enable the usage of DEF files.
  3956 EOF
  4048 EOF
  3957 fi
  4049 ;;
       
  4050 esac
  3958 
  4051 
  3959    [ "x$ERROR" = "xyes" ] && exit 1
  4052    [ "x$ERROR" = "xyes" ] && exit 1
  3960    exit 0
  4053    exit 0
  3961 fi # Help
  4054 fi # Help
  3962 
  4055 
  3963 
  4056 
  3964 # -----------------------------------------------------------------------------
  4057 # -----------------------------------------------------------------------------
  3965 # LICENSING, INTERACTIVE PART
  4058 # LICENSING, INTERACTIVE PART
  3966 # -----------------------------------------------------------------------------
  4059 # -----------------------------------------------------------------------------
  3967 
  4060 
  3968 
       
  3969 if [ "$PLATFORM_QWS" = "yes" ]; then
  4061 if [ "$PLATFORM_QWS" = "yes" ]; then
  3970     Platform="Qt for Embedded Linux"
  4062     Platform="Qt for Embedded Linux"
  3971 elif [ "$PLATFORM_MAC" = "yes" ]; then
  4063 elif [ "$PLATFORM_MAC" = "yes" ]; then
  3972     Platform="Qt/Mac"
  4064     Platform="Qt for Mac OS X"
  3973 elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then
  4065 elif echo "$XPLATFORM" | grep "symbian" > /dev/null ; then
  3974     Platform="Qt/Symbian"
  4066     Platform="Qt for Symbian"
  3975 else
  4067 elif [ '!' -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_LIBS_X11 | awk '{print $3;}'`" ]; then
  3976     PLATFORM_X11=yes
  4068     PLATFORM_X11=yes
  3977     Platform="Qt for Linux/X11"
  4069     Platform="Qt for Linux/X11"
  3978 fi
  4070 fi
  3979 
  4071 
  3980 echo
  4072 echo
  4164 DOCUMENTATION_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_docspath=$QT_INSTALL_DOCS"`
  4256 DOCUMENTATION_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_docspath=$QT_INSTALL_DOCS"`
  4165 HEADERS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_hdrspath=$QT_INSTALL_HEADERS"`
  4257 HEADERS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_hdrspath=$QT_INSTALL_HEADERS"`
  4166 LIBRARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_libspath=$QT_INSTALL_LIBS"`
  4258 LIBRARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_libspath=$QT_INSTALL_LIBS"`
  4167 BINARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_binspath=$QT_INSTALL_BINS"`
  4259 BINARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_binspath=$QT_INSTALL_BINS"`
  4168 PLUGINS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_plugpath=$QT_INSTALL_PLUGINS"`
  4260 PLUGINS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_plugpath=$QT_INSTALL_PLUGINS"`
       
  4261 IMPORTS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_impspath=$QT_INSTALL_IMPORTS"`
  4169 DATA_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_datapath=$QT_INSTALL_DATA"`
  4262 DATA_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_datapath=$QT_INSTALL_DATA"`
  4170 TRANSLATIONS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_trnspath=$QT_INSTALL_TRANSLATIONS"`
  4263 TRANSLATIONS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_trnspath=$QT_INSTALL_TRANSLATIONS"`
  4171 SETTINGS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_stngpath=$QT_INSTALL_SETTINGS"`
  4264 SETTINGS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_stngpath=$QT_INSTALL_SETTINGS"`
  4172 EXAMPLES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_xmplpath=$QT_INSTALL_EXAMPLES"`
  4265 EXAMPLES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_xmplpath=$QT_INSTALL_EXAMPLES"`
  4173 DEMOS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_demopath=$QT_INSTALL_DEMOS"`
  4266 DEMOS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_demopath=$QT_INSTALL_DEMOS"`
  4188     HOSTDOCUMENTATION_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_docspath=$QT_HOST_PREFIX/doc"`
  4281     HOSTDOCUMENTATION_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_docspath=$QT_HOST_PREFIX/doc"`
  4189     HOSTHEADERS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_hdrspath=$QT_HOST_PREFIX/include"`
  4282     HOSTHEADERS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_hdrspath=$QT_HOST_PREFIX/include"`
  4190     HOSTLIBRARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_libspath=$QT_HOST_PREFIX/lib"`
  4283     HOSTLIBRARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_libspath=$QT_HOST_PREFIX/lib"`
  4191     HOSTBINARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_binspath=$QT_HOST_PREFIX/bin"`
  4284     HOSTBINARIES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_binspath=$QT_HOST_PREFIX/bin"`
  4192     HOSTPLUGINS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_plugpath=$QT_HOST_PREFIX/plugins"`
  4285     HOSTPLUGINS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_plugpath=$QT_HOST_PREFIX/plugins"`
       
  4286     HOSTIMPORTS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_impspath=$QT_HOST_PREFIX/IMPORTS"`
  4193     HOSTDATA_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_datapath=$QT_HOST_PREFIX"`
  4287     HOSTDATA_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_datapath=$QT_HOST_PREFIX"`
  4194     HOSTTRANSLATIONS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_trnspath=$QT_HOST_PREFIX/translations"`
  4288     HOSTTRANSLATIONS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_trnspath=$QT_HOST_PREFIX/translations"`
  4195     HOSTSETTINGS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_stngpath=$QT_INSTALL_SETTINGS"`
  4289     HOSTSETTINGS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_stngpath=$QT_INSTALL_SETTINGS"`
  4196     HOSTEXAMPLES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_xmplpath=$QT_INSTALL_EXAMPLES"`
  4290     HOSTEXAMPLES_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_xmplpath=$QT_INSTALL_EXAMPLES"`
  4197     HOSTDEMOS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_demopath=$QT_INSTALL_DEMOS"`
  4291     HOSTDEMOS_PATH_STR=`"$relpath/config.tests/unix/padstring" 268 "qt_demopath=$QT_INSTALL_DEMOS"`
  4204 static const char qt_configure_documentation_path_str[256 + 12] = "$HOSTDOCUMENTATION_PATH_STR";
  4298 static const char qt_configure_documentation_path_str[256 + 12] = "$HOSTDOCUMENTATION_PATH_STR";
  4205 static const char qt_configure_headers_path_str      [256 + 12] = "$HOSTHEADERS_PATH_STR";
  4299 static const char qt_configure_headers_path_str      [256 + 12] = "$HOSTHEADERS_PATH_STR";
  4206 static const char qt_configure_libraries_path_str    [256 + 12] = "$HOSTLIBRARIES_PATH_STR";
  4300 static const char qt_configure_libraries_path_str    [256 + 12] = "$HOSTLIBRARIES_PATH_STR";
  4207 static const char qt_configure_binaries_path_str     [256 + 12] = "$HOSTBINARIES_PATH_STR";
  4301 static const char qt_configure_binaries_path_str     [256 + 12] = "$HOSTBINARIES_PATH_STR";
  4208 static const char qt_configure_plugins_path_str      [256 + 12] = "$HOSTPLUGINS_PATH_STR";
  4302 static const char qt_configure_plugins_path_str      [256 + 12] = "$HOSTPLUGINS_PATH_STR";
       
  4303 static const char qt_configure_imports_path_str      [256 + 12] = "$HOSTIMPORTS_PATH_STR";
  4209 static const char qt_configure_data_path_str         [256 + 12] = "$HOSTDATA_PATH_STR";
  4304 static const char qt_configure_data_path_str         [256 + 12] = "$HOSTDATA_PATH_STR";
  4210 static const char qt_configure_translations_path_str [256 + 12] = "$HOSTTRANSLATIONS_PATH_STR";
  4305 static const char qt_configure_translations_path_str [256 + 12] = "$HOSTTRANSLATIONS_PATH_STR";
  4211 static const char qt_configure_settings_path_str     [256 + 12] = "$HOSTSETTINGS_PATH_STR";
  4306 static const char qt_configure_settings_path_str     [256 + 12] = "$HOSTSETTINGS_PATH_STR";
  4212 static const char qt_configure_examples_path_str     [256 + 12] = "$HOSTEXAMPLES_PATH_STR";
  4307 static const char qt_configure_examples_path_str     [256 + 12] = "$HOSTEXAMPLES_PATH_STR";
  4213 static const char qt_configure_demos_path_str        [256 + 12] = "$HOSTDEMOS_PATH_STR";
  4308 static const char qt_configure_demos_path_str        [256 + 12] = "$HOSTDEMOS_PATH_STR";
  4221 static const char qt_configure_documentation_path_str[256 + 12] = "$DOCUMENTATION_PATH_STR";
  4316 static const char qt_configure_documentation_path_str[256 + 12] = "$DOCUMENTATION_PATH_STR";
  4222 static const char qt_configure_headers_path_str      [256 + 12] = "$HEADERS_PATH_STR";
  4317 static const char qt_configure_headers_path_str      [256 + 12] = "$HEADERS_PATH_STR";
  4223 static const char qt_configure_libraries_path_str    [256 + 12] = "$LIBRARIES_PATH_STR";
  4318 static const char qt_configure_libraries_path_str    [256 + 12] = "$LIBRARIES_PATH_STR";
  4224 static const char qt_configure_binaries_path_str     [256 + 12] = "$BINARIES_PATH_STR";
  4319 static const char qt_configure_binaries_path_str     [256 + 12] = "$BINARIES_PATH_STR";
  4225 static const char qt_configure_plugins_path_str      [256 + 12] = "$PLUGINS_PATH_STR";
  4320 static const char qt_configure_plugins_path_str      [256 + 12] = "$PLUGINS_PATH_STR";
       
  4321 static const char qt_configure_imports_path_str      [256 + 12] = "$IMPORTS_PATH_STR";
  4226 static const char qt_configure_data_path_str         [256 + 12] = "$DATA_PATH_STR";
  4322 static const char qt_configure_data_path_str         [256 + 12] = "$DATA_PATH_STR";
  4227 static const char qt_configure_translations_path_str [256 + 12] = "$TRANSLATIONS_PATH_STR";
  4323 static const char qt_configure_translations_path_str [256 + 12] = "$TRANSLATIONS_PATH_STR";
  4228 static const char qt_configure_settings_path_str     [256 + 12] = "$SETTINGS_PATH_STR";
  4324 static const char qt_configure_settings_path_str     [256 + 12] = "$SETTINGS_PATH_STR";
  4229 static const char qt_configure_examples_path_str     [256 + 12] = "$EXAMPLES_PATH_STR";
  4325 static const char qt_configure_examples_path_str     [256 + 12] = "$EXAMPLES_PATH_STR";
  4230 static const char qt_configure_demos_path_str        [256 + 12] = "$DEMOS_PATH_STR";
  4326 static const char qt_configure_demos_path_str        [256 + 12] = "$DEMOS_PATH_STR";
  4245 #define QT_CONFIGURE_DOCUMENTATION_PATH qt_configure_documentation_path_str + 12;
  4341 #define QT_CONFIGURE_DOCUMENTATION_PATH qt_configure_documentation_path_str + 12;
  4246 #define QT_CONFIGURE_HEADERS_PATH qt_configure_headers_path_str + 12;
  4342 #define QT_CONFIGURE_HEADERS_PATH qt_configure_headers_path_str + 12;
  4247 #define QT_CONFIGURE_LIBRARIES_PATH qt_configure_libraries_path_str + 12;
  4343 #define QT_CONFIGURE_LIBRARIES_PATH qt_configure_libraries_path_str + 12;
  4248 #define QT_CONFIGURE_BINARIES_PATH qt_configure_binaries_path_str + 12;
  4344 #define QT_CONFIGURE_BINARIES_PATH qt_configure_binaries_path_str + 12;
  4249 #define QT_CONFIGURE_PLUGINS_PATH qt_configure_plugins_path_str + 12;
  4345 #define QT_CONFIGURE_PLUGINS_PATH qt_configure_plugins_path_str + 12;
       
  4346 #define QT_CONFIGURE_IMPORTS_PATH qt_configure_imports_path_str + 12;
  4250 #define QT_CONFIGURE_DATA_PATH qt_configure_data_path_str + 12;
  4347 #define QT_CONFIGURE_DATA_PATH qt_configure_data_path_str + 12;
  4251 #define QT_CONFIGURE_TRANSLATIONS_PATH qt_configure_translations_path_str + 12;
  4348 #define QT_CONFIGURE_TRANSLATIONS_PATH qt_configure_translations_path_str + 12;
  4252 #define QT_CONFIGURE_SETTINGS_PATH qt_configure_settings_path_str + 12;
  4349 #define QT_CONFIGURE_SETTINGS_PATH qt_configure_settings_path_str + 12;
  4253 #define QT_CONFIGURE_EXAMPLES_PATH qt_configure_examples_path_str + 12;
  4350 #define QT_CONFIGURE_EXAMPLES_PATH qt_configure_examples_path_str + 12;
  4254 #define QT_CONFIGURE_DEMOS_PATH qt_configure_demos_path_str + 12;
  4351 #define QT_CONFIGURE_DEMOS_PATH qt_configure_demos_path_str + 12;
  4288 if [ -n "$PERL" ] && [ -x "$relpath/bin/syncqt" ]; then
  4385 if [ -n "$PERL" ] && [ -x "$relpath/bin/syncqt" ]; then
  4289     SYNCQT_OPTS=
  4386     SYNCQT_OPTS=
  4290     [ "$CFG_DEV" = "yes" ] && SYNCQT_OPTS="$SYNCQT_OPTS -check-includes"
  4387     [ "$CFG_DEV" = "yes" ] && SYNCQT_OPTS="$SYNCQT_OPTS -check-includes"
  4291     if [ "$OPT_SHADOW" = "yes" ]; then
  4388     if [ "$OPT_SHADOW" = "yes" ]; then
  4292         "$outpath/bin/syncqt" $SYNCQT_OPTS
  4389         "$outpath/bin/syncqt" $SYNCQT_OPTS
  4293     elif [ "$CFG_DEV" = "yes" ] || [ ! -d $relpath/include ]; then
  4390     elif [ "$CFG_DEV" = "yes" ] || [ ! -d $relpath/include ] || [ -d $relpath/.git ]; then
  4294         QTDIR="$relpath" perl "$outpath/bin/syncqt" $SYNCQT_OPTS
  4391         QTDIR="$relpath" perl "$outpath/bin/syncqt" $SYNCQT_OPTS
  4295     fi
  4392     fi
  4296 fi
  4393 fi
  4297 
  4394 
  4298 # $1: variable name
  4395 # $1: variable name
  4299 # $2: optional transformation
  4396 # $2: optional transformation
  4300 # relies on $QMAKESPEC, $COMPILER_CONF and $mkfile being set correctly, as the latter
  4397 # relies on $QMAKESPEC, $COMPILER_CONF and $mkfile being set correctly, as the latter
  4301 # is where the resulting variable is written to
  4398 # is where the resulting variable is written to
  4302 setBootstrapVariable()
  4399 setBootstrapVariable()
  4303 {
  4400 {
  4304     variableRegExp="^$1[^_A-Z0-9]"
  4401     getQMakeConf | $AWK '/^('"$1"')[^_A-Z0-9]/ { print $0; }' | ( [ -n "$2" ] && sed "$2" ; [ -z "$2" ] && cat ) | $AWK '
  4305     getQMakeConf | grep "$variableRegExp" | ( [ -n "$2" ] && sed "$2" ; [ -z "$2" ] && cat ) | $AWK '
       
  4306 {
  4402 {
  4307     varLength = index($0, "=") - 1
  4403     varLength = index($0, "=") - 1
  4308     valStart = varLength + 2
  4404     valStart = varLength + 2
  4309     if (substr($0, varLength, 1) == "+") {
  4405     if (substr($0, varLength, 1) == "+") {
  4310         varLength = varLength - 1
  4406         varLength = varLength - 1
  4415             setBootstrapVariable QMAKE_CXXFLAGS_DEBUG 's,\$\$QMAKE_CFLAGS_DEBUG,\$(QMAKE_CFLAGS_DEBUG),'
  4511             setBootstrapVariable QMAKE_CXXFLAGS_DEBUG 's,\$\$QMAKE_CFLAGS_DEBUG,\$(QMAKE_CFLAGS_DEBUG),'
  4416             EXTRA_CFLAGS="$EXTRA_CFLAGS \$(QMAKE_CFLAGS_DEBUG)"
  4512             EXTRA_CFLAGS="$EXTRA_CFLAGS \$(QMAKE_CFLAGS_DEBUG)"
  4417             EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS \$(QMAKE_CXXFLAGS_DEBUG)"
  4513             EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS \$(QMAKE_CXXFLAGS_DEBUG)"
  4418         fi
  4514         fi
  4419 
  4515 
  4420 	if [ '!' -z "$RPATH_FLAGS" ] && [ '!' -z "`getQMakeConf \"$QMAKESPEC\" | grep QMAKE_RPATH | awk '{print $3;}'`" ]; then
  4516         if [ '!' -z "$RPATH_FLAGS" ] && [ '!' -z "`getQMakeConf \"$QMAKESPEC\" | $AWK '/QMAKE_(LFLAGS_)?RPATH/ {print $3;}'`" ]; then
  4421   	    setBootstrapVariable QMAKE_RPATH 's,\$\$LITERAL_WHITESPACE, ,'
  4517             setBootstrapVariable "QMAKE_(LFLAGS_)?RPATH" 's,\$\$LITERAL_WHITESPACE, ,;s,QMAKE_RPATH,QMAKE_LFLAGS_RPATH,'
  4422 	    for rpath in $RPATH_FLAGS; do
  4518             for rpath in $RPATH_FLAGS; do
  4423 		EXTRA_LFLAGS="\$(QMAKE_RPATH)\"$rpath\" $EXTRA_LFLAGS"
  4519                 EXTRA_LFLAGS="\$(QMAKE_LFLAGS_RPATH)\"$rpath\" $EXTRA_LFLAGS"
  4424             done
  4520             done
  4425         fi
  4521         fi
  4426         if [ "$PLATFORM_MAC" = "yes" ]; then
  4522         if [ "$PLATFORM_MAC" = "yes" ]; then
  4427             echo "export MACOSX_DEPLOYMENT_TARGET = 10.4" >> "$mkfile"
  4523             echo "export MACOSX_DEPLOYMENT_TARGET = 10.4" >> "$mkfile"
  4428             echo "CARBON_LFLAGS =-framework ApplicationServices" >>"$mkfile"
  4524             echo "CARBON_LFLAGS =-framework ApplicationServices" >>"$mkfile"
  4577     else
  4673     else
  4578        CFG_ZLIB=yes
  4674        CFG_ZLIB=yes
  4579     fi
  4675     fi
  4580 fi
  4676 fi
  4581 
  4677 
       
  4678 case "$XPLATFORM" in *symbian*)
       
  4679     QMakeVar set styles "windows s60"   #overwrite previous default
       
  4680     CFG_LIBFREETYPE=no
       
  4681 
       
  4682     if test -z "$EPOCROOT"; then
       
  4683         echo "Please export EPOCROOT. It should point to the sdk install dir"
       
  4684         exit 1
       
  4685     fi
       
  4686     if test ! -d "$EPOCROOT/epoc32"; then
       
  4687         echo "Could not find the 'epoc32' dir in your EPOCROOT."
       
  4688         exit 1
       
  4689     fi
       
  4690 
       
  4691     # the main commands needed to compile;
       
  4692     (cd config.tests/symbian
       
  4693         mkdir -p rcomp
       
  4694         cd rcomp
       
  4695         rm -f rcomp_test.rsg
       
  4696         touch rcomp_test.rpp rcomp_test.rsc rcomp_test.rss
       
  4697         rcomp -u -m045,046,047 -s./rcomp_test.rpp -o./rcomp_test.rsc -h./rcomp_test.rsg -i./rcomp_test.rss 2>&1 > /dev/null
       
  4698         if test ! -f rcomp_test.rsg; then
       
  4699             echo "Finding a working rcomp in your PATH failed."
       
  4700             echo "Fatal error. Make sure you have the epoc tools working and in your PATH";
       
  4701             exit 1;
       
  4702         fi
       
  4703     )
       
  4704 
       
  4705     # compile a simple main that uses printf
       
  4706     if ! "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/simple "simple" $L_FLAGS $I_FLAGS $l_FLAGS
       
  4707     then
       
  4708         echo "Testing your compiler failed. Could not compile a simple application."
       
  4709         echo "Fatal error; Rerun configure with -verbose to get more details."
       
  4710         exit 1;
       
  4711     fi
       
  4712     ;;
       
  4713 esac
       
  4714 
       
  4715 if [ "$CFG_S60" = "auto" ]; then
       
  4716     if echo "$XPLATFORM" | grep symbian > /dev/null; then
       
  4717         CFG_S60=yes
       
  4718     else
       
  4719         CFG_S60=no
       
  4720     fi
       
  4721 fi
       
  4722 
       
  4723 if [ "$CFG_QS60STYLE" = "auto" ]; then
       
  4724     if echo "$XPLATFORM" | grep symbian > /dev/null; then
       
  4725         CFG_QS60STYLE=qt
       
  4726     else
       
  4727         CFG_QS60STYLE=no
       
  4728     fi
       
  4729 fi
       
  4730 
       
  4731 if [ "$CFG_SYMBIAN_DEFFILES" = "auto" ]; then
       
  4732     if echo "$XPLATFORM" | grep symbian > /dev/null && [ "$CFG_DEV" = "no" ]; then
       
  4733         CFG_SYMBIAN_DEFFILES=yes
       
  4734     else
       
  4735         CFG_SYMBIAN_DEFFILES=no
       
  4736     fi
       
  4737 fi
       
  4738 
  4582 # detect how jpeg should be built
  4739 # detect how jpeg should be built
  4583 if [ "$CFG_JPEG" = "auto" ]; then
  4740 if [ "$CFG_JPEG" = "auto" ]; then
  4584     if [ "$CFG_SHARED" = "yes" ]; then
  4741     if [ "$CFG_SHARED" = "yes" ]; then
  4585         CFG_JPEG=plugin
  4742         CFG_JPEG=plugin
  4586     else
  4743     else
  4649     fi
  4806     fi
  4650 fi
  4807 fi
  4651 
  4808 
  4652 # detect accessibility
  4809 # detect accessibility
  4653 if [ "$CFG_ACCESSIBILITY" = "auto" ]; then
  4810 if [ "$CFG_ACCESSIBILITY" = "auto" ]; then
  4654     CFG_ACCESSIBILITY=yes
  4811     case "$XPLATFORM" in
       
  4812     symbian*)
       
  4813         # accessibility is currently unsupported
       
  4814         CFG_ACCESSIBILITY=no
       
  4815     ;;
       
  4816     *)
       
  4817         CFG_ACCESSIBILITY=yes
       
  4818     esac
  4655 fi
  4819 fi
  4656 
  4820 
  4657 # auto-detect SQL-modules support
  4821 # auto-detect SQL-modules support
  4658 for _SQLDR in $CFG_SQL_AVAILABLE; do
  4822 for _SQLDR in $CFG_SQL_AVAILABLE; do
  4659         case $_SQLDR in
  4823         case $_SQLDR in
  4855                     fi
  5019                     fi
  4856                 fi
  5020                 fi
  4857             fi
  5021             fi
  4858             ;;
  5022             ;;
  4859         sqlite)
  5023         sqlite)
       
  5024             if [ "$CFG_SQL_sqlite" = "auto" ]; then # the default
       
  5025                 case "$XPLATFORM" in
       
  5026                     symbian*)
       
  5027                     # sqlite on symbian is typically not build in Qt but deployed as a pre-existing sis file.
       
  5028                     CFG_SQL_sqlite=no
       
  5029                     ;;
       
  5030                 esac
       
  5031             fi
  4860             if [ "$CFG_SQL_sqlite" != "no" ]; then
  5032             if [ "$CFG_SQL_sqlite" != "no" ]; then
  4861                 SQLITE_AUTODETECT_FAILED="no"
  5033                 SQLITE_AUTODETECT_FAILED="no"
  4862                 if [ "$CFG_SQLITE" = "system" ]; then
  5034                 if [ "$CFG_SQLITE" = "system" ]; then
  4863                     if [ -n "$PKG_CONFIG" ]; then
  5035                     if [ -n "$PKG_CONFIG" ]; then
  4864                         QT_CFLAGS_SQLITE=`$PKG_CONFIG --cflags sqlite3 2>/dev/null`
  5036                         QT_CFLAGS_SQLITE=`$PKG_CONFIG --cflags sqlite3 2>/dev/null`
  4977             exit 101
  5149             exit 101
  4978         fi
  5150         fi
  4979     fi
  5151     fi
  4980 fi
  5152 fi
  4981 
  5153 
       
  5154 if [ "$CFG_MULTIMEDIA" = "auto" ]; then
       
  5155     CFG_MULTIMEDIA="$CFG_GUI"
       
  5156 fi
       
  5157 
       
  5158 if [ "$CFG_MULTIMEDIA" = "yes" ] && [ "$CFG_GUI" = "no" ]; then
       
  5159     echo "QtMultimedia requested, but it can't be built without QtGui"
       
  5160     exit 1
       
  5161 fi
       
  5162 
  4982 # Generate a CRC of the namespace for using in constants for the Carbon port.
  5163 # Generate a CRC of the namespace for using in constants for the Carbon port.
  4983 # This should mean that you really *can* load two Qt's and have our custom
  5164 # This should mean that you really *can* load two Qt's and have our custom
  4984 # Carbon events work.
  5165 # Carbon events work.
  4985 if [ "$PLATFORM_MAC" = "yes" -a ! -z "$QT_NAMESPACE" ]; then
  5166 if [ "$PLATFORM_MAC" = "yes" -a ! -z "$QT_NAMESPACE" ]; then
  4986     QT_NAMESPACE_MAC_CRC=`"$mactests/crc.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/mac/crc $QT_NAMESPACE $L_FLAGS $I_FLAGS $l_FLAGS`
  5167     QT_NAMESPACE_MAC_CRC=`"$mactests/crc.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/mac/crc $QT_NAMESPACE $L_FLAGS $I_FLAGS $l_FLAGS`
  4987 fi
  5168 fi
  4988 
  5169 
  4989 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then
  5170 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then
  4990 
       
  4991     # detect EGL support
       
  4992     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl" "EGL (EGL/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
       
  4993         # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h>
       
  4994         CFG_EGL=yes
       
  4995         CFG_EGL_GLES_INCLUDES=no
       
  4996     elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl4gles1" "EGL (GLES/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
       
  4997         # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h>
       
  4998         CFG_EGL=yes
       
  4999         CFG_EGL_GLES_INCLUDES=yes
       
  5000     fi
       
  5001     if ( [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es1cl" ] || [ "$CFG_OPENGL" = "es2" ] ) && [ "$CFG_EGL" != "yes" ]; then
       
  5002         echo "The EGL functionality test failed!"
       
  5003         echo " EGL is required for OpenGL ES to manage contexts & surfaces."
       
  5004         echo " You might need to modify the include and library search paths by editing"
       
  5005         echo " QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in"
       
  5006         echo " ${XQMAKESPEC}."
       
  5007         exit 1
       
  5008     fi
       
  5009 
       
  5010 
  5171 
  5011     # auto-detect Glib support
  5172     # auto-detect Glib support
  5012     if [ "$CFG_GLIB" != "no" ]; then
  5173     if [ "$CFG_GLIB" != "no" ]; then
  5013         if [ -n "$PKG_CONFIG" ]; then
  5174         if [ -n "$PKG_CONFIG" ]; then
  5014             QT_CFLAGS_GLIB=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0 2>/dev/null`
  5175             QT_CFLAGS_GLIB=`$PKG_CONFIG --cflags glib-2.0 gthread-2.0 2>/dev/null`
  5029                 CFG_GLIB=no
  5190                 CFG_GLIB=no
  5030             fi
  5191             fi
  5031         fi
  5192         fi
  5032     fi
  5193     fi
  5033 
  5194 
       
  5195     if [ "$CFG_GUI" = "no" ]; then
       
  5196         if [ "$CFG_PHONON" = "auto" ]; then
       
  5197             CFG_PHONON=no
       
  5198         fi
       
  5199         if [ "$CFG_PHONON" != "no" ]; then
       
  5200             echo "Phonon enabled, but GUI disabled."
       
  5201             echo " You might need to either enable the GUI or disable Phonon"
       
  5202             exit 1
       
  5203         fi
       
  5204     fi
       
  5205 
       
  5206     # Auto-detect GStreamer support (needed for both Phonon & QtMultimedia)
       
  5207     if [ "$CFG_PHONON" != "no" ]; then
       
  5208         if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then
       
  5209             if [ -n "$PKG_CONFIG" ]; then
       
  5210                 QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
       
  5211                 QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
       
  5212             fi
       
  5213             if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then
       
  5214                 CFG_GSTREAMER=yes
       
  5215                 QMakeVar set QT_CFLAGS_GSTREAMER "$QT_CFLAGS_GSTREAMER"
       
  5216                 QMakeVar set QT_LIBS_GSTREAMER "$QT_LIBS_GSTREAMER"
       
  5217             else
       
  5218                 if [ "$CFG_GSTREAMER" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
       
  5219                     echo "Gstreamer support cannot be enabled due to functionality tests!"
       
  5220                     echo " Turn on verbose messaging (-v) to $0 to see the final report."
       
  5221                     echo " If you believe this message is in error you may use the continue"
       
  5222                     echo " switch (-continue) to $0 to continue."
       
  5223                     exit 101
       
  5224                 else
       
  5225                     CFG_GSTREAMER=no
       
  5226                 fi
       
  5227             fi
       
  5228         elif [ "$CFG_GLIB" = "no" ]; then
       
  5229             CFG_GSTREAMER=no
       
  5230         fi
       
  5231     else
       
  5232         CFG_GSTREAMER=no
       
  5233     fi
       
  5234 
  5034     if [ "$CFG_PHONON" != "no" ]; then
  5235     if [ "$CFG_PHONON" != "no" ]; then
  5035         if [ "$CFG_PHONON_BACKEND" != "no" ]; then
  5236         if [ "$CFG_PHONON_BACKEND" != "no" ]; then
  5036             if [ "$CFG_GLIB" = "yes" -a "$CFG_GSTREAMER" != "no" ]; then
       
  5037                 if [ -n "$PKG_CONFIG" ]; then
       
  5038                     QT_CFLAGS_GSTREAMER=`$PKG_CONFIG --cflags gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
       
  5039                     QT_LIBS_GSTREAMER=`$PKG_CONFIG --libs gstreamer-0.10 gstreamer-plugins-base-0.10 2>/dev/null`
       
  5040                 fi
       
  5041                 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/gstreamer "GStreamer" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_GSTREAMER $QT_LIBS_GSTREAMER $X11TESTS_FLAGS; then
       
  5042                     CFG_GSTREAMER=yes
       
  5043                     QMakeVar set QT_CFLAGS_GSTREAMER "$QT_CFLAGS_GSTREAMER"
       
  5044                     QMakeVar set QT_LIBS_GSTREAMER "$QT_LIBS_GSTREAMER"
       
  5045                 else
       
  5046                     if [ "$CFG_GSTREAMER" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
       
  5047                         echo "Gstreamer support cannot be enabled due to functionality tests!"
       
  5048                         echo " Turn on verbose messaging (-v) to $0 to see the final report."
       
  5049                         echo " If you believe this message is in error you may use the continue"
       
  5050                         echo " switch (-continue) to $0 to continue."
       
  5051                         exit 101
       
  5052                     else
       
  5053                         CFG_GSTREAMER=no
       
  5054                     fi
       
  5055                 fi
       
  5056             elif [ "$CFG_GLIB" = "no" ]; then
       
  5057                 CFG_GSTREAMER=no
       
  5058             fi
       
  5059 
       
  5060             if [ "$CFG_GSTREAMER" = "yes" ]; then
  5237             if [ "$CFG_GSTREAMER" = "yes" ]; then
  5061                 CFG_PHONON=yes
  5238                 CFG_PHONON=yes
  5062             else
  5239             else
  5063                 if [ "$CFG_PHONON" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  5240                 if [ "$CFG_PHONON" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
  5064                     echo "Phonon support cannot be enabled due to functionality tests!"
  5241                     echo "Phonon support cannot be enabled due to functionality tests!"
  5072             fi
  5249             fi
  5073         else
  5250         else
  5074             CFG_PHONON=yes
  5251             CFG_PHONON=yes
  5075         fi
  5252         fi
  5076     fi
  5253     fi
       
  5254 
       
  5255     # auto-detect icd support
       
  5256     if [ "$CFG_GLIB" = "yes" -a "$CFG_ICD" != "no" ]; then
       
  5257         # ICD support has a cyclic dependency on Qt.
       
  5258         if [ -n "$PKG_CONFIG" ]; then
       
  5259             QT_CFLAGS_ICD=`$PKG_CONFIG --cflags osso-ic conninet 2>/dev/null`
       
  5260             QT_LIBS_ICD=`$PKG_CONFIG --libs osso-ic conninet 2>/dev/null`
       
  5261             QT_CFLAGS_QTNETWORK=`$PKG_CONFIG --cflags QtNetwork 2>/dev/null`
       
  5262             QT_LIBS_QTNETWORK=`$PKG_CONFIG --libs QtNetwork 2>/dev/null`
       
  5263         else
       
  5264             QT_CFLAGS_QTNETWORK=
       
  5265             QT_LIBS_QTNETWORK=
       
  5266         fi
       
  5267         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/icd "ICD" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_ICD $QT_LIBS_ICD $QT_CFLAGS_QTNETWORK $QT_LIBS_QTNETWORK; then
       
  5268             [ "$CFG_ICD" = "auto" ] && CFG_ICD=yes
       
  5269             # remove system Qt includes and libraries
       
  5270             QT_CFLAGS_ICD_TRIMMED=
       
  5271             for i in $QT_CFLAGS_ICD; do
       
  5272                 case $i in
       
  5273                     *qt*)
       
  5274                         ;;
       
  5275                     *)
       
  5276                         QT_CFLAGS_ICD_TRIMMED="$QT_CFLAGS_ICD_TRIMMED $i"
       
  5277                         ;;
       
  5278                 esac
       
  5279             done
       
  5280             QT_LIBS_ICD_TRIMMED=
       
  5281             for i in $QT_LIBS_ICD; do
       
  5282                 case $i in
       
  5283                     *qt*|-lQt*)
       
  5284                         ;;
       
  5285                     *)
       
  5286                         QT_LIBS_ICD_TRIMMED="$QT_LIBS_ICD_TRIMMED $i"
       
  5287                         ;;
       
  5288                 esac
       
  5289             done
       
  5290 
       
  5291             QMakeVar set QT_CFLAGS_ICD "$QT_CFLAGS_ICD_TRIMMED"
       
  5292             QMakeVar set QT_LIBS_ICD "$QT_LIBS_ICD_TRIMMED"
       
  5293         else
       
  5294             if [ "$CFG_ICD" = "auto" ]; then
       
  5295                 CFG_ICD=no
       
  5296             elif [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
       
  5297                 # CFG_ICD is "yes"
       
  5298 
       
  5299                 echo "The ICD Bearer Management plugin cannot be enabled because osso-ic or conninet was not found."
       
  5300                 echo " Turn on verbose messaging (-v) to $0 to see the final report."
       
  5301                 echo " If you believe this message is in error you may use the continue"
       
  5302                 echo " switch (-continue) to $0 to continue."
       
  5303                 exit 101
       
  5304             fi
       
  5305         fi
       
  5306     elif [ "$CFG_GLIB" = "no" ]; then
       
  5307         CFG_ICD=no
       
  5308     fi
       
  5309 
       
  5310     # Auto-detect PulseAudio support
       
  5311     if [ "$CFG_PULSEAUDIO" != "no" ]; then
       
  5312         if [ -n "$PKG_CONFIG" ]; then
       
  5313             QT_CFLAGS_PULSEAUDIO=`$PKG_CONFIG --cflags libpulse '>=' 0.9.10 libpulse-mainloop-glib 2>/dev/null`
       
  5314             QT_LIBS_PULSEAUDIO=`$PKG_CONFIG --libs libpulse '>=' 0.9.10 libpulse-mainloop-glib 2>/dev/null`
       
  5315         fi
       
  5316         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/pulseaudio "PulseAudio" $L_FLAGS $I_FLAGS $l_FLAGS $QT_CFLAGS_PULSEAUDIO $QT_LIBS_PULSEAUDIO $X11TESTS_FLAGS; then
       
  5317             CFG_PULSEAUDIO=yes
       
  5318             QMakeVar set QT_CFLAGS_PULSEAUDIO "$QT_CFLAGS_PULSEAUDIO"
       
  5319             QMakeVar set QT_LIBS_PULSEAUDIO "$QT_LIBS_PULSEAUDIO"
       
  5320         else
       
  5321             if [ "$CFG_PULSEAUDIO" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
       
  5322                 echo "PulseAudio support cannot be enabled due to functionality tests!"
       
  5323                 echo " Turn on verbose messaging (-v) to $0 to see the final report."
       
  5324                 echo " If you believe this message is in error you may use the continue"
       
  5325                 echo " switch (-continue) to $0 to continue."
       
  5326                 exit 101
       
  5327             else
       
  5328 		CFG_PULSEAUDIO=no
       
  5329             fi
       
  5330         fi
       
  5331     fi
  5077 fi # X11/QWS
  5332 fi # X11/QWS
  5078 
  5333 
  5079 # x11
  5334 # x11
  5080 if [ "$PLATFORM_X11" = "yes" ]; then
  5335 if [ "$PLATFORM_X11" = "yes" ]; then
  5081     x11tests="$relpath/config.tests/x11"
  5336     x11tests="$relpath/config.tests/x11"
  5096         echo " You might need to modify the include and library search paths by editing"
  5351         echo " You might need to modify the include and library search paths by editing"
  5097         echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
  5352         echo " QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in ${XQMAKESPEC}."
  5098         exit 1
  5353         exit 1
  5099     fi
  5354     fi
  5100 
  5355 
  5101     # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
  5356     # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es2 = OpenGL ES 2.x)
       
  5357     if [ "$CFG_GUI" = "no" ]; then
       
  5358         if [ "$CFG_OPENGL" = "auto" ]; then
       
  5359             CFG_OPENGL=no
       
  5360         fi
       
  5361         if [ "$CFG_OPENGL" != "no" ]; then
       
  5362             echo "OpenGL enabled, but GUI disabled."
       
  5363             echo " You might need to either enable the GUI or disable OpenGL"
       
  5364             exit 1
       
  5365         fi
       
  5366     fi
  5102     if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
  5367     if [ "$CFG_OPENGL" = "auto" ] || [ "$CFG_OPENGL" = "yes" ]; then
  5103         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
  5368         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
  5104             CFG_OPENGL=desktop
  5369             CFG_OPENGL=desktop
  5105         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5370         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5106             CFG_OPENGL=es2
  5371             CFG_OPENGL=es2
  5107 	elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5372             if [ "$CFG_EGL" = "no" ]; then
       
  5373                 CFG_EGL=auto
       
  5374             fi
       
  5375         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5108             CFG_OPENGL=es1
  5376             CFG_OPENGL=es1
  5109 	elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5377             if [ "$CFG_EGL" = "no" ]; then
  5110             CFG_OPENGL=es1cl
  5378                 CFG_EGL=auto
       
  5379             fi
  5111         else
  5380         else
  5112             if [ "$CFG_OPENGL" = "yes" ]; then
  5381             if [ "$CFG_OPENGL" = "yes" ]; then
  5113                 echo "All the OpenGL functionality tests failed!"
  5382                 echo "All the OpenGL functionality tests failed!"
  5114                 echo " You might need to modify the include and library search paths by editing"
  5383                 echo " You might need to modify the include and library search paths by editing"
  5115                 echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5384                 echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5116                 echo " ${XQMAKESPEC}."
  5385                 echo " ${XQMAKESPEC}."
  5117                 exit 1
  5386                 exit 1
  5118             fi
  5387             fi
  5119             CFG_OPENGL=no
  5388             CFG_OPENGL=no
  5120         fi
  5389         fi
  5121        case "$PLATFORM" in
  5390         case "$PLATFORM" in
  5122        hpux*)
  5391         hpux*)
  5123            # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct.
  5392             # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct.
  5124            if [ "$CFG_OPENGL" = "desktop" ]; then
  5393             if [ "$CFG_OPENGL" = "desktop" ]; then
  5125                "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
  5394                 "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
  5126                if [ $? != "0" ]; then
  5395                 if [ $? != "0" ]; then
  5127                    QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
  5396                     QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
  5128                fi
  5397                 fi
  5129            fi
  5398             fi
  5130 	   ;;
  5399             ;;
  5131        *)
  5400         *)
  5132            ;;
  5401             ;;
  5133        esac
  5402         esac
  5134     elif [ "$CFG_OPENGL" = "es1cl" ]; then
       
  5135         # OpenGL ES 1.x common lite
       
  5136 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS
       
  5137         if [ $? != "0" ]; then
       
  5138 	    echo "The OpenGL ES 1.x Common Lite Profile functionality test failed!"
       
  5139             echo " You might need to modify the include and library search paths by editing"
       
  5140             echo " QMAKE_INCDIR_OPENGL_ES1CL, QMAKE_LIBDIR_OPENGL_ES1CL and QMAKE_LIBS_OPENGL_ES1CL in"
       
  5141             echo " ${XQMAKESPEC}."
       
  5142             exit 1
       
  5143         fi
       
  5144     elif [ "$CFG_OPENGL" = "es1" ]; then
  5403     elif [ "$CFG_OPENGL" = "es1" ]; then
  5145         # OpenGL ES 1.x
  5404         # OpenGL ES 1.x
  5146 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5405         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5147         if [ $? != "0" ]; then
  5406         if [ $? != "0" ]; then
  5148 	    echo "The OpenGL ES 1.x functionality test failed!"
  5407             echo "The OpenGL ES 1.x functionality test failed!"
  5149             echo " You might need to modify the include and library search paths by editing"
  5408             echo " You might need to modify the include and library search paths by editing"
  5150             echo " QMAKE_INCDIR_OPENGL_ES1, QMAKE_LIBDIR_OPENGL_ES1 and QMAKE_LIBS_OPENGL_ES1 in"
  5409             echo " QMAKE_INCDIR_OPENGL_ES1, QMAKE_LIBDIR_OPENGL_ES1 and QMAKE_LIBS_OPENGL_ES1 in"
  5151             echo " ${XQMAKESPEC}."
  5410             echo " ${XQMAKESPEC}."
  5152             exit 1
  5411             exit 1
  5153         fi
  5412         fi
  5154     elif [ "$CFG_OPENGL" = "es2" ]; then
  5413     elif [ "$CFG_OPENGL" = "es2" ]; then
  5155         #OpenGL ES 2.x
  5414         #OpenGL ES 2.x
  5156 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5415         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5157         if [ $? != "0" ]; then
  5416         if [ $? != "0" ]; then
  5158 	    echo "The OpenGL ES 2.0 functionality test failed!"
  5417             echo "The OpenGL ES 2.0 functionality test failed!"
  5159             echo " You might need to modify the include and library search paths by editing"
  5418             echo " You might need to modify the include and library search paths by editing"
  5160             echo " QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in"
  5419             echo " QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in"
  5161             echo " ${XQMAKESPEC}."
  5420             echo " ${XQMAKESPEC}."
  5162             exit 1
  5421             exit 1
  5163         fi
  5422         fi
  5164     elif [ "$CFG_OPENGL" = "desktop" ]; then
  5423     elif [ "$CFG_OPENGL" = "desktop" ]; then
  5165         # Desktop OpenGL support
  5424         # Desktop OpenGL support
  5166         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
  5425         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/opengl "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
  5167         if [ $? != "0" ]; then
  5426         if [ $? != "0" ]; then
  5168 	    echo "The OpenGL functionality test failed!"
  5427             echo "The OpenGL functionality test failed!"
  5169             echo " You might need to modify the include and library search paths by editing"
  5428             echo " You might need to modify the include and library search paths by editing"
  5170             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5429             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5171             echo " ${XQMAKESPEC}."
  5430             echo " ${XQMAKESPEC}."
  5172             exit 1
  5431             exit 1
  5173         fi
  5432         fi
  5176             # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct.
  5435             # HP-UX have buggy glx headers; check if we really need to define the GLXFBConfig struct.
  5177             "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
  5436             "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/glxfbconfig "OpenGL" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS
  5178             if [ $? != "0" ]; then
  5437             if [ $? != "0" ]; then
  5179                 QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
  5438                 QMakeVar add DEFINES QT_DEFINE_GLXFBCONFIG_STRUCT
  5180             fi
  5439             fi
  5181 	    ;;
  5440             ;;
  5182         *)
  5441         *)
  5183             ;;
  5442             ;;
  5184         esac
  5443         esac
  5185     fi
  5444     fi
  5186 
  5445 
  5340 		CFG_XSHAPE=no
  5599 		CFG_XSHAPE=no
  5341 	    fi
  5600 	    fi
  5342 	fi
  5601 	fi
  5343     fi
  5602     fi
  5344 
  5603 
       
  5604     # auto-detect XVideo support
       
  5605     if [ "$CFG_XVIDEO" != "no" ]; then
       
  5606 	if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xvideo "XVideo" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
       
  5607 	    CFG_XVIDEO=yes
       
  5608 	else
       
  5609 	    if [ "$CFG_XVIDEO" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
       
  5610 		echo "XVideo support cannot be enabled due to functionality tests!"
       
  5611 		echo " Turn on verbose messaging (-v) to $0 to see the final report."
       
  5612 		echo " If you believe this message is in error you may use the continue"
       
  5613 		echo " switch (-continue) to $0 to continue."
       
  5614 		exit 101
       
  5615 	    else
       
  5616 		CFG_XVIDEO=no
       
  5617 	    fi
       
  5618 	fi
       
  5619     fi
       
  5620 
  5345     # auto-detect XSync support
  5621     # auto-detect XSync support
  5346     if [ "$CFG_XSYNC" != "no" ]; then
  5622     if [ "$CFG_XSYNC" != "no" ]; then
  5347 	if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xsync "XSync" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
  5623 	if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/xsync "XSync" $L_FLAGS $I_FLAGS $l_FLAGS $X11TESTS_FLAGS; then
  5348 	    CFG_XSYNC=yes
  5624 	    CFG_XSYNC=yes
  5349 	else
  5625 	else
  5443 if [ "$PLATFORM_MAC" = "yes" ]; then
  5719 if [ "$PLATFORM_MAC" = "yes" ]; then
  5444     if [ "$CFG_PHONON" != "no" ]; then
  5720     if [ "$CFG_PHONON" != "no" ]; then
  5445         # Always enable Phonon (unless it was explicitly disabled)
  5721         # Always enable Phonon (unless it was explicitly disabled)
  5446         CFG_PHONON=yes
  5722         CFG_PHONON=yes
  5447     fi
  5723     fi
       
  5724 
       
  5725     if [ "$CFG_COREWLAN" = "auto" ]; then
       
  5726         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/mac/corewlan "CoreWlan" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
       
  5727             CFG_COREWLAN=yes
       
  5728         else
       
  5729             CFG_COREWLAN=no
       
  5730         fi
       
  5731     fi
  5448 fi
  5732 fi
  5449 
  5733 
  5450 # QWS
  5734 # QWS
  5451 if [ "$PLATFORM_QWS" = "yes" ]; then
  5735 if [ "$PLATFORM_QWS" = "yes" ]; then
  5452 
  5736 
  5453     # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es1cl = ES 1.x common lite, es2 = OpenGL ES 2.x)
  5737     # auto-detect OpenGL support (es1 = OpenGL ES 1.x Common, es2 = OpenGL ES 2.x)
       
  5738     if [ "$CFG_GUI" = "no" ]; then
       
  5739         if [ "$CFG_OPENGL" = "auto" ]; then
       
  5740             CFG_OPENGL=no
       
  5741         fi
       
  5742         if [ "$CFG_OPENGL" != "no" ]; then
       
  5743             echo "OpenGL enabled, but GUI disabled."
       
  5744             echo " You might need to either enable the GUI or disable OpenGL"
       
  5745             exit 1
       
  5746         fi
       
  5747     fi
  5454     if [ "$CFG_OPENGL" = "yes" ]; then
  5748     if [ "$CFG_OPENGL" = "yes" ]; then
       
  5749         CFG_EGL=auto
  5455         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5750         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5456             CFG_OPENGL=es2
  5751             CFG_OPENGL=es2
  5457 	elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5752         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5458             CFG_OPENGL=es1
  5753             CFG_OPENGL=es1
  5459 	elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1cl "OpenGL ES 1.x Lite" $L_FLAGS $I_FLAGS $l_FLAGS; then
       
  5460             CFG_OPENGL=es1cl
       
  5461         else
  5754         else
  5462             echo "All the OpenGL ES functionality tests failed!"
  5755             echo "All the OpenGL ES functionality tests failed!"
  5463             echo " You might need to modify the include and library search paths by editing"
  5756             echo " You might need to modify the include and library search paths by editing"
  5464             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5757             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5465             echo " ${XQMAKESPEC}."
  5758             echo " ${XQMAKESPEC}."
  5466             exit 1
  5759             exit 1
  5467         fi
  5760         fi
  5468     elif [ "$CFG_OPENGL" = "es1" ]; then
  5761     elif [ "$CFG_OPENGL" = "es1" ]; then
  5469         # OpenGL ES 1.x
  5762         # OpenGL ES 1.x
  5470 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5763         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles1 "OpenGL ES 1.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5471         if [ $? != "0" ]; then
  5764         if [ $? != "0" ]; then
  5472 	    echo "The OpenGL ES 1.x functionality test failed!"
  5765             echo "The OpenGL ES 1.x functionality test failed!"
  5473             echo " You might need to modify the include and library search paths by editing"
  5766             echo " You might need to modify the include and library search paths by editing"
  5474 	    echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5767             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5475 	    echo " ${XQMAKESPEC}."
  5768             echo " ${XQMAKESPEC}."
  5476             exit 1
  5769             exit 1
  5477         fi
  5770         fi
       
  5771         CFG_EGL=yes
  5478     elif [ "$CFG_OPENGL" = "es2" ]; then
  5772     elif [ "$CFG_OPENGL" = "es2" ]; then
  5479         #OpenGL ES 2.x
  5773         #OpenGL ES 2.x
  5480 	"$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5774         "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/opengles2 "OpenGL ES 2.x" $L_FLAGS $I_FLAGS $l_FLAGS
  5481         if [ $? != "0" ]; then
  5775         if [ $? != "0" ]; then
  5482 	    echo "The OpenGL ES 2.0 functionality test failed!"
  5776             echo "The OpenGL ES 2.0 functionality test failed!"
  5483             echo " You might need to modify the include and library search paths by editing"
  5777             echo " You might need to modify the include and library search paths by editing"
  5484 	    echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5778             echo " QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in"
  5485 	    echo " ${XQMAKESPEC}."
  5779             echo " ${XQMAKESPEC}."
  5486             exit 1
  5780             exit 1
  5487         fi
  5781         fi
       
  5782         CFG_EGL=yes
  5488     elif [ "$CFG_OPENGL" = "desktop" ]; then
  5783     elif [ "$CFG_OPENGL" = "desktop" ]; then
  5489         # Desktop OpenGL support
  5784         # Desktop OpenGL support
  5490         echo "Desktop OpenGL support is not avaliable on Qt for Embedded Linux"
  5785         echo "Desktop OpenGL support is not avaliable on Qt for Embedded Linux"
  5491         exit 1
  5786         exit 1
  5492     fi
  5787     fi
  5569         QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SOUND"
  5864         QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SOUND"
  5570     fi
  5865     fi
  5571 
  5866 
  5572 fi # QWS
  5867 fi # QWS
  5573 
  5868 
       
  5869 # EGL Support
       
  5870 if [ "$PLATFORM_X11" = "yes" -o "$PLATFORM_QWS" = "yes" ]; then
       
  5871     if [ "$CFG_EGL" != "no" ]; then
       
  5872         # detect EGL support
       
  5873         if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl" "EGL (EGL/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
       
  5874             # EGL specified by QMAKE_*_EGL, included with <EGL/egl.h>
       
  5875             CFG_EGL=yes
       
  5876             CFG_EGL_GLES_INCLUDES=no
       
  5877         elif "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/egl4gles1" "EGL (GLES/egl.h)" $L_FLAGS $I_FLAGS $l_FLAGS; then
       
  5878             # EGL specified by QMAKE_*_EGL, included with <GLES/egl.h>
       
  5879             CFG_EGL=yes
       
  5880             CFG_EGL_GLES_INCLUDES=yes
       
  5881         else
       
  5882             if [ "$CFG_EGL" = "yes" ]; then
       
  5883                 echo "The EGL functionality test failed!"
       
  5884                 echo " EGL is required for OpenGL ES to manage contexts & surfaces."
       
  5885                 echo " You might need to modify the include and library search paths by editing"
       
  5886                 echo " QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in"
       
  5887                 echo " ${XQMAKESPEC}."
       
  5888                 exit 1
       
  5889             fi
       
  5890             CFG_EGL=no
       
  5891             # If QtOpenGL would be built against OpenGL ES, disable it as we can't to that if EGL is missing
       
  5892             if [ "$CFG_OPENGL" = "es1" -o "$CFG_OPENGL" = "es2" ]; then
       
  5893                 CFG_OPENGL=no
       
  5894             fi
       
  5895         fi
       
  5896     fi
       
  5897 fi
       
  5898 
  5574 # freetype support
  5899 # freetype support
  5575 [ "x$CFG_EMBEDDED" != "xno" ] && CFG_LIBFREETYPE="$CFG_QWS_FREETYPE"
  5900 [ "x$CFG_EMBEDDED" != "xno" ] && CFG_LIBFREETYPE="$CFG_QWS_FREETYPE"
  5576 [ "x$PLATFORM_MAC" = "xyes" ] && CFG_LIBFREETYPE=no
  5901 [ "x$PLATFORM_MAC" = "xyes" ] && CFG_LIBFREETYPE=no
  5577 if [ "$CFG_LIBFREETYPE" = "auto" ]; then
  5902 if [ "$CFG_LIBFREETYPE" = "auto" ]; then
  5578     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/freetype "FreeType" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
  5903     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/freetype "FreeType" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
  5583 fi
  5908 fi
  5584 
  5909 
  5585 if [ "$CFG_ENDIAN" = "auto" ]; then
  5910 if [ "$CFG_ENDIAN" = "auto" ]; then
  5586     if [ "$PLATFORM_MAC" = "yes" ]; then
  5911     if [ "$PLATFORM_MAC" = "yes" ]; then
  5587 	true #leave as auto
  5912 	true #leave as auto
       
  5913     elif [ "$XPLATFORM" = "symbian-sbsv2" ]; then
       
  5914         CFG_ENDIAN="Q_LITTLE_ENDIAN"
  5588     else
  5915     else
  5589         "$unixtests/endian.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath"
  5916         "$unixtests/endian.test" "$XQMAKESPEC" $OPT_VERBOSE "$relpath" "$outpath"
  5590 	F="$?"
  5917 	F="$?"
  5591         if [ "$F" -eq 0 ]; then
  5918         if [ "$F" -eq 0 ]; then
  5592             CFG_ENDIAN="Q_LITTLE_ENDIAN"
  5919             CFG_ENDIAN="Q_LITTLE_ENDIAN"
  5668         fi
  5995         fi
  5669     fi
  5996     fi
  5670 fi
  5997 fi
  5671 
  5998 
  5672 HAVE_STL=no
  5999 HAVE_STL=no
  5673 if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/stl "STL" $L_FLAGS $I_FLAGS $l_FLAGS; then
  6000 if echo "$XPLATFORM" | grep symbian > /dev/null || "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/stl "STL" $L_FLAGS $I_FLAGS $l_FLAGS; then
  5674     HAVE_STL=yes
  6001     HAVE_STL=yes
  5675 fi
  6002 fi
  5676 
  6003 
  5677 if [ "$CFG_STL" != "no" ]; then
  6004 if [ "$CFG_STL" != "no" ]; then
  5678     if [ "$HAVE_STL" = "yes" ]; then
  6005     if [ "$HAVE_STL" = "yes" ]; then
  5802 	    CFG_GETIFADDRS=no
  6129 	    CFG_GETIFADDRS=no
  5803 	fi
  6130 	fi
  5804     fi
  6131     fi
  5805 fi
  6132 fi
  5806 
  6133 
  5807 # find if the platform supports X/Open Large File compilation environment
       
  5808 if [ "$CFG_LARGEFILE" != "no" ]; then
       
  5809     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/largefile "X/Open Large File" $L_FLAGS $I_FLAGS $l_FLAGS; then
       
  5810         CFG_LARGEFILE=yes
       
  5811     else
       
  5812         if [ "$CFG_LARGEFILE" = "yes" ] && [ "$CFG_CONFIGURE_EXIT_ON_ERROR" = "yes" ]; then
       
  5813             echo "X/Open Large File support cannot be enabled due to functionality tests!"
       
  5814             echo " Turn on verbose messaging (-v) to $0 to see the final report."
       
  5815             echo " If you believe this message is in error you may use the continue"
       
  5816             echo " switch (-continue) to $0 to continue."
       
  5817             exit 101
       
  5818         else
       
  5819             CFG_LARGEFILE=no
       
  5820         fi
       
  5821     fi
       
  5822 fi
       
  5823 
       
  5824 # detect OpenSSL
  6134 # detect OpenSSL
  5825 if [ "$CFG_OPENSSL" != "no" ]; then
  6135 if [ "$CFG_OPENSSL" != "no" ]; then
  5826     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/openssl "OpenSSL" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
  6136     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/openssl "OpenSSL" $L_FLAGS $I_FLAGS $l_FLAGS $MAC_CONFIG_TEST_COMMANDLINE; then
  5827         if [ "$CFG_OPENSSL" = "auto" ]; then
  6137         if [ "$CFG_OPENSSL" = "auto" ]; then
  5828             CFG_OPENSSL=yes
  6138             CFG_OPENSSL=yes
  5839         fi
  6149         fi
  5840     fi
  6150     fi
  5841 fi
  6151 fi
  5842 
  6152 
  5843 # detect OpenVG support
  6153 # detect OpenVG support
  5844 #QTP:QTPPROD-7 It is necessary to prohibit OpenVg checking for Symbian build
       
  5845 echo $XQMAKESPEC
       
  5846 if [ "$CFG_OPENVG" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then
  6154 if [ "$CFG_OPENVG" != "no" ] && [ "$XPLATFORM" != "symbian-sbsv2" ]; then
  5847     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then
  6155     if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" "config.tests/unix/openvg" "OpenVG" $L_FLAGS $I_FLAGS $l_FLAGS $CONFIG_ARG; then
  5848         if [ "$CFG_OPENVG" = "auto" ]; then
  6156         if [ "$CFG_OPENVG" = "auto" ]; then
  5849             CFG_OPENVG=yes
  6157             CFG_OPENVG=yes
  5850         fi
  6158         fi
  5901     else
  6209     else
  5902         CFG_ALSA=no
  6210         CFG_ALSA=no
  5903     fi
  6211     fi
  5904 fi
  6212 fi
  5905 
  6213 
  5906 if [ -f "$relpath/src/declarative/declarative.pro" ]; then
       
  5907     if [ "$CFG_DECLARATIVE" = "auto" ]; then
       
  5908         CFG_DECLARATIVE=yes
       
  5909     fi
       
  5910 else
       
  5911     if [ "$CFG_DECLARATIVE" = "auto" ] || [ "$CFG_DECLARATIVE" = "no" ]; then
       
  5912         CFG_DECLARATIVE=no
       
  5913     else
       
  5914         echo "Error: Unable to locate the qt-declarative package. Refer to the documentation on how to build the package."
       
  5915         exit 1
       
  5916     fi
       
  5917 fi
       
  5918 
       
  5919 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ] || [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then 
  6214 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ] || [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then 
  5920     if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then
  6215     if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then
  5921        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/javascriptcore-jit "javascriptcore-jit" $L_FLAGS $I_FLAGS $l_FLAGS
  6216        "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/javascriptcore-jit "javascriptcore-jit" $L_FLAGS $I_FLAGS $l_FLAGS
  5922         if [ $? != "0" ]; then
  6217         if [ $? != "0" ]; then
  5923            CFG_JAVASCRIPTCORE_JIT=no
  6218            CFG_JAVASCRIPTCORE_JIT=no
  5927 
  6222 
  5928 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ]; then
  6223 if [ "$CFG_JAVASCRIPTCORE_JIT" = "yes" ]; then
  5929     QMakeVar set JAVASCRIPTCORE_JIT yes
  6224     QMakeVar set JAVASCRIPTCORE_JIT yes
  5930 elif [ "$CFG_JAVASCRIPTCORE_JIT" = "no" ]; then
  6225 elif [ "$CFG_JAVASCRIPTCORE_JIT" = "no" ]; then
  5931     QMakeVar set JAVASCRIPTCORE_JIT no
  6226     QMakeVar set JAVASCRIPTCORE_JIT no
       
  6227 fi
       
  6228 
       
  6229 if [ "$CFG_AUDIO_BACKEND" = "auto" ]; then
       
  6230     if echo "$XPLATFORM" | grep symbian > /dev/null 2>&1; then
       
  6231         "$symbiantests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/symbian/audio "audio" $L_FLAGS $I_FLAGS $l_FLAGS
       
  6232     else
       
  6233         CFG_AUDIO_BACKEND=yes
       
  6234     fi
  5932 fi
  6235 fi
  5933 
  6236 
  5934 #-------------------------------------------------------------------------------
  6237 #-------------------------------------------------------------------------------
  5935 # ask for all that hasn't been auto-detected or specified in the arguments
  6238 # ask for all that hasn't been auto-detected or specified in the arguments
  5936 #-------------------------------------------------------------------------------
  6239 #-------------------------------------------------------------------------------
  5972 # enable dwarf2 support on Mac
  6275 # enable dwarf2 support on Mac
  5973 if [ "$CFG_MAC_DWARF2" = "yes" ]; then
  6276 if [ "$CFG_MAC_DWARF2" = "yes" ]; then
  5974     QT_CONFIG="$QT_CONFIG dwarf2"
  6277     QT_CONFIG="$QT_CONFIG dwarf2"
  5975 fi
  6278 fi
  5976 
  6279 
  5977 # Set the default arch.
  6280 # Set the default arch if there are no "-arch" arguments on the configure line
  5978 # Carbon builds: 32 bit x86/ppc.
  6281 # For "-carbon" builds: 32 bit x86/ppc.
  5979 # For "-cocoa" builds on snow leopard : compiler default (64-bit).
  6282 # For builds on snow leopard : compiler default (64-bit).
  5980 # For "-cocoa" builds on leopard : compiler default (32-bit).
  6283 # For builds on leopard : compiler default (32-bit).
  5981 if [ "$PLATFORM_MAC" = "yes" ]  && [ "$CFG_MAC_ARCHS" = "" ]; then
  6284 if [ "$PLATFORM_MAC" = "yes" ]  && [ "$CFG_MAC_ARCHS" = "" ]; then
  5982     source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests"
  6285     source "$mactests/defaultarch.test" "$TEST_COMPILER" "$OPT_VERBOSE" "$mactests"
  5983 
  6286 
  5984 	if [ "$CFG_MAC_COCOA" != "yes" ]; then
  6287 	if [ "$CFG_MAC_CARBON" = "yes" ]; then
  5985 		if [ "$QT_MAC_DEFAULT_ARCH" = "x86_64" ]; then
  6288 		if [ "$QT_MAC_DEFAULT_ARCH" = "x86_64" ]; then
  5986 			CFG_MAC_ARCHS=" x86"
  6289 			CFG_MAC_ARCHS=" x86"
  5987 		elif [ "$QT_MAC_DEFAULT_ARCH" = "ppc64" ]; then
  6290 		elif [ "$QT_MAC_DEFAULT_ARCH" = "ppc64" ]; then
  5988 			CFG_MAC_ARCHS=" ppc"
  6291 			CFG_MAC_ARCHS=" ppc"
  5989 		else
  6292 		else
  5994     fi
  6297     fi
  5995 
  6298 
  5996     [ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
  6299     [ "$OPT_VERBOSE" = "yes" ] && echo "Setting Mac architechture to$CFG_MAC_ARCHS."
  5997 fi
  6300 fi
  5998 
  6301 
  5999 # enable cocoa and/or carbon on Mac
  6302 # enable Cocoa and/or Carbon on Mac
  6000 if [ "$CFG_MAC_COCOA" = "yes" ]; then
  6303 #  -carbon on the command line disables Cocoa, except for 64-bit archs
  6001 #   -cocoa on the command line disables carbon completely (i.e. use cocoa for 32-bit as well)
  6304 if [ "$CFG_MAC_CARBON" = "yes" ]; then
  6002     CFG_MAC_CARBON="no"
  6305     CFG_MAC_CARBON="YES"
  6003 else
  6306     CFG_MAC_COCOA="NO"
  6004 #   check which archs are in use, enable cocoa if we find a 64-bit one
  6307 
       
  6308 #    check which archs are in use, enable cocoa if we find a 64-bit one
  6005     if echo "$CFG_MAC_ARCHS" | grep 64 > /dev/null 2>&1; then
  6309     if echo "$CFG_MAC_ARCHS" | grep 64 > /dev/null 2>&1; then
  6006         CFG_MAC_COCOA="yes";
  6310         CFG_MAC_COCOA="yes";
  6007         CFG_MAC_CARBON="no";
  6311         CFG_MAC_CARBON="no";
  6008         if echo "$CFG_MAC_ARCHS" | grep -w ppc > /dev/null 2>&1; then
  6312         if echo "$CFG_MAC_ARCHS" | grep -w ppc > /dev/null 2>&1; then
  6009             CFG_MAC_CARBON="yes";
  6313             CFG_MAC_CARBON="yes";
  6010         fi
  6314         fi
  6011         if echo "$CFG_MAC_ARCHS" | grep -w x86 > /dev/null 2>&1; then
  6315         if echo "$CFG_MAC_ARCHS" | grep -w x86 > /dev/null 2>&1; then
  6012             CFG_MAC_CARBON="yes";
  6316             CFG_MAC_CARBON="yes";
  6013         fi
  6317         fi
  6014     else
  6318     fi
  6015 #       no 64-bit archs found.
  6319 fi
  6016         CFG_MAC_COCOA="no"
  6320 
  6017     fi
  6321 # select Carbon on 10.4 Tiger.
  6018 fi;
  6322 if [ "$PLATFORM_MAC" = "yes" ]; then
       
  6323     VERSION=`uname -r | tr '.' ' ' | awk '{print $1}'`
       
  6324     if [ "$VERSION" == 8 ]; then
       
  6325         CFG_MAC_COCOA="no";
       
  6326         CFG_MAC_CARBON="yes";
       
  6327     fi
       
  6328 fi
       
  6329 
       
  6330 # select Carbon when using the 10.4u SDK
       
  6331 if [ "$PLATFORM_MAC" = "yes" ]; then
       
  6332     if [ "TEST$CFG_SDK" = "TEST/Developer/SDKs/MacOSX10.4u.sdk/" ]; then
       
  6333         echo "Carbon on";
       
  6334         CFG_MAC_COCOA="no";
       
  6335         CFG_MAC_CARBON="yes";
       
  6336     fi
       
  6337 fi
  6019 
  6338 
  6020 # set the global Mac deployment target. This is overridden on an arch-by-arch basis
  6339 # set the global Mac deployment target. This is overridden on an arch-by-arch basis
  6021 # in some cases, see code further down
  6340 # in some cases, see code further down
  6022 case "$PLATFORM,$CFG_MAC_COCOA" in
  6341 case "$PLATFORM,$CFG_MAC_COCOA" in
  6023     macx*,yes)
  6342     macx*,yes)
  6028 	# gcc, Carbon
  6347 	# gcc, Carbon
  6029 	QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.4
  6348 	QMakeVar set QMAKE_MACOSX_DEPLOYMENT_TARGET 10.4
  6030 	;;
  6349 	;;
  6031 esac
  6350 esac
  6032 
  6351 
  6033 # disable Qt 3 support on VxWorks
  6352 # disable Qt 3 support on VxWorks and Symbian
  6034 case "$XPLATFORM" in
  6353 case "$XPLATFORM" in
  6035     unsupported/vxworks*)
  6354     unsupported/vxworks*|symbian*)
  6036 	CFG_QT3SUPPORT="no"
  6355 	CFG_QT3SUPPORT="no"
  6037     ;;
  6356     ;;
  6038 esac
  6357 esac
  6039 
  6358 
  6040 # enable Qt 3 support functionality
  6359 # enable Qt 3 support functionality
  6084         QT_CONFIG="$QT_CONFIG shivavg"
  6403         QT_CONFIG="$QT_CONFIG shivavg"
  6085         QCONFIG_FLAGS="$QCONFIG_FLAGS QT_SHIVAVG"
  6404         QCONFIG_FLAGS="$QCONFIG_FLAGS QT_SHIVAVG"
  6086     fi
  6405     fi
  6087 fi
  6406 fi
  6088 
  6407 
  6089 # QTP:QTPROD-7 Cross compiling on Linux broken
  6408 if [ "$CFG_QS60STYLE" = "no" ]; then
  6090 if [ "$QT_SYMBIAN_STYLE_FLAGS" = "no" ]; then
       
  6091     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STYLE_S60"
  6409     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_STYLE_S60"
  6092 else
  6410 else
  6093     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_STYLE_S60"
  6411     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_STYLE_S60"
  6094 fi
  6412 fi
       
  6413 
       
  6414 # Disable OpenGL on Symbian.
       
  6415 case "$XPLATFORM" in
       
  6416     symbian*)
       
  6417         CFG_OPENGL="no"
       
  6418         ;;
       
  6419 esac
  6095 
  6420 
  6096 # enable opengl
  6421 # enable opengl
  6097 if [ "$CFG_OPENGL" = "no" ]; then
  6422 if [ "$CFG_OPENGL" = "no" ]; then
  6098     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_OPENGL"
  6423     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_OPENGL"
  6099 else
  6424 else
  6100     QT_CONFIG="$QT_CONFIG opengl"
  6425     QT_CONFIG="$QT_CONFIG opengl"
  6101 fi
  6426 fi
  6102 
  6427 
  6103 if [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es1cl" ] || [ "$CFG_OPENGL" = "es2" ]; then
  6428 if [ "$CFG_OPENGL" = "es1" ] || [ "$CFG_OPENGL" = "es2" ]; then
  6104     if [ "$PLATFORM_QWS" = "yes" ]; then
  6429     if [ "$PLATFORM_QWS" = "yes" ]; then
  6105 	QCONFIG_FLAGS="$QCONFIG_FLAGS Q_BACKINGSTORE_SUBSURFACES"
  6430 	QCONFIG_FLAGS="$QCONFIG_FLAGS Q_BACKINGSTORE_SUBSURFACES"
  6106 	QCONFIG_FLAGS="$QCONFIG_FLAGS Q_USE_EGLWINDOWSURFACE"
  6431 	QCONFIG_FLAGS="$QCONFIG_FLAGS Q_USE_EGLWINDOWSURFACE"
  6107     fi
  6432     fi
  6108     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES"
  6433     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES"
  6109 fi
  6434 fi
  6110 
  6435 
  6111 if [ "$CFG_OPENGL" = "es1" ]; then
  6436 if [ "$CFG_OPENGL" = "es1" ]; then
  6112     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_1"
  6437     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_1"
  6113     QT_CONFIG="$QT_CONFIG opengles1"
  6438     QT_CONFIG="$QT_CONFIG opengles1"
  6114 fi
       
  6115 
       
  6116 if [ "$CFG_OPENGL" = "es1cl" ]; then
       
  6117     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_1_CL"
       
  6118     QT_CONFIG="$QT_CONFIG opengles1cl"
       
  6119 fi
  6439 fi
  6120 
  6440 
  6121 if [ "$CFG_OPENGL" = "es2" ]; then
  6441 if [ "$CFG_OPENGL" = "es2" ]; then
  6122     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_2"
  6442     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_OPENGL_ES_2"
  6123     QT_CONFIG="$QT_CONFIG opengles2"
  6443     QT_CONFIG="$QT_CONFIG opengles2"
  6258 elif [ "$CFG_LIBFREETYPE" = "system" ]; then
  6578 elif [ "$CFG_LIBFREETYPE" = "system" ]; then
  6259     QT_CONFIG="$QT_CONFIG system-freetype"
  6579     QT_CONFIG="$QT_CONFIG system-freetype"
  6260 else
  6580 else
  6261     QT_CONFIG="$QT_CONFIG freetype"
  6581     QT_CONFIG="$QT_CONFIG freetype"
  6262 fi
  6582 fi
  6263 
  6583 if [ "$CFG_GUI" = "auto" ]; then
  6264 if [ "x$PLATFORM_MAC" = "xyes" ]; then
  6584     CFG_GUI="yes"
       
  6585 fi
       
  6586 if [ "$CFG_GUI" = "no" ]; then
       
  6587     QT_CONFIG="$QT_CONFIG no-gui"
       
  6588 else
       
  6589     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GUI"
       
  6590 fi
       
  6591 
       
  6592 
       
  6593 if [ "x$PLATFORM_MAC" = "xyes" ] && [ "$XPLATFORM" != "win32-g++" ]; then
  6265     #On Mac we implicitly link against libz, so we
  6594     #On Mac we implicitly link against libz, so we
  6266     #never use the 3rdparty stuff.
  6595     #never use the 3rdparty stuff.
  6267     [ "$CFG_ZLIB" = "yes" ] && CFG_ZLIB="system"
  6596     [ "$CFG_ZLIB" = "yes" ] && CFG_ZLIB="system"
  6268 fi
  6597 fi
  6269 if [ "$CFG_ZLIB" = "yes" ]; then
  6598 if [ "$CFG_ZLIB" = "yes" ]; then
  6270     QT_CONFIG="$QT_CONFIG zlib"
  6599     QT_CONFIG="$QT_CONFIG zlib"
  6271 elif [ "$CFG_ZLIB" = "system" ]; then
  6600 elif [ "$CFG_ZLIB" = "system" ]; then
  6272     QT_CONFIG="$QT_CONFIG system-zlib"
  6601     QT_CONFIG="$QT_CONFIG system-zlib"
       
  6602 fi
       
  6603 
       
  6604 if [ "$CFG_S60" = "yes" ]; then
       
  6605     QT_CONFIG="$QT_CONFIG s60"
       
  6606 fi
       
  6607 
       
  6608 if [ "$CFG_SYMBIAN_DEFFILES" = "yes" ]; then
       
  6609     QMAKE_CONFIG="$QMAKE_CONFIG def_files"
       
  6610 else
       
  6611     QMAKE_CONFIG="$QMAKE_CONFIG def_files_disabled"
  6273 fi
  6612 fi
  6274 
  6613 
  6275 [ "$CFG_NIS" = "yes" ] && QT_CONFIG="$QT_CONFIG nis"
  6614 [ "$CFG_NIS" = "yes" ] && QT_CONFIG="$QT_CONFIG nis"
  6276 [ "$CFG_CUPS" = "yes" ] && QT_CONFIG="$QT_CONFIG cups"
  6615 [ "$CFG_CUPS" = "yes" ] && QT_CONFIG="$QT_CONFIG cups"
  6277 [ "$CFG_ICONV" = "yes" ] && QT_CONFIG="$QT_CONFIG iconv"
  6616 [ "$CFG_ICONV" = "yes" ] && QT_CONFIG="$QT_CONFIG iconv"
  6290     # for some reason, the following libraries are not always built shared,
  6629     # for some reason, the following libraries are not always built shared,
  6291     # so *every* program/lib (including Qt) has to link against them
  6630     # so *every* program/lib (including Qt) has to link against them
  6292     if [ "$CFG_XSHAPE" = "yes" ]; then
  6631     if [ "$CFG_XSHAPE" = "yes" ]; then
  6293         QT_CONFIG="$QT_CONFIG xshape"
  6632         QT_CONFIG="$QT_CONFIG xshape"
  6294     fi
  6633     fi
       
  6634     if [ "$CFG_XVIDEO" = "yes" ]; then
       
  6635         QT_CONFIG="$QT_CONFIG xvideo"
       
  6636     fi
  6295     if [ "$CFG_XSYNC" = "yes" ]; then
  6637     if [ "$CFG_XSYNC" = "yes" ]; then
  6296         QT_CONFIG="$QT_CONFIG xsync"
  6638         QT_CONFIG="$QT_CONFIG xsync"
  6297     fi
  6639     fi
  6298     if [ "$CFG_XINERAMA" = "yes" ]; then
  6640     if [ "$CFG_XINERAMA" = "yes" ]; then
  6299         QT_CONFIG="$QT_CONFIG xinerama"
  6641         QT_CONFIG="$QT_CONFIG xinerama"
  6343 
  6685 
  6344 if [ "$PLATFORM_MAC" = "yes" ]; then
  6686 if [ "$PLATFORM_MAC" = "yes" ]; then
  6345     if [ "$CFG_RPATH" = "yes" ]; then
  6687     if [ "$CFG_RPATH" = "yes" ]; then
  6346        QMAKE_CONFIG="$QMAKE_CONFIG absolute_library_soname"
  6688        QMAKE_CONFIG="$QMAKE_CONFIG absolute_library_soname"
  6347     fi
  6689     fi
  6348 elif [ -z "`getQMakeConf \"$XQMAKESPEC\" | grep QMAKE_RPATH | awk '{print $3;}'`" ]; then
  6690 elif [ -z "`getQMakeConf \"$XQMAKESPEC\" | $AWK '/QMAKE_(LFLAGS_)?RPATH/ {print $3;}'`" ]; then
  6349     if [ -n "$RPATH_FLAGS" ]; then
  6691     if [ -n "$RPATH_FLAGS" ]; then
  6350         echo
  6692         echo
  6351         echo "ERROR: -R cannot be used on this platform as \$QMAKE_RPATH is"
  6693         echo "ERROR: -R cannot be used on this platform as \$QMAKE_LFLAGS_RPATH is"
  6352         echo "       undefined."
  6694         echo "       undefined."
  6353         echo
  6695         echo
  6354         exit 1
  6696         exit 1
  6355     elif [ "$CFG_RPATH" = "yes" ]; then
  6697     elif [ "$CFG_RPATH" = "yes" ]; then
  6356         RPATH_MESSAGE="        NOTE: This platform does not support runtime library paths, using -no-rpath."
  6698         RPATH_MESSAGE="        NOTE: This platform does not support runtime library paths, using -no-rpath."
  6387     QTCONFIG_CONFIG="$QTCONFIG_CONFIG exceptions"
  6729     QTCONFIG_CONFIG="$QTCONFIG_CONFIG exceptions"
  6388 fi
  6730 fi
  6389 
  6731 
  6390 if [ "$CFG_ALSA" = "yes" ]; then
  6732 if [ "$CFG_ALSA" = "yes" ]; then
  6391     QT_CONFIG="$QT_CONFIG alsa"
  6733     QT_CONFIG="$QT_CONFIG alsa"
       
  6734 fi
       
  6735 
       
  6736 if [ "$CFG_PULSEAUDIO" = "yes" ]; then
       
  6737     QT_CONFIG="$QT_CONFIG pulseaudio"
       
  6738 fi
       
  6739 
       
  6740 if [ "$CFG_COREWLAN" = "yes" ]; then
       
  6741     QT_CONFIG="$QT_CONFIG corewlan"
       
  6742 fi
       
  6743 
       
  6744 if [ "$CFG_ICD" = "yes" ]; then
       
  6745     QT_CONFIG="$QT_CONFIG icd"
  6392 fi
  6746 fi
  6393 
  6747 
  6394 #
  6748 #
  6395 # Some Qt modules are too advanced in C++ for some old compilers
  6749 # Some Qt modules are too advanced in C++ for some old compilers
  6396 # Detect here the platforms where they are known to work.
  6750 # Detect here the platforms where they are known to work.
  6509         canBuildWebKit="no"
  6863         canBuildWebKit="no"
  6510         canBuildQtConcurrent="no"
  6864         canBuildQtConcurrent="no"
  6511 	;;
  6865 	;;
  6512 esac
  6866 esac
  6513 
  6867 
       
  6868 if [ "$CFG_GUI" = "no" ]; then
       
  6869     # WebKit requires QtGui
       
  6870     canBuildWebKit="no"
       
  6871 fi
       
  6872 
       
  6873 
  6514 CFG_CONCURRENT="yes"
  6874 CFG_CONCURRENT="yes"
  6515 if [ "$canBuildQtConcurrent" = "no" ]; then
  6875 if [ "$canBuildQtConcurrent" = "no" ]; then
  6516     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT"
  6876     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT"
  6517     CFG_CONCURRENT="no"
  6877     CFG_CONCURRENT="no"
  6518 fi
  6878 fi
  6540 
  6900 
  6541 if [ "$CFG_AUDIO_BACKEND" = "yes" ]; then
  6901 if [ "$CFG_AUDIO_BACKEND" = "yes" ]; then
  6542     QT_CONFIG="$QT_CONFIG audio-backend"
  6902     QT_CONFIG="$QT_CONFIG audio-backend"
  6543 fi
  6903 fi
  6544 
  6904 
       
  6905 if [ "$CFG_SVG" = "auto" ]; then
       
  6906     CFG_SVG=$CFG_GUI
       
  6907 fi
       
  6908 
       
  6909 if [ "$CFG_SVG" = "yes" ] && [ "$CFG_GUI" = "no" ]; then
       
  6910     echo "QtSvg requested, but it can't be built without QtGui"
       
  6911     exit 1
       
  6912 fi
       
  6913 
  6545 if [ "$CFG_SVG" = "yes" ]; then
  6914 if [ "$CFG_SVG" = "yes" ]; then
  6546     QT_CONFIG="$QT_CONFIG svg"
  6915     QT_CONFIG="$QT_CONFIG svg"
  6547 else
  6916 else
  6548     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SVG"
  6917     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SVG"
  6549 fi
       
  6550 
       
  6551 if [ "$CFG_DECLARATIVE" = "yes" ]; then
       
  6552     QT_CONFIG="$QT_CONFIG declarative"
       
  6553 else
       
  6554     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DECLARATIVE"
       
  6555 fi
  6918 fi
  6556 
  6919 
  6557 if [ "$CFG_WEBKIT" = "auto" ]; then
  6920 if [ "$CFG_WEBKIT" = "auto" ]; then
  6558     CFG_WEBKIT="$canBuildWebKit"
  6921     CFG_WEBKIT="$canBuildWebKit"
  6559 fi
  6922 fi
  6589 
  6952 
  6590 if [ "$CFG_SCRIPTTOOLS" = "yes" ]; then
  6953 if [ "$CFG_SCRIPTTOOLS" = "yes" ]; then
  6591     QT_CONFIG="$QT_CONFIG scripttools"
  6954     QT_CONFIG="$QT_CONFIG scripttools"
  6592 else
  6955 else
  6593     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPTTOOLS"
  6956     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SCRIPTTOOLS"
       
  6957 fi
       
  6958 
       
  6959 
       
  6960 if [ "$CFG_DECLARATIVE" = "yes" ]; then
       
  6961     if [ "$CFG_SCRIPT" = "no" -o "$CFG_GUI" = "no" ]; then
       
  6962         echo "Error: QtDeclarative was requested, but it can't be built due to QtScript or QtGui being disabled."
       
  6963         exit 1
       
  6964     fi
       
  6965 fi
       
  6966 if [ "$CFG_DECLARATIVE" = "auto" ]; then
       
  6967     if [ "$CFG_SCRIPT" = "no" -o "$CFG_GUI" = "no" ]; then
       
  6968             CFG_DECLARATIVE=no
       
  6969     else
       
  6970             CFG_DECLARATIVE=yes
       
  6971     fi
       
  6972 fi
       
  6973 
       
  6974 if [ "$CFG_DECLARATIVE" = "yes" ]; then
       
  6975     QT_CONFIG="$QT_CONFIG declarative"
       
  6976 else
       
  6977     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DECLARATIVE"
  6594 fi
  6978 fi
  6595 
  6979 
  6596 if [ "$CFG_EXCEPTIONS" = "no" ]; then
  6980 if [ "$CFG_EXCEPTIONS" = "no" ]; then
  6597     case "$COMPILER" in
  6981     case "$COMPILER" in
  6598     g++*)
  6982     g++*)
  6616 fi
  7000 fi
  6617 
  7001 
  6618 # On Mac, set the minimum deployment target for the different architechtures 
  7002 # On Mac, set the minimum deployment target for the different architechtures 
  6619 # using the Xarch compiler option when supported (10.5 and up).  On 10.4 the
  7003 # using the Xarch compiler option when supported (10.5 and up).  On 10.4 the
  6620 # deployment version is set to 10.4 globally using the QMAKE_MACOSX_DEPLOYMENT_TARGET
  7004 # deployment version is set to 10.4 globally using the QMAKE_MACOSX_DEPLOYMENT_TARGET
  6621 # env. variable. "-cocoa" on the command line means Cocoa is used in 32-bit mode also,
  7005 # env. variable. 
  6622 # in this case fall back on QMAKE_MACOSX_DEPLOYMENT_TARGET which will be set to 10.5.
  7006 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" != "no" ] ; then
  6623 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_MAC_XARCH" != "no" ] && [ "$COMMANDLINE_MAC_COCOA" != "yes" ]; then
       
  6624     if echo "$CFG_MAC_ARCHS" | grep '\<x86\>' > /dev/null 2>&1; then
  7007     if echo "$CFG_MAC_ARCHS" | grep '\<x86\>' > /dev/null 2>&1; then
  6625         QMakeVar add QMAKE_CFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
  7008         QMakeVar add QMAKE_CFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
  6626         QMakeVar add QMAKE_CXXFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
  7009         QMakeVar add QMAKE_CXXFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
  6627         QMakeVar add QMAKE_LFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
  7010         QMakeVar add QMAKE_LFLAGS "-Xarch_i386 -mmacosx-version-min=10.4"
  6628         QMakeVar add QMAKE_OBJECTIVE_CFLAGS_X86 "-arch i386 -Xarch_i386 -mmacosx-version-min=10.4"
  7011         QMakeVar add QMAKE_OBJECTIVE_CFLAGS_X86 "-arch i386 -Xarch_i386 -mmacosx-version-min=10.4"
  6697 #
  7080 #
  6698 #   Options:
  7081 #   Options:
  6699 #     minimal-config small-config medium-config large-config full-config
  7082 #     minimal-config small-config medium-config large-config full-config
  6700 #
  7083 #
  6701 #   Different edition modules:
  7084 #   Different edition modules:
  6702 #     network canvas table xml opengl sql
  7085 #     gui network canvas table xml opengl sql
  6703 #
  7086 #
  6704 # Things that do not affect the Qt API/ABI:
  7087 # Things that do not affect the Qt API/ABI:
  6705 #     stl
  7088 #     stl
  6706 #     system-jpeg no-jpeg jpeg
  7089 #     system-jpeg no-jpeg jpeg
  6707 #     system-mng no-mng mng
  7090 #     system-mng no-mng mng
  6938 if [ "$CFG_LARGEFILE" = "yes" ]; then
  7321 if [ "$CFG_LARGEFILE" = "yes" ]; then
  6939     echo "#define QT_LARGEFILE_SUPPORT 64" >>"$outpath/src/corelib/global/qconfig.h.new"
  7322     echo "#define QT_LARGEFILE_SUPPORT 64" >>"$outpath/src/corelib/global/qconfig.h.new"
  6940 fi
  7323 fi
  6941 
  7324 
  6942 # if both carbon and cocoa are specified, enable the autodetection code.
  7325 # if both carbon and cocoa are specified, enable the autodetection code.
  6943 if [ "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then
  7326 if [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" -a "$CFG_MAC_CARBON" = "yes" ]; then
  6944     echo "#define AUTODETECT_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
  7327     echo "#define QT_AUTODETECT_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
  6945 elif [ "$CFG_MAC_COCOA" = "yes" ]; then
  7328 elif [ "$PLATFORM_MAC" = "yes" -a "$CFG_MAC_COCOA" = "yes" ]; then
  6946     echo "#define QT_MAC_USE_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
  7329     echo "#define QT_MAC_USE_COCOA 1" >>"$outpath/src/corelib/global/qconfig.h.new"
  6947 fi
  7330 fi
  6948 
  7331 
  6949 if [ "$CFG_FRAMEWORK" = "yes" ]; then
  7332 if [ "$CFG_FRAMEWORK" = "yes" ]; then
  6950     echo "#define QT_MAC_FRAMEWORK_BUILD" >>"$outpath/src/corelib/global/qconfig.h.new"
  7333     echo "#define QT_MAC_FRAMEWORK_BUILD" >>"$outpath/src/corelib/global/qconfig.h.new"
  7046 [ "$CFG_TIFF" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_TIFF"
  7429 [ "$CFG_TIFF" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_TIFF"
  7047 [ "$CFG_PNG" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_PNG"
  7430 [ "$CFG_PNG" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_PNG"
  7048 [ "$CFG_JPEG" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_JPEG"
  7431 [ "$CFG_JPEG" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_JPEG"
  7049 [ "$CFG_MNG" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_MNG"
  7432 [ "$CFG_MNG" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IMAGEFORMAT_MNG"
  7050 [ "$CFG_ZLIB" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ZLIB"
  7433 [ "$CFG_ZLIB" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ZLIB"
       
  7434 [ "$CFG_S60" != "yes" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_S60"
  7051 [ "$CFG_EXCEPTIONS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_EXCEPTIONS"
  7435 [ "$CFG_EXCEPTIONS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_EXCEPTIONS"
  7052 [ "$CFG_IPV6" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IPV6"
  7436 [ "$CFG_IPV6" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_IPV6"
  7053 [ "$CFG_SXE" = "no" ]        && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SXE"
  7437 [ "$CFG_SXE" = "no" ]        && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SXE"
  7054 [ "$CFG_DBUS" = "no" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DBUS"
  7438 [ "$CFG_DBUS" = "no" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_DBUS"
  7055 
  7439 
  7084 [ "$CFG_XKB" = "no" ]        && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XKB"
  7468 [ "$CFG_XKB" = "no" ]        && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XKB"
  7085 [ "$CFG_XRANDR" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XRANDR"
  7469 [ "$CFG_XRANDR" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XRANDR"
  7086 [ "$CFG_XRENDER" = "no" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XRENDER"
  7470 [ "$CFG_XRENDER" = "no" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XRENDER"
  7087 [ "$CFG_MITSHM" = "no" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MITSHM"
  7471 [ "$CFG_MITSHM" = "no" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_MITSHM"
  7088 [ "$CFG_XSHAPE" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SHAPE"
  7472 [ "$CFG_XSHAPE" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SHAPE"
       
  7473 [ "$CFG_XVIDEO" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XVIDEO"
  7089 [ "$CFG_XSYNC" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XSYNC"
  7474 [ "$CFG_XSYNC" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XSYNC"
  7090 [ "$CFG_XINPUT" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XINPUT QT_NO_TABLET"
  7475 [ "$CFG_XINPUT" = "no" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_XINPUT QT_NO_TABLET"
  7091 
  7476 
  7092 [ "$CFG_XCURSOR" = "runtime" ]   && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XCURSOR"
  7477 [ "$CFG_XCURSOR" = "runtime" ]   && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XCURSOR"
  7093 [ "$CFG_XINERAMA" = "runtime" ]  && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINERAMA"
  7478 [ "$CFG_XINERAMA" = "runtime" ]  && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINERAMA"
  7094 [ "$CFG_XFIXES" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XFIXES"
  7479 [ "$CFG_XFIXES" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XFIXES"
  7095 [ "$CFG_XRANDR" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XRANDR"
  7480 [ "$CFG_XRANDR" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XRANDR"
  7096 [ "$CFG_XINPUT" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINPUT"
  7481 [ "$CFG_XINPUT" = "runtime" ]    && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_RUNTIME_XINPUT"
  7097 [ "$CFG_ALSA" = "no" ]           && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ALSA"
  7482 [ "$CFG_ALSA" = "no" ]           && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ALSA"
       
  7483 [ "$CFG_PULSEAUDIO" = "no" ]          && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_PULSEAUDIO"
       
  7484 [ "$CFG_COREWLAN" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_COREWLAN"
       
  7485 [ "$CFG_ICD" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICD"
  7098 
  7486 
  7099 # sort QCONFIG_FLAGS for neatness if we can
  7487 # sort QCONFIG_FLAGS for neatness if we can
  7100 [ '!' -z "$AWK" ] && QCONFIG_FLAGS=`echo $QCONFIG_FLAGS | $AWK '{ gsub(" ", "\n"); print }' | sort | uniq`
  7488 [ '!' -z "$AWK" ] && QCONFIG_FLAGS=`echo $QCONFIG_FLAGS | $AWK '{ gsub(" ", "\n"); print }' | sort | uniq`
  7101 QCONFIG_FLAGS=`echo $QCONFIG_FLAGS`
  7489 QCONFIG_FLAGS=`echo $QCONFIG_FLAGS`
       
  7490 
       
  7491 if echo $XPLATFORM | grep symbian >/dev/null
       
  7492 then
       
  7493     # Enable Symbian DLLs and export rules.
       
  7494     # We cannot use Linux's default export rules since they export everything.
       
  7495     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_DLL"
       
  7496     # Disable non-working features.
       
  7497     QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CONCURRENT QT_NO_QFUTURE QT_NO_CRASHHANDLER QT_NO_PRINTER QT_NO_SYSTEMTRAYICON"
       
  7498 fi
  7102 
  7499 
  7103 if [ -n "$QCONFIG_FLAGS" ]; then
  7500 if [ -n "$QCONFIG_FLAGS" ]; then
  7104     for cfg in $QCONFIG_FLAGS; do
  7501     for cfg in $QCONFIG_FLAGS; do
  7105         cfgd=`echo $cfg | sed 's/=.*$//'` # trim pushed 'Foo=Bar' defines
  7502         cfgd=`echo $cfg | sed 's/=.*$//'` # trim pushed 'Foo=Bar' defines
  7106         cfg=`echo $cfg | sed 's/=/ /'`    # turn first '=' into a space
  7503         cfg=`echo $cfg | sed 's/=/ /'`    # turn first '=' into a space
  7429 fi
  7826 fi
  7430 
  7827 
  7431 if [ "$OPT_VERBOSE" = "yes" ]; then
  7828 if [ "$OPT_VERBOSE" = "yes" ]; then
  7432     echo $ECHO_N "qmake vars .......... $ECHO_C"
  7829     echo $ECHO_N "qmake vars .......... $ECHO_C"
  7433     cat "$QMAKE_VARS_FILE" | tr '\n' ' '
  7830     cat "$QMAKE_VARS_FILE" | tr '\n' ' '
  7434     echo "qmake switches ...... $QMAKE_SWITCHES"
  7831     echo "qmake switches ......... $QMAKE_SWITCHES"
  7435 fi
  7832 fi
  7436 
  7833 
  7437 [ "$CFG_INCREMENTAL" = "yes" ] && [ '!' -z "$INCREMENTAL" ] && echo "Incremental ......... $INCREMENTAL"
  7834 [ "$CFG_INCREMENTAL" = "yes" ] && [ '!' -z "$INCREMENTAL" ] && echo "Incremental ............ $INCREMENTAL"
  7438 echo "Build ............... $CFG_BUILD_PARTS"
  7835 echo "Build .................. $CFG_BUILD_PARTS"
  7439 echo "Configuration ....... $QMAKE_CONFIG $QT_CONFIG"
  7836 echo "Configuration .......... $QMAKE_CONFIG $QT_CONFIG"
  7440 if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
  7837 if [ "$CFG_DEBUG_RELEASE" = "yes" ]; then
  7441    echo "Debug ............... yes (combined)"
  7838    echo "Debug .................. yes (combined)"
  7442    if [ "$CFG_DEBUG" = "yes" ]; then
  7839    if [ "$CFG_DEBUG" = "yes" ]; then
  7443        echo "Default Link ........ debug"
  7840        echo "Default Link ........... debug"
  7444    else
  7841    else
  7445        echo "Default Link ........ release"
  7842        echo "Default Link ........... release"
  7446    fi
  7843    fi
  7447 else
  7844 else
  7448    echo "Debug ............... $CFG_DEBUG"
  7845    echo "Debug .................. $CFG_DEBUG"
  7449 fi
  7846 fi
  7450 echo "Qt 3 compatibility .. $CFG_QT3SUPPORT"
  7847 echo "Qt 3 compatibility ..... $CFG_QT3SUPPORT"
  7451 [ "$CFG_DBUS" = "no" ]     && echo "QtDBus module ....... no"
  7848 [ "$CFG_DBUS" = "no" ]     && echo "QtDBus module .......... no"
  7452 [ "$CFG_DBUS" = "yes" ]    && echo "QtDBus module ....... yes (run-time)"
  7849 [ "$CFG_DBUS" = "yes" ]    && echo "QtDBus module .......... yes (run-time)"
  7453 [ "$CFG_DBUS" = "linked" ] && echo "QtDBus module ....... yes (linked)"
  7850 [ "$CFG_DBUS" = "linked" ] && echo "QtDBus module .......... yes (linked)"
  7454 echo "QtConcurrent code.... $CFG_CONCURRENT"
  7851 echo "QtConcurrent code ...... $CFG_CONCURRENT"
  7455 echo "QtScript module ..... $CFG_SCRIPT"
  7852 echo "QtGui module ........... $CFG_GUI"
  7456 echo "QtScriptTools module  $CFG_SCRIPTTOOLS"
  7853 echo "QtScript module ........ $CFG_SCRIPT"
  7457 echo "QtXmlPatterns module  $CFG_XMLPATTERNS"
  7854 echo "QtScriptTools module ... $CFG_SCRIPTTOOLS"
  7458 echo "Phonon module ....... $CFG_PHONON"
  7855 echo "QtXmlPatterns module ... $CFG_XMLPATTERNS"
  7459 echo "Multimedia module ... $CFG_MULTIMEDIA"
  7856 echo "Phonon module .......... $CFG_PHONON"
  7460 echo "SVG module .......... $CFG_SVG"
  7857 echo "Multimedia module ...... $CFG_MULTIMEDIA"
  7461 echo "WebKit module ....... $CFG_WEBKIT"
  7858 echo "SVG module ............. $CFG_SVG"
       
  7859 echo "WebKit module .......... $CFG_WEBKIT"
  7462 if [ "$CFG_WEBKIT" = "yes" ]; then 
  7860 if [ "$CFG_WEBKIT" = "yes" ]; then 
  7463     if [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then
  7861     if [ "$CFG_JAVASCRIPTCORE_JIT" = "auto" ]; then
  7464         echo "JavaScriptCore JIT .. To be decided by JavaScriptCore"
  7862         echo "JavaScriptCore JIT ..... To be decided by JavaScriptCore"
  7465     else
  7863     else
  7466         echo "JavaScriptCore JIT .. $CFG_JAVASCRIPTCORE_JIT"
  7864         echo "JavaScriptCore JIT ..... $CFG_JAVASCRIPTCORE_JIT"
  7467     fi
  7865     fi
  7468 fi
  7866 fi
  7469 echo "Declarative module .. $CFG_DECLARATIVE"
  7867 echo "Declarative module ..... $CFG_DECLARATIVE"
  7470 echo "STL support ......... $CFG_STL"
  7868 echo "Support for S60 ........ $CFG_S60"
  7471 echo "PCH support ......... $CFG_PRECOMPILE"
  7869 echo "Symbian DEF files ...... $CFG_SYMBIAN_DEFFILES"
  7472 echo "MMX/3DNOW/SSE/SSE2..  ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}"
  7870 echo "STL support ............ $CFG_STL"
       
  7871 echo "PCH support ............ $CFG_PRECOMPILE"
       
  7872 echo "MMX/3DNOW/SSE/SSE2...... ${CFG_MMX}/${CFG_3DNOW}/${CFG_SSE}/${CFG_SSE2}"
  7473 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then
  7873 if [ "$CFG_ARCH" = "arm" ] || [ "$CFG_ARCH" = "armv6" ]; then
  7474     echo "iWMMXt support ...... ${CFG_IWMMXT}"
  7874     echo "iWMMXt support ......... ${CFG_IWMMXT}"
  7475     echo "NEON support ........ ${CFG_NEON}"
  7875     echo "NEON support ........... ${CFG_NEON}"
  7476 fi
  7876 fi
  7477 [ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ..... $CFG_GRAPHICS_SYSTEM"
  7877 [ "${PLATFORM_QWS}" != "yes" ] && echo "Graphics System ........ $CFG_GRAPHICS_SYSTEM"
  7478 echo "IPv6 support ........ $CFG_IPV6"
  7878 echo "IPv6 support ........... $CFG_IPV6"
  7479 echo "IPv6 ifname support . $CFG_IPV6IFNAME"
  7879 echo "IPv6 ifname support .... $CFG_IPV6IFNAME"
  7480 echo "getaddrinfo support . $CFG_GETADDRINFO"
  7880 echo "getaddrinfo support .... $CFG_GETADDRINFO"
  7481 echo "getifaddrs support .. $CFG_GETIFADDRS"
  7881 echo "getifaddrs support ..... $CFG_GETIFADDRS"
  7482 echo "Accessibility ....... $CFG_ACCESSIBILITY"
  7882 echo "Accessibility .......... $CFG_ACCESSIBILITY"
  7483 echo "NIS support ......... $CFG_NIS"
  7883 echo "NIS support ............ $CFG_NIS"
  7484 echo "CUPS support ........ $CFG_CUPS"
  7884 echo "CUPS support ........... $CFG_CUPS"
  7485 echo "Iconv support ....... $CFG_ICONV"
  7885 echo "Iconv support .......... $CFG_ICONV"
  7486 echo "Glib support ........ $CFG_GLIB"
  7886 echo "Glib support ........... $CFG_GLIB"
  7487 echo "GStreamer support ... $CFG_GSTREAMER"
  7887 echo "GStreamer support ...... $CFG_GSTREAMER"
  7488 echo "Large File support .. $CFG_LARGEFILE"
  7888 echo "PulseAudio support ..... $CFG_PULSEAUDIO"
  7489 echo "GIF support ......... $CFG_GIF"
  7889 echo "Large File support ..... $CFG_LARGEFILE"
       
  7890 echo "GIF support ............ $CFG_GIF"
  7490 if [ "$CFG_TIFF" = "no" ]; then
  7891 if [ "$CFG_TIFF" = "no" ]; then
  7491     echo "TIFF support ........ $CFG_TIFF"
  7892     echo "TIFF support ........... $CFG_TIFF"
  7492 else
  7893 else
  7493     echo "TIFF support ........ $CFG_TIFF ($CFG_LIBTIFF)"
  7894     echo "TIFF support ........... $CFG_TIFF ($CFG_LIBTIFF)"
  7494 fi
  7895 fi
  7495 if [ "$CFG_JPEG" = "no" ]; then
  7896 if [ "$CFG_JPEG" = "no" ]; then
  7496     echo "JPEG support ........ $CFG_JPEG"
  7897     echo "JPEG support ........... $CFG_JPEG"
  7497 else
  7898 else
  7498     echo "JPEG support ........ $CFG_JPEG ($CFG_LIBJPEG)"
  7899     echo "JPEG support ........... $CFG_JPEG ($CFG_LIBJPEG)"
  7499 fi
  7900 fi
  7500 if [ "$CFG_PNG" = "no" ]; then
  7901 if [ "$CFG_PNG" = "no" ]; then
  7501     echo "PNG support ......... $CFG_PNG"
  7902     echo "PNG support ............ $CFG_PNG"
  7502 else
  7903 else
  7503     echo "PNG support ......... $CFG_PNG ($CFG_LIBPNG)"
  7904     echo "PNG support ............ $CFG_PNG ($CFG_LIBPNG)"
  7504 fi
  7905 fi
  7505 if [ "$CFG_MNG" = "no" ]; then
  7906 if [ "$CFG_MNG" = "no" ]; then
  7506     echo "MNG support ......... $CFG_MNG"
  7907     echo "MNG support ............ $CFG_MNG"
  7507 else
  7908 else
  7508     echo "MNG support ......... $CFG_MNG ($CFG_LIBMNG)"
  7909     echo "MNG support ............ $CFG_MNG ($CFG_LIBMNG)"
  7509 fi
  7910 fi
  7510 echo "zlib support ........ $CFG_ZLIB"
  7911 echo "zlib support ........... $CFG_ZLIB"
  7511 echo "Session management .. $CFG_SM"
  7912 echo "Session management ..... $CFG_SM"
  7512 if [ "$PLATFORM_QWS" = "yes" ]; then
  7913 if [ "$PLATFORM_QWS" = "yes" ]; then
  7513     echo "Embedded support .... $CFG_EMBEDDED"
  7914     echo "Embedded support ....... $CFG_EMBEDDED"
  7514     if [ "$CFG_QWS_FREETYPE" = "auto" ]; then
  7915     if [ "$CFG_QWS_FREETYPE" = "auto" ]; then
  7515 	echo "Freetype2 support ... $CFG_QWS_FREETYPE ($CFG_LIBFREETYPE)"
  7916 	echo "Freetype2 support ...... $CFG_QWS_FREETYPE ($CFG_LIBFREETYPE)"
  7516     else
  7917     else
  7517 	echo "Freetype2 support ... $CFG_QWS_FREETYPE"
  7918 	echo "Freetype2 support ...... $CFG_QWS_FREETYPE"
  7518     fi
  7919     fi
  7519     # Normalize the decoration output first
  7920     # Normalize the decoration output first
  7520     CFG_GFX_ON=`echo ${CFG_GFX_ON}`
  7921     CFG_GFX_ON=`echo ${CFG_GFX_ON}`
  7521     CFG_GFX_PLUGIN=`echo ${CFG_GFX_PLUGIN}`
  7922     CFG_GFX_PLUGIN=`echo ${CFG_GFX_PLUGIN}`
  7522     echo "Graphics (qt) ....... ${CFG_GFX_ON}"
  7923     echo "Graphics (qt) .......... ${CFG_GFX_ON}"
  7523     echo "Graphics (plugin) ... ${CFG_GFX_PLUGIN}"
  7924     echo "Graphics (plugin) ...... ${CFG_GFX_PLUGIN}"
  7524     CFG_DECORATION_ON=`echo ${CFG_DECORATION_ON}`
  7925     CFG_DECORATION_ON=`echo ${CFG_DECORATION_ON}`
  7525     CFG_DECORATION_PLUGIN=`echo ${CFG_DECORATION_PLUGIN}`
  7926     CFG_DECORATION_PLUGIN=`echo ${CFG_DECORATION_PLUGIN}`
  7526     echo "Decorations (qt) .... $CFG_DECORATION_ON"
  7927     echo "Decorations (qt) ....... $CFG_DECORATION_ON"
  7527     echo "Decorations (plugin)  $CFG_DECORATION_PLUGIN"
  7928     echo "Decorations (plugin) ... $CFG_DECORATION_PLUGIN"
  7528     CFG_KBD_ON=`echo ${CFG_KBD_ON}`
  7929     CFG_KBD_ON=`echo ${CFG_KBD_ON}`
  7529     CFG_KBD_PLUGIN=`echo ${CFG_KBD_PLUGIN}`
  7930     CFG_KBD_PLUGIN=`echo ${CFG_KBD_PLUGIN}`
  7530     echo "Keyboard driver (qt). ${CFG_KBD_ON}"
  7931     echo "Keyboard driver (qt) ... ${CFG_KBD_ON}"
  7531     echo "Keyboard driver (plugin) ${CFG_KBD_PLUGIN}"
  7932     echo "Keyboard driver (plugin) .. ${CFG_KBD_PLUGIN}"
  7532     CFG_MOUSE_ON=`echo ${CFG_MOUSE_ON}`
  7933     CFG_MOUSE_ON=`echo ${CFG_MOUSE_ON}`
  7533     CFG_MOUSE_PLUGIN=`echo ${CFG_MOUSE_PLUGIN}`
  7934     CFG_MOUSE_PLUGIN=`echo ${CFG_MOUSE_PLUGIN}`
  7534     echo "Mouse driver (qt) ... $CFG_MOUSE_ON"
  7935     echo "Mouse driver (qt) ...... $CFG_MOUSE_ON"
  7535     echo "Mouse driver (plugin) $CFG_MOUSE_PLUGIN"
  7936     echo "Mouse driver (plugin) .. $CFG_MOUSE_PLUGIN"
  7536 fi
  7937 fi
  7537 if [ "$CFG_OPENGL" = "desktop" ]; then
  7938 if [ "$CFG_OPENGL" = "desktop" ]; then
  7538     echo "OpenGL support ...... yes (Desktop OpenGL)"
  7939     echo "OpenGL support ......... yes (Desktop OpenGL)"
  7539 elif [ "$CFG_OPENGL" = "es1" ]; then
  7940 elif [ "$CFG_OPENGL" = "es1" ]; then
  7540     echo "OpenGL support ...... yes (OpenGL ES 1.x Common profile)"
  7941     echo "OpenGL support ......... yes (OpenGL ES 1.x Common profile)"
  7541 elif [ "$CFG_OPENGL" = "es1cl" ]; then
       
  7542     echo "OpenGL support ...... yes (OpenGL ES 1.x Common Lite profile)"
       
  7543 elif [ "$CFG_OPENGL" = "es2" ]; then
  7942 elif [ "$CFG_OPENGL" = "es2" ]; then
  7544     echo "OpenGL support ...... yes (OpenGL ES 2.x)"
  7943     echo "OpenGL support ......... yes (OpenGL ES 2.x)"
  7545 else
  7944 else
  7546     echo "OpenGL support ...... no"
  7945     echo "OpenGL support ......... no"
  7547 fi
  7946 fi
  7548 if [ "$CFG_EGL" != "no" ]; then
  7947 if [ "$CFG_EGL" != "no" ]; then
  7549     if [ "$CFG_EGL_GLES_INCLUDES" != "no" ]; then
  7948     if [ "$CFG_EGL_GLES_INCLUDES" != "no" ]; then
  7550         echo "EGL support ......... yes <GLES/egl.h>"
  7949         echo "EGL support ............ yes <GLES/egl.h>"
  7551     else
  7950     else
  7552         echo "EGL support ......... yes <EGL/egl.h>"
  7951         echo "EGL support ............ yes <EGL/egl.h>"
  7553     fi
  7952     fi
  7554 fi
  7953 fi
  7555 if [ "$CFG_OPENVG" ]; then
  7954 if [ "$CFG_OPENVG" ]; then
  7556     if [ "$CFG_OPENVG_SHIVA" = "yes" ]; then
  7955     if [ "$CFG_OPENVG_SHIVA" = "yes" ]; then
  7557         echo "OpenVG support ...... ShivaVG"
  7956         echo "OpenVG support ......... ShivaVG"
  7558     else
  7957     else
  7559         echo "OpenVG support ...... $CFG_OPENVG"
  7958         echo "OpenVG support ......... $CFG_OPENVG"
  7560     fi
  7959     fi
  7561 fi
  7960 fi
  7562 if [ "$PLATFORM_X11" = "yes" ]; then
  7961 if [ "$PLATFORM_X11" = "yes" ]; then
  7563     echo "NAS sound support ... $CFG_NAS"
  7962     echo "NAS sound support ...... $CFG_NAS"
  7564     echo "XShape support ...... $CFG_XSHAPE"
  7963     echo "XShape support ......... $CFG_XSHAPE"
  7565     echo "XSync support ....... $CFG_XSYNC"
  7964     echo "XVideo support ......... $CFG_XVIDEO"
  7566     echo "Xinerama support .... $CFG_XINERAMA"
  7965     echo "XSync support .......... $CFG_XSYNC"
  7567     echo "Xcursor support ..... $CFG_XCURSOR"
  7966     echo "Xinerama support ....... $CFG_XINERAMA"
  7568     echo "Xfixes support ...... $CFG_XFIXES"
  7967     echo "Xcursor support ........ $CFG_XCURSOR"
  7569     echo "Xrandr support ...... $CFG_XRANDR"
  7968     echo "Xfixes support ......... $CFG_XFIXES"
  7570     echo "Xrender support ..... $CFG_XRENDER"
  7969     echo "Xrandr support ......... $CFG_XRANDR"
  7571     echo "Xi support .......... $CFG_XINPUT"
  7970     echo "Xrender support ........ $CFG_XRENDER"
  7572     echo "MIT-SHM support ..... $CFG_MITSHM"
  7971     echo "Xi support ............. $CFG_XINPUT"
  7573     echo "FontConfig support .. $CFG_FONTCONFIG"
  7972     echo "MIT-SHM support ........ $CFG_MITSHM"
  7574     echo "XKB Support ......... $CFG_XKB"
  7973     echo "FontConfig support ..... $CFG_FONTCONFIG"
  7575     echo "immodule support .... $CFG_IM"
  7974     echo "XKB Support ............ $CFG_XKB"
  7576     echo "GTK theme support ... $CFG_QGTKSTYLE"
  7975     echo "immodule support ....... $CFG_IM"
  7577 fi
  7976     echo "GTK theme support ...... $CFG_QGTKSTYLE"
  7578 [ "$CFG_SQL_mysql" != "no" ] && echo "MySQL support ....... $CFG_SQL_mysql"
  7977 fi
  7579 [ "$CFG_SQL_psql" != "no" ] && echo "PostgreSQL support .. $CFG_SQL_psql"
  7978 [ "$CFG_SQL_mysql" != "no" ] && echo "MySQL support .......... $CFG_SQL_mysql"
  7580 [ "$CFG_SQL_odbc" != "no" ] && echo "ODBC support ........ $CFG_SQL_odbc"
  7979 [ "$CFG_SQL_psql" != "no" ] && echo "PostgreSQL support ..... $CFG_SQL_psql"
  7581 [ "$CFG_SQL_oci" != "no" ] && echo "OCI support ......... $CFG_SQL_oci"
  7980 [ "$CFG_SQL_odbc" != "no" ] && echo "ODBC support ........... $CFG_SQL_odbc"
  7582 [ "$CFG_SQL_tds" != "no" ] && echo "TDS support ......... $CFG_SQL_tds"
  7981 [ "$CFG_SQL_oci" != "no" ] && echo "OCI support ............ $CFG_SQL_oci"
  7583 [ "$CFG_SQL_db2" != "no" ] && echo "DB2 support ......... $CFG_SQL_db2"
  7982 [ "$CFG_SQL_tds" != "no" ] && echo "TDS support ............ $CFG_SQL_tds"
  7584 [ "$CFG_SQL_ibase" != "no" ] && echo "InterBase support ... $CFG_SQL_ibase"
  7983 [ "$CFG_SQL_db2" != "no" ] && echo "DB2 support ............ $CFG_SQL_db2"
  7585 [ "$CFG_SQL_sqlite2" != "no" ] && echo "SQLite 2 support .... $CFG_SQL_sqlite2"
  7984 [ "$CFG_SQL_ibase" != "no" ] && echo "InterBase support ...... $CFG_SQL_ibase"
  7586 [ "$CFG_SQL_sqlite" != "no" ] && echo "SQLite support ...... $CFG_SQL_sqlite ($CFG_SQLITE)"
  7985 [ "$CFG_SQL_sqlite2" != "no" ] && echo "SQLite 2 support ....... $CFG_SQL_sqlite2"
       
  7986 [ "$CFG_SQL_sqlite" != "no" ] && echo "SQLite support ......... $CFG_SQL_sqlite ($CFG_SQLITE)"
  7587 
  7987 
  7588 OPENSSL_LINKAGE=""
  7988 OPENSSL_LINKAGE=""
  7589 if [ "$CFG_OPENSSL" = "yes" ]; then
  7989 if [ "$CFG_OPENSSL" = "yes" ]; then
  7590     OPENSSL_LINKAGE="(run-time)"
  7990     OPENSSL_LINKAGE="(run-time)"
  7591 elif [ "$CFG_OPENSSL" = "linked" ]; then
  7991 elif [ "$CFG_OPENSSL" = "linked" ]; then
  7592     OPENSSL_LINKAGE="(linked)"
  7992     OPENSSL_LINKAGE="(linked)"
  7593 fi
  7993 fi
  7594 echo "OpenSSL support ..... $CFG_OPENSSL $OPENSSL_LINKAGE"
  7994 echo "OpenSSL support ........ $CFG_OPENSSL $OPENSSL_LINKAGE"
  7595 echo "Alsa support ........ $CFG_ALSA"
  7995 echo "Alsa support ........... $CFG_ALSA"
       
  7996 if [ "$PLATFORM_MAC" = "yes" ]; then
       
  7997     echo "CoreWlan support ....... $CFG_COREWLAN"
       
  7998 fi
       
  7999 echo "ICD support ............ $CFG_ICD"
  7596 echo
  8000 echo
  7597 
  8001 
  7598 [ "$CFG_PTMALLOC" != "no" ] && echo "Use ptmalloc ........ $CFG_PTMALLOC"
  8002 [ "$CFG_PTMALLOC" != "no" ] && echo "Use ptmalloc ........... $CFG_PTMALLOC"
  7599 
  8003 
  7600 # complain about not being able to use dynamic plugins if we are using a static build
  8004 # complain about not being able to use dynamic plugins if we are using a static build
  7601 if [ "$CFG_SHARED" = "no" ]; then
  8005 if [ "$CFG_SHARED" = "no" ]; then
  7602     echo
  8006     echo
  7603     echo "WARNING: Using static linking will disable the use of dynamically"
  8007     echo "WARNING: Using static linking will disable the use of dynamically"
  7613     echo "    ./configure -openssl-linked OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'"
  8017     echo "    ./configure -openssl-linked OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'"
  7614     echo
  8018     echo
  7615 fi
  8019 fi
  7616 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "no" ]; then
  8020 if [ "$PLATFORM_MAC" = "yes" ] && [ "$CFG_FRAMEWORK" = "yes" ] && [ "$CFG_DEBUG" = "yes" ] && [ "$CFG_DEBUG_RELEASE" = "no" ]; then
  7617     echo
  8021     echo
  7618     echo "NOTE: Mac OS X frameworks implicitly build debug and release Qt libraries."
  8022     echo "Error: debug-only framework builds are not supported. Configure with -no-framework"
       
  8023     echo "if you want a pure debug build."
  7619     echo
  8024     echo
       
  8025     exit 1
  7620 fi
  8026 fi
  7621 
  8027 
  7622 sepath=`echo "$relpath" | sed -e 's/\\./\\\\./g'`
  8028 sepath=`echo "$relpath" | sed -e 's/\\./\\\\./g'`
  7623 PROCS=1
  8029 PROCS=1
  7624 EXEC=""
  8030 EXEC=""
  7845     done
  8251     done
  7846 done
  8252 done
  7847 rm -f .projects .projects.3
  8253 rm -f .projects .projects.3
  7848 
  8254 
  7849 #-------------------------------------------------------------------------------
  8255 #-------------------------------------------------------------------------------
  7850 # XShape is important, DnD in the Designer doens't work without it
       
  7851 #-------------------------------------------------------------------------------
       
  7852 if [ "$PLATFORM_X11" = "yes" ] && [ "$CFG_XSHAPE" = "no" ]; then
       
  7853     cat <<EOF
       
  7854 
       
  7855 	NOTICE: Qt will not be built with XShape support.
       
  7856 
       
  7857 	As a result, drag-and-drop in the Qt Designer will NOT
       
  7858 	work. We recommend that you enable XShape support by passing
       
  7859 	the -xshape switch to $0.
       
  7860 EOF
       
  7861 fi
       
  7862 
       
  7863 #-------------------------------------------------------------------------------
       
  7864 # check for platforms that we don't yet know about
  8256 # check for platforms that we don't yet know about
  7865 #-------------------------------------------------------------------------------
  8257 #-------------------------------------------------------------------------------
  7866 if [ "$CFG_ARCH" = "generic" ]; then
  8258 if [ "$CFG_ARCH" = "generic" ]; then
  7867 cat <<EOF
  8259 cat <<EOF
  7868 
  8260