summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure74
1 files changed, 20 insertions, 54 deletions
diff --git a/configure b/configure
index aa8d047ead..6c504844fb 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
#!/bin/sh
#############################################################################
##
-## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+## Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
## All rights reserved.
## Contact: Nokia Corporation (qt-info@nokia.com)
##
@@ -185,27 +185,11 @@ fi
#-------------------------------------------------------------------------------
PLATFORM_X11=no
-PLATFORM_MAC=no
-PLATFORM_QWS=no
-
-if [ -f "$relpath"/src/gui/kernel/qapplication_mac.mm ] && [ -d /System/Library/Frameworks/Carbon.framework ]; then
- # Qt/Mac
- # ~ the Carbon SDK exists
- # ~ src/gui/base/qapplication_mac.cpp is present
- # ~ this is the internal edition and Qt/Mac sources exist
+PLATFORM_QWS=maybe
+if [ -d /System/Library/Frameworks/Carbon.framework ]; then
PLATFORM_MAC=maybe
-elif [ -f "$relpath"/src/gui/kernel/qapplication_qws.cpp ]; then
- # Qt Embedded
- # ~ src/gui/base/qapplication_qws.cpp is present
- # ~ this is the free or commercial edition
- # ~ this is the internal edition and Qt Embedded is explicitly enabled
- if [ -f "$relpath"/src/gui/kernel/qapplication_mac.mm ]; then
- # This is a depot build, or an all-platforms package
- PLATFORM_QWS=maybe
- else
- # This must be the embedded package, since the Qt/Mac source files are not present
- PLATFORM_QWS=yes
- fi
+else
+ PLATFORM_MAC=no
fi
#-----------------------------------------------------------------------------
@@ -314,16 +298,9 @@ earlyArgParse()
case "$VAR" in
embedded)
CFG_EMBEDDED="$VAL"
- if [ "$PLATFORM_QWS" != "no" ]; then
- if [ "$PLATFORM_QWS" = "maybe" ]; then
- PLATFORM_X11=no
- PLATFORM_MAC=no
- PLATFORM_QWS=yes
- fi
- else
- echo "No license exists to enable Qt for Embedded Linux. Disabling."
- CFG_EMBEDDED=no
- fi
+ PLATFORM_X11=no
+ PLATFORM_MAC=no
+ PLATFORM_QWS=yes
;;
developer-build)
CFG_DEV="yes"
@@ -962,7 +939,7 @@ while [ "$#" -gt 0 ]; do
VAL=no
;;
#Qt style yes options
- -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|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles)
+ -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|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles)
VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
VAL=yes
;;
@@ -1235,16 +1212,9 @@ while [ "$#" -gt 0 ]; do
;;
embedded)
CFG_EMBEDDED="$VAL"
- if [ "$PLATFORM_QWS" != "no" ]; then
- if [ "$PLATFORM_QWS" = "maybe" ]; then
- PLATFORM_X11=no
- PLATFORM_MAC=no
- PLATFORM_QWS=yes
- fi
- else
- echo "No license exists to enable Qt for Embedded Linux. Disabling."
- CFG_EMBEDDED=no
- fi
+ PLATFORM_X11=no
+ PLATFORM_MAC=no
+ PLATFORM_QWS=yes
;;
sse)
if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
@@ -1349,14 +1319,8 @@ while [ "$#" -gt 0 ]; do
CFG_BUILD_PARTS="$CFG_BUILD_PARTS $VAL"
;;
x11)
- if [ "$PLATFORM_MAC" = "yes" ]; then
- PLATFORM_MAC=no
- elif [ "$PLATFORM_QWS" = "yes" ]; then
- PLATFORM_QWS=no
- fi
- if [ "$CFG_FRAMEWORK" = "auto" ]; then
- CFG_FRAMEWORK=no
- fi
+ PLATFORM_MAC=no
+ PLATFORM_QWS=no
PLATFORM_X11=yes
;;
sdk)
@@ -3560,7 +3524,7 @@ Usage: $relconf [-h] [-prefix <dir>] [-prefix-install] [-bindir <dir>] [-libdir
[-no-gtkstyle] [-gtkstyle] [-no-svg] [-svg] [-no-webkit] [-webkit] [-webkit-debug]
[-no-javascript-jit] [-javascript-jit]
[-no-script] [-script] [-no-scripttools] [-scripttools]
- [-no-declarative] [-declarative][-no-declarative-debug] [-declarative-debug]
+ [-no-declarative] [-declarative] [-no-declarative-debug] [-declarative-debug]
[additional platform specific options (see below)]
@@ -4560,9 +4524,9 @@ if [ -n "$PERL" ] && [ -x "$relpath/bin/syncqt" ]; then
SYNCQT_OPTS=
[ "$CFG_DEV" = "yes" ] && SYNCQT_OPTS="$SYNCQT_OPTS -check-includes"
if [ "$OPT_SHADOW" = "yes" ]; then
- "$outpath/bin/syncqt" $SYNCQT_OPTS
+ "$outpath/bin/syncqt" $SYNCQT_OPTS || exit 1
elif [ "$CFG_DEV" = "yes" ] || [ ! -d $relpath/include ] || [ -d $relpath/.git ]; then
- QTDIR="$relpath" perl "$outpath/bin/syncqt" $SYNCQT_OPTS
+ QTDIR="$relpath" perl "$outpath/bin/syncqt" $SYNCQT_OPTS || exit 1
fi
fi
@@ -8261,7 +8225,9 @@ if [ "$CFG_WEBKIT" != "no" ]; then
fi
fi
echo "Declarative module ..... $CFG_DECLARATIVE"
-echo "Declarative debugging ...$CFG_DECLARATIVE_DEBUG"
+if [ "$CFG_DECLARATIVE" = "yes" ]; then
+ echo "Declarative debugging ...$CFG_DECLARATIVE_DEBUG"
+fi
echo "Support for S60 ........ $CFG_S60"
echo "Symbian DEF files ...... $CFG_SYMBIAN_DEFFILES"
echo "STL support ............ $CFG_STL"