changeset 35717:42ca1c165174

configure: Add check for _aligned_malloc(), used in libavutil.
author diego
date Mon, 21 Jan 2013 20:18:16 +0000
parents d0004e3bcbbc
children 821decdd28ad
files configure
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jan 21 19:49:54 2013 +0000
+++ b/configure	Mon Jan 21 20:18:16 2013 +0000
@@ -3601,6 +3601,14 @@
 echores "$_malloc"
 
 
+echocheck "aligned malloc"
+aligned_malloc=no
+def_aligned_malloc='#define HAVE_ALIGNED_MALLOC 0'
+statement_check malloc.h '_aligned_malloc(0)' && aligned_malloc=yes &&
+  def_aligned_malloc='#define HAVE_ALIGNED_MALLOC 1'
+echores "$aligned_malloc"
+
+
 echocheck "memalign()"
 # XXX restrict to x86 ? extend to other CPUs/cacheline sizes ?
 def_memalign_hack='#define CONFIG_MEMALIGN_HACK 0'
@@ -8922,6 +8930,7 @@
 #define CONFIG_MUXERS 1
 $def_rtpdec
 
+$def_aligned_malloc
 $def_arpa_inet_h
 $def_bswap
 $def_bzlib