mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
set HAVE_LRINTF and C99/GNU_SOURCE during internal FAAD compile test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15817 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
999ac17eba
commit
0801ea46a6
7
configure
vendored
7
configure
vendored
@ -5486,11 +5486,14 @@ _inc_faad="-I`pwd`/libfaad2"
|
||||
if test "$_faad_internal" = auto ; then
|
||||
# the faad check needs a config.h file
|
||||
if not test -f "config.h" ; then
|
||||
> config.h
|
||||
cat > config.h << EOF
|
||||
/* C99 lrintf function available */
|
||||
$_def_lrintf
|
||||
EOF
|
||||
fi
|
||||
# internal faad: check if our dear gcc is able to compile it...
|
||||
cp "`pwd`/libfaad2/cfft.c" $TMPC
|
||||
if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_inc_faad ); then
|
||||
if ( cc_check -c -O4 $_march $_mcpu $_pipe -ffast-math -fomit-frame-pointer $_opt_gnu99 -D_GNU_SOURCE $_inc_faad ); then
|
||||
_faad_internal=yes
|
||||
else
|
||||
_faad_internal="no (broken gcc)"
|
||||
|
Loading…
Reference in New Issue
Block a user