[FFmpeg-devel] [PATCH]Fix hardware detection on aix

Michael Niedermayer michaelni at gmx.at
Tue Mar 11 15:54:58 CET 2014


On Sun, Mar 09, 2014 at 08:33:34PM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> uname on aix reports a hardware id for "-m", attached patch allows to run 
> configure on aix without --arch.
> 
> Please comment, Carl Eugen

>  configure |   12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)
> 7024c2c73346aace0d46a0332b6a37d5d2b14f50  patchaixuname.diff
> diff --git a/configure b/configure
> index 39ffe04..99333ab 100755
> --- a/configure
> +++ b/configure
> @@ -2485,14 +2485,18 @@ windres_default="windres"
>  
>  nogas=":"
>  
> -# machine
> -arch_default=$(uname -m)
> -cpu="generic"
> -
>  # OS
>  target_os_default=$(tolower $(uname -s))
>  host_os=$target_os_default
>  
> +# machine
> +if test "$target_os_default" = aix; then
> +    arch_default=$(uname -p)
> +else
> +    arch_default=$(uname -m)
> +fi
> +cpu="generic"

what does unmae -p and uname -m return on AIX ?
also what does uname --help return ?


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140311/1d3b9fbb/attachment.asc>


More information about the ffmpeg-devel mailing list