configure: fix --cpu=host with gcc 4.6
authorMans Rullgard <mans@mansr.com>
Sun, 10 Jul 2011 15:17:55 +0000 (16:17 +0100)
committerMans Rullgard <mans@mansr.com>
Sun, 10 Jul 2011 16:56:06 +0000 (17:56 +0100)
The output from -v with gcc 4.6 has changed such that the search
pattern matches too soon without making it more strict.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index f5b4a5c..02bcd09 100755 (executable)
--- a/configure
+++ b/configure
@@ -2103,7 +2103,7 @@ if test "$cpu" = host; then
         gcc|llvm_gcc)
             check_native(){
                 $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
-                sed -n "/$1=/{
+                sed -n "/cc1.*$1=/{
                             s/.*$1=\\([^ ]*\\).*/\\1/
                             p
                             q