tony2001                Fri May 23 19:10:01 2008 UTC

  Modified files:              
    /php-src    configure.in 
  Log:
  improve regexp to support b0rked SED versions (i.e. Solaris)
  
  
http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.653&r2=1.654&diff_format=u
Index: php-src/configure.in
diff -u php-src/configure.in:1.653 php-src/configure.in:1.654
--- php-src/configure.in:1.653  Tue Apr 15 16:31:15 2008
+++ php-src/configure.in        Fri May 23 19:10:01 2008
@@ -1,4 +1,4 @@
-## $Id: configure.in,v 1.653 2008/04/15 16:31:15 gwynne Exp $ -*- autoconf -*-
+## $Id: configure.in,v 1.654 2008/05/23 19:10:01 tony2001 Exp $ -*- autoconf 
-*-
 dnl ## Process this file with autoconf to produce a configure script.
 
 divert(1)
@@ -215,7 +215,7 @@
     GCC_MAJOR_VERSION=`$CC -dumpversion | /usr/bin/sed -nE 
'1s/([[0-9]]+)\.[[0-9]]+\..*/\1/;1p'`
     ;;
   *)
-    GCC_MAJOR_VERSION=`$CC --version | $SED -n 
'1s/[[^0-9]]*\([[0-9]]\+\)\.[[0-9]]\+\..*/\1/;1p'`
+    GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[[^0-9]]*//;1s/\..*//;1p'`
     ;;
   esac
   if test $GCC_MAJOR_VERSION -ge 4; then



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to