Mercurial > mplayer.hg
changeset 33262:9fb04a4269bb
configure: Fix swab() check.
Without a #define there is no need to use define_statement_check.
Also, merge both swab() checks into a cascade.
author | diego |
---|---|
date | Tue, 03 May 2011 09:51:59 +0000 |
parents | fc608eb62185 |
children | 5f527a9a9521 |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sun May 01 22:41:51 2011 +0000 +++ b/configure Tue May 03 09:51:59 2011 +0000 @@ -3884,8 +3884,8 @@ echocheck "swab()" _swab=no -define_statement_check "_XOPEN_SOURCE 600" "unistd.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes -define_statement_check "A A" "string.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes +define_statement_check "_XOPEN_SOURCE 600" "unistd.h" 'int a, b; swab(&a, &b, 0)' || + statement_check "string.h" 'int a, b; swab(&a, &b, 0)' && _swab=yes if test "$_swab" = yes ; then def_swab='#define HAVE_SWAB 1' need_swab=no