aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-13 07:28:11 +0000
committerGravatar nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-13 07:28:11 +0000
commite68809a015b9a11575b90eb25ff7a5042aec78d4 (patch)
tree1721b93002ca4197d15bc7b049d4b473b9fa117e /configure
parent670e705235b515a637d3d725a59775362d2249c3 (diff)
ffmpeg compatible MEMALIGN definition
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1891 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index c329b4600e..a7b3da1799 100755
--- a/configure
+++ b/configure
@@ -970,6 +970,7 @@ int main( void ) { return 0; }
EOF
_memalign_def=
+_memalign=no
_malloc_h=no
if $_cc -o $TMPO $TMPC 2> /dev/null ; then
_malloc_h=yes
@@ -984,7 +985,11 @@ return 0;
}
EOF
_memalign_def='/* #define memalign(a,b) malloc(b) */'
-$_cc -o $TMPO $TMPC 2> /dev/null || _memalign_def='#define memalign(a,b) malloc(b)'
+_memalign=yes
+$_cc -o $TMPO $TMPC 2> /dev/null || _memalign = no
+if [ "$_memalign" = "no" ]; then
+_memalign_def='#define memalign(a,b) malloc(b)'
+fi
fi
@@ -1858,6 +1863,12 @@ else
_have_malloc_h='#undef HAVE_MALLOC_H'
fi
+if [ "$_memalign" = "yes" ]; then
+ _have_memalign='#define HAVE_MEMALIGN 1'
+else
+ _have_memalign='#undef HAVE_MEMALIGN'
+fi
+
if [ "$_alloca_h" = "yes" ]; then
_have_alloca_h='#define HAVE_ALLOCA_H 1'
else
@@ -2236,6 +2247,7 @@ $_have_malloc_h
/* memalign is mapped to malloc here, if unsupported */
$_memalign_def
+$_have_memalign
/* Define this if your system has the "alloca.h" header file */
$_have_alloca_h