summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-12-29 23:07:14 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-12-29 23:46:25 +0300
commit1314037cd7abb8e403deb0946ef9f553d0ccf903 (patch)
tree7fad2f3c05766dcb9e3fa816e2acd6d84961806f
parent0b8194043a40b7c19ccfc206f6f3ffea69f39ce3 (diff)
downloadtqt-fix/configure-compiler-posix.tar.gz
tqt-fix/configure-compiler-posix.zip
configure: make compiler detection POSIX-compliantfix/configure-compiler-posix
The sed invocation previously introduced in 854c5d5c9 was using GNU extensions. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index a6faff12c..9d8768d44 100755
--- a/configure
+++ b/configure
@@ -1999,7 +1999,7 @@ fi
# Check C++ standard support
# Note: the commands work for both g++ and clang
# -----------------------------------------------------------------------------
-COMPILER=`sed -n '/^\s*QMAKE_CXX\s*=\s*/{s///;s/\s*$//;p;q}' $QMAKESPEC/qmake.conf`
+COMPILER=`sed -n 's,^QMAKE_CXX *= *\([^ ]*\).*,\1,p' $QMAKESPEC/qmake.conf`
CXX_REQ_STD=17
CXX_REQ_STD_MACRO=201703L
CXX_STD_FLAG=""