diff options
author | Tobias Koenig <tobias.koenig@kdab.com> | 2014-12-22 10:27:53 +0100 |
---|---|---|
committer | Tobias Koenig <tobias.koenig@kdab.com> | 2015-01-09 10:58:42 +0100 |
commit | c3e50db19990c5b1d9088c4418e2804560d35582 (patch) | |
tree | 0d73692b91bc17c90edcc60cae43cf55dc30fb05 /configure | |
parent | 3d17b73377b4dbab9cc0b989cae44c1791cb726c (diff) |
Add a configure-time check for an IPC support
Adds a configure check for System V and POSIX IPC.
System V takes precedence over POSIX IPC, and if both
are not supported, QT_NO_SHAREDMEMORY and
QT_NO_SYSTEMSEMAPHORE are defined.
This patch is a forward-port from 4.8 branch
(6ef4abaa9cd7d465cbae5cbf8cb4664bef387d10).
Change-Id: I3ec20342f0f0266843479634109b67c6989dd296
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -4310,6 +4310,18 @@ fi [ "$XPLATFORM_MINGW" = "yes" ] && QMakeVar add styles "windowsxp windowsvista" [ "$XPLATFORM_ANDROID" = "yes" ] && QMakeVar add styles "android" +# check IPC support +if ! compileTest unix/ipc_sysv "ipc_sysv" ; then + # SYSV IPC is not supported - check POSIX IPC + if compileTest unix/ipc_posix "ipc_posix" ; then + QCONFIG_FLAGS="$QCONFIG_FLAGS QT_POSIX_IPC" + else + if [ "$XPLATFORM_ANDROID" = "no" ] ; then + QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_SYSTEMSEMAPHORE QT_NO_SHAREDMEMORY" + fi + fi +fi + # detect zlib if [ "$CFG_ZLIB" = "no" ]; then # Note: Qt no longer support builds without zlib |