From 13b9a208216e1c5b90b5d5236b967d173e9b3db9 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 9 Jan 2010 13:39:26 +0000 Subject: Add support for --enable-hardcoded-tables like FFmpeg has. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30251 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8ecae94b1c..c8ee6bb65a 100755 --- a/configure +++ b/configure @@ -475,6 +475,7 @@ Advanced options: --enable-neon enable NEON (ARM) [autodetect] --enable-iwmmxt enable iWMMXt (ARM) [autodetect] --disable-fastmemcpy disable 3DNow!/SSE/MMX optimized memcpy [enable] + --enable-hardcoded-tables put tables in binary instead of calculating them at startup [disable] --enable-big-endian force byte order to big-endian [autodetect] --enable-debug[=1-3] compile-in debugging information [disable] --enable-profile compile-in profiling information [disable] @@ -662,6 +663,7 @@ _sgiaudio=auto _sunaudio=auto _alsa=auto _fastmemcpy=yes +hardcoded_tables=no _unrar_exec=auto _win32dll=auto _select=yes @@ -1117,6 +1119,8 @@ for ac_option do --disable-pvr) _pvr=no ;; --enable-fastmemcpy) _fastmemcpy=yes ;; --disable-fastmemcpy) _fastmemcpy=no ;; + --enable-hardcoded-tables) hardcoded_tables=yes ;; + --disable-hardcoded-tables) hardcoded_tables=no ;; --enable-network) _network=yes ;; --disable-network) _network=no ;; --enable-winsock2_h) _winsock2_h=yes ;; @@ -3344,6 +3348,15 @@ fi echores "$_fastmemcpy" +echocheck "hard-coded tables" +if test "$hardcoded_tables" = yes ; then + def_hardcoded_tables='#define CONFIG_HARDCODED_TABLES 1' +else + def_hardcoded_tables='#define CONFIG_HARDCODED_TABLES 0' +fi +echores "$hardcoded_tables" + + echocheck "mman.h" cat > $TMPC << EOF #include @@ -8364,6 +8377,7 @@ FAAC=$_faac FAAD = $_faad FAAD_INTERNAL = $_faad_internal FASTMEMCPY = $_fastmemcpy +CONFIG_HARDCODED_TABLES = $hardcoded_tables FBDEV = $_fbdev FREETYPE = $_freetype FTP = $_ftp @@ -8713,6 +8727,7 @@ $def_crash_debug $def_debug $def_dynamic_plugins $def_fastmemcpy +$def_hardcoded_tables $def_menu $def_runtime_cpudetection $def_sighandler @@ -8995,7 +9010,6 @@ $def_yasm #define CONFIG_FFSERVER 0 #define CONFIG_GPL 1 #define CONFIG_GRAY 0 -#define CONFIG_HARDCODED_TABLES 0 #define CONFIG_LIBVORBIS 0 #define CONFIG_POWERPC_PERF 0 #define CONFIG_SMALL 0 -- cgit v1.2.3