[MPlayer-cvslog] r19297 - trunk/configure

diego subversion at mplayerhq.hu
Thu Aug 3 19:07:31 CEST 2006


Author: diego
Date: Thu Aug  3 19:07:31 2006
New Revision: 19297

Modified:
   trunk/configure

Log:
Clean up memalign test and don't apply MEMALIGN_HACK to Darwin.
inspired by a patch by Emanuele Giaquinta, emanuele . giaquinta $@$ gmail . com


Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Thu Aug  3 19:07:31 2006
@@ -2838,6 +2838,8 @@
  _def_memalign='#define HAVE_MEMALIGN 1'
 else
  _def_memalign='#undef HAVE_MEMALIGN'
+ _def_map_memalign='#define memalign(a,b) malloc(b)'
+ not darwin && _def_memalign_hack='#define MEMALIGN_HACK 1'
 fi
 echores "$_memalign"
 
@@ -7695,10 +7697,8 @@
 
 /* memalign is mapped to malloc if unsupported */
 $_def_memalign
-#ifndef HAVE_MEMALIGN
-# define memalign(a,b) malloc(b)
-#define MEMALIGN_HACK 1
-#endif
+$_def_map_memalign
+$_def_memalign_hack
 
 /* Define this if your system has the "alloca.h" header file */
 $_def_alloca



More information about the MPlayer-cvslog mailing list