Mercurial > mplayer.hg
diff configure @ 19888:2ce14efa8917
Replace preprocessor hacks to work around compilers not supporting named
assembler arguments with a proper configure check.
author | diego |
---|---|
date | Mon, 18 Sep 2006 16:48:50 +0000 (2006-09-18) |
parents | 49ebd9c51a99 |
children | 0dc175cbeed8 |
line wrap: on
line diff
--- a/configure Mon Sep 18 16:29:27 2006 +0000 +++ b/configure Mon Sep 18 16:48:50 2006 +0000 @@ -1536,6 +1536,18 @@ EOF cc_check -pipe && _pipe="-pipe" && echores "yes" || echores "no" + +echocheck "compiler support of named assembler arguments" +_named_asm_args=yes +_def_named_asm_args="#define NAMED_ASM_ARGS 1" +if test "$cc_vendor" = "gnu" && test "$_cc_major" -lt 3 \ + -o "$_cc_major" -eq 3 -a "$_cc_minor" = 0 ; then + _named_asm_args=no + _def_named_asm_args="#undef NAMED_ASM_ARGS" +fi +echores $_named_asm_args + + # Checking for CFLAGS _stripbinaries=yes if test "$_profile" != "" || test "$_debug" != "" ; then @@ -7641,6 +7653,9 @@ # define attribute_used #endif +/* compiler support for named assembler arguments */ +$_def_named_asm_args + #define PREFIX "$_prefix" #define USE_OSD 1