changeset 27281:e47193172586

Our ALSA code needs alloca, so check for it in configure and include alloca.h
author reimar
date Thu, 17 Jul 2008 17:11:30 +0000
parents 440d543fb991
children 16beae919ff1
files configure libao2/ao_alsa.c stream/ai_alsa.c stream/ai_alsa1x.c
diffstat 4 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Jul 17 12:38:05 2008 +0000
+++ b/configure	Thu Jul 17 17:11:30 2008 +0000
@@ -5205,6 +5205,10 @@
 echores "$_openal"
 
 echocheck "ALSA audio"
+if test "$_alloca" != yes ; then
+  _alsa=no
+  _res_comment="alloca missing"
+fi
 if test "$_alsa" != no ; then
   _alsa=no
   cat > $TMPC << EOF
--- a/libao2/ao_alsa.c	Thu Jul 17 12:38:05 2008 +0000
+++ b/libao2/ao_alsa.c	Thu Jul 17 17:11:30 2008 +0000
@@ -19,6 +19,7 @@
 #include <ctype.h>
 #include <math.h>
 #include <string.h>
+#include <alloca.h>
 
 #include "config.h"
 #include "subopt-helper.h"
--- a/stream/ai_alsa.c	Thu Jul 17 12:38:05 2008 +0000
+++ b/stream/ai_alsa.c	Thu Jul 17 17:11:30 2008 +0000
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
+#include <alloca.h>
 
 #include "config.h"
 
--- a/stream/ai_alsa1x.c	Thu Jul 17 12:38:05 2008 +0000
+++ b/stream/ai_alsa1x.c	Thu Jul 17 17:11:30 2008 +0000
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
+#include <alloca.h>
 
 #include "config.h"