changeset 31665:02d92c137407

Port GNU assembler check from FFmpeg.
author diego
date Tue, 13 Jul 2010 14:51:31 +0000
parents 0850cb05c836
children 796b778e2411
files configure
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 13 12:08:50 2010 +0000
+++ b/configure	Tue Jul 13 14:51:31 2010 +0000
@@ -2800,6 +2800,16 @@
 EOF
 cc_check && ibm_asm=yes && def_ibm_asm='#define HAVE_IBM_ASM 1'
 echores "$ibm_asm"
+
+def_gnu_as='#define HAVE_GNU_AS 0'
+gnu_as=no
+echocheck "GNU assembler"
+cat > $TMPC << EOF
+int main(void) { __asm__ volatile (".macro m n\n\\n:.int 0\n.endm\nm x"); return 0; }
+EOF
+cc_check && gnu_as=yes && def_gnu_as='#define HAVE_GNU_AS 1'
+echores "$gnu_as"
+
 fi
 
 if arm ; then
@@ -8792,7 +8802,7 @@
 CONFIG_XVMC     = $_xvmc
 CONFIG_ZLIB     = $_zlib
 
-HAVE_GNU_AS     = yes
+HAVE_GNU_AS     = $gnu_as
 HAVE_PTHREADS   = $_pthreads
 HAVE_SHM        = $_shm
 HAVE_W32THREADS = $_w32threads
@@ -9231,6 +9241,7 @@
 $def_exp2f
 $def_fast_64bit
 $def_fast_unaligned
+$def_gnu_as
 $def_hardcoded_tables
 $def_ibm_asm
 $def_libavcodec_mpegaudio_hp
@@ -9273,7 +9284,6 @@
 
 #define HAVE_ATTRIBUTE_PACKED 1
 #define HAVE_GETHRTIME 0
-#define HAVE_GNU_AS 1
 #define HAVE_INLINE_ASM 1
 #define HAVE_ISATTY 0
 #define HAVE_LDBRX 0