From: Jan-Arve Saether Date: Tue, 21 Aug 2012 09:52:28 +0000 (+0200) Subject: Fix bug in configure where Qt did not compile with QT_ICONV=no X-Git-Tag: v5.0.0-beta1~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80462ee67848c68697d06fdf859dbcad99838f5b;p=profile%2Fivi%2Fqtbase.git Fix bug in configure where Qt did not compile with QT_ICONV=no It did not compile because at the time qconfig.h was preprocessed, QT_NO_ICONV was already defined, causing the #define QT_NO_ICONV to fail. It should be guarded like most other defines in qconfig.h. Also fix QT_CUPS=no, QT_ICONV=no, QT_GLIB=no, QT_NOTIFY=no and QT_LARGEFILE_SUPPORT=64 the same way. Change-Id: Ic9e0295756c35cb7c62e18eb9b63b1410e7de051 Reviewed-by: Oswald Buddenhagen --- diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 2d80325..7fc1c62 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -3139,26 +3139,16 @@ void Configure::generateConfigfiles() else qconfigList += "QT_NO_NIS"; - if (dictionary["LARGE_FILE"] == "yes") - tmpStream << "#define QT_LARGEFILE_SUPPORT 64" << endl; - + if (dictionary["LARGE_FILE"] == "yes") qconfigList += "QT_LARGEFILE_SUPPORT=64"; + if (dictionary["QT_CUPS"] == "no") qconfigList += "QT_NO_CUPS"; + if (dictionary["QT_ICONV"] == "no") qconfigList += "QT_NO_ICONV"; + if (dictionary["QT_GLIB"] == "no") qconfigList += "QT_NO_GLIB"; + if (dictionary["QT_INOTIFY"] == "no") qconfigList += "QT_NO_INOTIFY"; qconfigList.sort(); for (int i = 0; i < qconfigList.count(); ++i) tmpStream << addDefine(qconfigList.at(i)); - if (dictionary[ "QT_CUPS" ] == "no") - tmpStream<<"#define QT_NO_CUPS"<