diff options
author | wm4 <wm4@nowhere> | 2013-01-13 13:55:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 13:55:22 +0100 |
commit | ec57c94ba2333d08cad49be31ade353af46b5709 (patch) | |
tree | d3b70345be793d7c14b9d0cd47b6d17204fbbe7f /configure | |
parent | 93d1bff4d3dc188307f85b435e402440e5408b5e (diff) | |
download | mpv-ec57c94ba2333d08cad49be31ade353af46b5709.tar.bz2 mpv-ec57c94ba2333d08cad49be31ade353af46b5709.tar.xz |
configure: remove __builtin_expect check
Change the only usage of HAVE_BUILTIN_EXPECT, demux.h, to use an #ifdef
instead. In theory, a configure check is better, but nobody does it this
way anyway, and we seek to reduce the configure script.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -1246,25 +1246,6 @@ fi echores "$_gettext" -echocheck "__builtin_expect" -# GCC branch prediction hint -cat > $TMPC << EOF -static int foo(int a) { - a = __builtin_expect(a, 10); - return a == 10 ? 0 : 1; -} -int main(void) { return foo(10) && foo(0); } -EOF -_builtin_expect=no -cc_check && _builtin_expect=yes -if test "$_builtin_expect" = yes ; then - def_builtin_expect='#define HAVE_BUILTIN_EXPECT 1' -else - def_builtin_expect='#undef HAVE_BUILTIN_EXPECT' -fi -echores "$_builtin_expect" - - echocheck "mkstemp" _mkstemp=no define_statement_check "_XOPEN_SOURCE 600" "stdlib.h" 'mkstemp("")' && _mkstemp=yes @@ -3324,7 +3305,6 @@ $def_vsscanf /* system-specific features */ $def_asmalign_pot -$def_builtin_expect $def_dl $def_dos_paths $def_iconv |