diff -ur ooo_1.1.3_src.orig/config_office/configure ooo_1.1.3_src/config_office/configure
--- ooo_1.1.3_src.orig/config_office/configure	2004-08-20 17:50:39.000000000 +0200
+++ ooo_1.1.3_src/config_office/configure	2004-08-20 17:53:55.000000000 +0200
@@ -3276,17 +3276,15 @@
       COMPATH=`echo $_cc | $SED -n "s/\/cc//p"`
       echo "$as_me:$LINENO: checking the SUN Workshop C compiler version" >&5
 echo $ECHO_N "checking the SUN Workshop C compiler version... $ECHO_C" >&6
-            _workshop_version=`$CC -V 2>&1 | $AWK '/^cc/ { print $7 }'`
-      if test "$_workshop_version" = "C"; then
-         _workshop_version=`$CC -V 2>&1 | $AWK '/^cc/ { print $8 }'`
-      fi
+            _workshop_string=`$CC -V 2>&1 | grep '^cc' | sed -e 's/.* C //'`
+      _workshop_version=`echo $_workshop_string | $AWK '{ print $1 }'`
       _workshop_major=`echo $_workshop_version | $AWK -F. '{ print $1 }'`
       if test "$_workshop_major" != "5"; then
          { { echo "$as_me:$LINENO: error: found version \"$_workshop_version\", use version 5.0 or 5.2 of the Sun Workshop C compiler" >&5
 echo "$as_me: error: found version \"$_workshop_version\", use version 5.0 or 5.2 of the Sun Workshop C compiler" >&2;}
    { (exit 1); exit 1; }; }
       else
-         _workshop_minor=`echo $_workshop_version | $AWK -F. '{ if ($2 == 0) print "true"; else if ($2 == 2) print "true"; else print "false" }'`
+         _workshop_minor=`echo $_workshop_version | $AWK -F. '{ if ($2 == 0) print "true"; else if ($2 == 2) print "true"; else if ($2 == 5) print "true"; else print "false" }'`
          if test "$_workshop_minor" = "false"; then
             { { echo "$as_me:$LINENO: error: found version \"$_workshop_version\", use version 5.0 or 5.2 of the Sun Workshop C compiler" >&5
 echo "$as_me: error: found version \"$_workshop_version\", use version 5.0 or 5.2 of the Sun Workshop C compiler" >&2;}
