Ticket #325: mplayer-x86_64-detection.2.patch

File mplayer-x86_64-detection.2.patch, 581 bytes (added by pawel@…, 21 years ago)

A sed-based solution

  • MPlayer-1.0pre7/configure

    old new  
    472472      i[3-9]86*|x86|x86pc|k5|k6|k6_2|k6_3|k6-2|k6-3|pentium*|athlon*|i586_i686|i586-i686|BePC) host_arch=i386 ;;
    473473      ia64) host_arch=ia64 ;;
    474474      x86_64|amd64)
    475         if [ "`$_cc -dumpmachine | grep x86_64 | cut -d- -f1`" = "x86_64" -a \
     475        if [ -n "`$_cc -dumpmachine | sed -n '/^x86_64-/p;/^amd64-/p'`" -a \
    476476             -z "`echo $CFLAGS | grep -- -m32`"  ]; then
    477477          host_arch=x86_64
    478478        else