[MPlayer-cvslog] r33349 - trunk/configure

diego subversion at mplayerhq.hu
Tue May 3 11:52:00 CEST 2011


Author: diego
Date: Tue May  3 11:51:59 2011
New Revision: 33349

Log:
configure: Fix swab() check.

Without a #define there is no need to use define_statement_check.
Also, merge both swab() checks into a cascade.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Mon May  2 00:41:51 2011	(r33348)
+++ trunk/configure	Tue May  3 11:51:59 2011	(r33349)
@@ -3884,8 +3884,8 @@ echores "$_vsscanf"
 
 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


More information about the MPlayer-cvslog mailing list