changeset 32295:b3c27e5c4bd3

Add config.asm with (sub)architecture definitions for FFmpeg's YASM support.
author diego
date Mon, 27 Sep 2010 01:09:42 +0000
parents 4d1655cbd784
children 7704ea4d6839
files configure
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Sep 27 00:46:28 2010 +0000
+++ b/configure	Mon Sep 27 01:09:42 2010 +0000
@@ -8841,6 +8841,18 @@
 # Do not overwrite an unchanged avconfig.h to avoid superfluous rebuilds.
 cmp -s "$TMPH" libavutil/avconfig.h || mv -f "$TMPH" libavutil/avconfig.h
 
+
+if x86; then
+# Create a skeleton config.asm with just the ARCH_ definitions for FFmpeg.
+> "$TMPS"
+for part in $arch $subarch; do
+  part=$(echo $part | tr '[a-z]' '[A-Z]')
+  echo "%define ARCH_${part}" >> "$TMPS"
+done
+
+cmp -s "$TMPS" config.asm || mv -f "$TMPS" config.asm
+fi
+
 #############################################################################
 
 cat << EOF