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

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Mar 9 20:33:34 CET 2014


Hi!

uname on aix reports a hardware id for "-m", attached patch allows to run 
configure on aix without --arch.

Please comment, Carl Eugen
-------------- next part --------------
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"
+
 # configurable options
 enable $PROGRAM_LIST
 enable $DOCUMENT_LIST


More information about the ffmpeg-devel mailing list