[Libreoffice-commits] core.git: configure.ac

Lionel Elie Mamane lionel at mamane.lu
Fri Aug 9 01:06:42 PDT 2013


 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b2206a1fc214105403c3f72c36fa769206b134cf
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Fri Aug 9 10:04:56 2013 +0200

    more extreme gcc --version parsing
    
    Change-Id: I5bb195e54274d9210ae8d4c2d31690ce8e79a425

diff --git a/configure.ac b/configure.ac
index 7f9b408..7dc6252 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2929,7 +2929,7 @@ dnl  Test the gcc version
 dnl ===================================================================
 if test "$GCC" = "yes"; then
     AC_MSG_CHECKING([the GCC version])
-    _gcc_version=`$CC --version|head -n1|sed -e 's/^.* //g' -e 's/-[[0-9]]*)$//'`
+    _gcc_version=$($CC --version|head -n1|sed -e 's/^.*[^[:digit:]]\(\([[:digit:]]\+\.\)\{2\}[[:digit:]]\+\).*/\1/')
     _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
     GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
 


More information about the Libreoffice-commits mailing list