Commit 51ff3e05 authored by mru's avatar mru

configure: fix --cpu=host

The awk command used inadvertently relied on non-standard features.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21376 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b859137f
......@@ -1783,7 +1783,11 @@ if test "$cpu" = host; then
gcc)
check_native(){
$cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
awk "/$1=/{ match(\$0, /$1=(\\w+)/, a);print a[1];exit }" $TMPE
sed -n "/$1=/{
s/.*$1=\\([^ ]*\\).*/\\1/
p
q
}" $TMPE
}
cpu=$(check_native -march || check_native -mcpu)
;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment