[MPlayer-dev-eng] [PATCH] Cross compile configure patch

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Aug 29 19:00:09 CEST 2007


Hello,
On Thu, Aug 30, 2007 at 12:03:19AM +0800, Andrew Calkin wrote:
> diff -Naur MPlayer-1.0rc1.orig/configure MPlayer-1.0rc1/configure
> --- MPlayer-1.0rc1.orig/configure	2007-04-13 19:18:26.000000000 +0200
> +++ MPlayer-1.0rc1/configure	2007-04-13 19:18:36.000000000 +0200
> @@ -1281,7 +1281,11 @@
>      mingw32msvc) system_name=MINGW32 ;;
>    esac
>    # We need to convert underscores so that values like k6-2 and pentium-mmx can be passed
> -  host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'`
> +  if [ `echo $_target | cut -d '-' -f 1` != "x86_64" ]; then
> +    host_arch=`echo $_target | cut -d '-' -f 1 | tr '_' '-'`
> +  else
> +    host_arch=`echo $_target | cut -d '-' -f 1`
> +  fi

Horrible. At least simplify, e.g.
host_arch=`echo $_target | cut -d '-' -f 1`
...
(also saves you the else part).
And use test, not [

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list