diff --git a/configure b/configure index 86b92f94..e3d15e3f 100755 --- a/configure +++ b/configure @@ -171,7 +171,7 @@ QT_INSTALL_PLUGINS= QT_INSTALL_DATA= QT_INSTALL_TRANSLATIONS= QT_INSTALL_SYSCONF= - +QT_INSTALL_SHARE= #------------------------------------------------------------------------------- # check SQL drivers and styles available in this package @@ -241,7 +241,7 @@ while [ "$#" -gt 0 ]; do UNKNOWN_ARG=yes fi ;; - -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey) + -prefix|-sysshare|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey) VAR=`echo $1 | sed "s,^-\(.*\),\1,"` shift VAL=$1 @@ -371,6 +371,9 @@ while [ "$#" -gt 0 ]; do sysconfdir) QT_INSTALL_SYSCONF="$VAL" ;; + sysshare) + QT_INSTALL_SHARE="$VAL" + ;; qconfig) CFG_QCONFIG="$VAL" ;; @@ -940,6 +943,8 @@ done [ -z "$QT_INSTALL_TRANSLATIONS" ] && QT_INSTALL_TRANSLATIONS=$QT_INSTALL_PREFIX/translations # default PREFIX/etc/settings [ -z "$QT_INSTALL_SYSCONF" ] && QT_INSTALL_SYSCONF=$QT_INSTALL_PREFIX/etc/settings +# default PREFIX/share +[ -z "$QT_INSTALL_SHARE" ] && QT_INSTALL_SHARE=$QT_INSTALL_PREFIX/share # generate qconfig.cpp [ -d $outpath/src/tools ] || mkdir -p $outpath/src/tools @@ -956,6 +961,7 @@ static const char QT_INSTALL_PLUGINS [267] = "qt_plgpath=$QT_INSTALL_PLUGINS static const char QT_INSTALL_DATA [267] = "qt_datpath=$QT_INSTALL_DATA"; static const char QT_INSTALL_TRANSLATIONS[267] = "qt_trnpath=$QT_INSTALL_TRANSLATIONS"; static const char QT_INSTALL_SYSCONF [267] = "qt_cnfpath=$QT_INSTALL_SYSCONF"; +static const char QT_INSTALL_SHARE [267] = "qt_shapath=$QT_INSTALL_SHARE"; /* strlen( "qt_xxxpath=" ) == 11 */ const char *tqInstallPath() { return QT_INSTALL_PREFIX + 11; } @@ -967,6 +973,7 @@ const char *tqInstallPathPlugins() { return QT_INSTALL_PLUGINS + 11; } const char *tqInstallPathData() { return QT_INSTALL_DATA + 11; } const char *tqInstallPathTranslations() { return QT_INSTALL_TRANSLATIONS + 11; } const char *tqInstallPathSysconf() { return QT_INSTALL_SYSCONF + 11; } +const char *tqInstallPathShare() { return QT_INSTALL_SHARE + 11; } EOF # avoid unecessary rebuilds by copying only if qconfig.cpp has changed @@ -1851,7 +1858,7 @@ if [ "$OPT_HELP" = "yes" ]; then cat <