mirror of https://github.com/mpv-player/mpv
Add proper check for posix_memalign(), needed for FFmpeg.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28519 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
373df2e9e5
commit
97e427039d
|
@ -3143,6 +3143,18 @@ fi
|
||||||
echores "$_memalign"
|
echores "$_memalign"
|
||||||
|
|
||||||
|
|
||||||
|
echocheck "posix_memalign()"
|
||||||
|
posix_memalign=no
|
||||||
|
def_posix_memalign='#define HAVE_POSIX_MEMALIGN 0'
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
#define _XOPEN_SOURCE 600
|
||||||
|
#include <stdlib.h>
|
||||||
|
int main(void) { posix_memalign(NULL, 0, 0); }
|
||||||
|
EOF
|
||||||
|
cc_check && posix_memalign=yes && def_posix_memalign='#define HAVE_POSIX_MEMALIGN 1'
|
||||||
|
echores "$posix_memalign"
|
||||||
|
|
||||||
|
|
||||||
echocheck "alloca.h"
|
echocheck "alloca.h"
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
@ -8618,6 +8630,7 @@ $def_libavcodec_mpegaudio_hp
|
||||||
$def_memalign_hack
|
$def_memalign_hack
|
||||||
$def_mlib
|
$def_mlib
|
||||||
$def_mkstemp
|
$def_mkstemp
|
||||||
|
$def_posix_memalign
|
||||||
$def_pthreads
|
$def_pthreads
|
||||||
$def_threads
|
$def_threads
|
||||||
$def_yasm
|
$def_yasm
|
||||||
|
@ -8629,7 +8642,6 @@ $def_yasm
|
||||||
#define CONFIG_HARDCODED_TABLES 0
|
#define CONFIG_HARDCODED_TABLES 0
|
||||||
#define CONFIG_LIBAMR_NB_FIXED 0
|
#define CONFIG_LIBAMR_NB_FIXED 0
|
||||||
#define CONFIG_LIBVORBIS 0
|
#define CONFIG_LIBVORBIS 0
|
||||||
#define CONFIG_POSIX_MEMALIGN 0
|
|
||||||
#define CONFIG_POWERPC_PERF 0
|
#define CONFIG_POWERPC_PERF 0
|
||||||
#define CONFIG_SMALL 0
|
#define CONFIG_SMALL 0
|
||||||
#define CONFIG_SWSCALE 1
|
#define CONFIG_SWSCALE 1
|
||||||
|
|
Loading…
Reference in New Issue