clang version in configure output without spaces

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 7 April 2019 12:54 EDT

Call me pedantic.

Change-Id: I96b8b7ef511508da0df75589475eaf13d639a7c9 Reviewed-on: https://gerrit.libreoffice.org/70365

###

diff --git a/configure.ac b/configure.ac
index befe75bbac3a..457511f063c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3636,7 +3636,7 @@ if test "$COM_IS_CLANG" = TRUE; then
else
my_args="-E -P"
fi
- clang_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CC_PLAIN $my_args -`
+ clang_version=`echo __clang_major__.__clang_minor__.__clang_patchlevel__ | $CC_PLAIN $my_args - | sed 's/ //g'`
CLANGVER=`echo $clang_version \
| $AWK -F. '{ print \$1*10000+(\$2<100?\$2:99)*100+(\$3<100?\$3:99) }'`
if test "$CLANGVER" -ge 50002; then

c51b68ddd938 clang version in configure output without spaces
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share