subsurface-configure.pri: pkg-config detection change

This is a small change, but it seems to work as expected on both
Linux and Win32. What happens if 2> NUL > NUL is used on Win32
for cmd.exe is that the output of both stdout and stderr seems
to pipe into NUL and pkg-config is always reported as missing.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2013-10-10 01:18:48 +03:00 committed by Dirk Hohndel
parent 9a37d64826
commit a3ee9a1142

View file

@ -28,7 +28,8 @@ CONFIG += exceptions_off
# Check if we have pkg-config
equals($$QMAKE_HOST.os, "Windows"):NUL=NUL
else:NUL=/dev/null
system(pkg-config --version 2>$$NUL >$$NUL) {
PKG_CONFIG_OUT = $$system(pkg-config --version 2> $$NUL)
!isEmpty(PKG_CONFIG_OUT) {
CONFIG += link_pkgconfig
} else {
message("pkg-config not found, no detection performed. See README for details")