summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-15 15:28:29 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-04-15 15:28:29 +0100
commit607d346e969776e6aee8042590f588ba66831b62 (patch)
treec0b655df01e3101bd6443aa5758b5c4faa5d2f10
parentb23e24329da58e15cc5098c569e90bd3c32cca33 (diff)
downloadxine-lib-607d346e969776e6aee8042590f588ba66831b62.tar.gz
xine-lib-607d346e969776e6aee8042590f588ba66831b62.tar.bz2
autoconf 2.59 mishandles AC_DEFINE([ASMALIGN(ZEROBITS)], ...). Work around it.
-rw-r--r--configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 952c55327..b43bd1b8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2084,10 +2084,14 @@ dnl ---------------------------------------------
dnl ASM ALIGN is power of two ?
dnl Used by internal FFmpeg and Planar postprocess
dnl ---------------------------------------------
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ asm (".align 3"); ]])],[
- AC_DEFINE([ASMALIGN(ZEROBITS)], [".align " #ZEROBITS "\n\t"], "asmalign power of two")
-],[
- AC_DEFINE([ASMALIGN(ZEROBITS)], [".align 1<<" #ZEROBITS "\n\t"], "asmalign power of two")
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ asm (".align 3"); ]])],
+ AC_DEFINE([ASMALIGN_1SLN], [1], [define if '.align n' means alignment to (1<<n)-byte boundaries]),
+ :)
+AH_BOTTOM([#ifdef ASMALIGN_1SLN
+# define ASMALIGN(ZEROBITS) ".align " #ZEROBITS "\n\t"
+#else
+# define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"
+#endif
])
dnl ---------------------------------------------