From 9c3a8cd3b5de4281167e4becb0846eebe23efee9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 31 May 2011 00:35:27 +0200 Subject: BUILD: Compile more files only when necessary --- configure | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 6ae3cce8b6..230db7bc6a 100755 --- a/configure +++ b/configure @@ -2571,14 +2571,13 @@ fi # # Set up some common plugin settings in config.h and config.mk, if enabled # +define_in_config_if_yes "$_dynamic_modules" 'DYNAMIC_MODULES' + if test "$_dynamic_modules" = yes ; then add_line_to_config_h "#define PLUGIN_PREFIX \"$_plugin_prefix\"" add_line_to_config_h "#define PLUGIN_SUFFIX \"$_plugin_suffix\"" add_line_to_config_mk "PLUGIN_PREFIX := $_plugin_prefix" add_line_to_config_mk "PLUGIN_SUFFIX := $_plugin_suffix" - - add_line_to_config_mk "DYNAMIC_MODULES := 1" - DEFINES="$DEFINES -DDYNAMIC_MODULES" fi @@ -3088,12 +3087,8 @@ define_in_config_if_yes $_nasm 'USE_NASM' # # Enable vkeybd / keymapper # -if test "$_vkeybd" = yes ; then - DEFINES="$DEFINES -DENABLE_VKEYBD" -fi -if test "$_keymapper" = yes ; then - DEFINES="$DEFINES -DENABLE_KEYMAPPER" -fi +define_in_config_if_yes $_vkeybd 'ENABLE_VKEYBD' +define_in_config_if_yes $_keymapper 'ENABLE_KEYMAPPER' # Check whether to build translation support # -- cgit v1.2.3